From a2816075e39e5ce45d814b379cad134f6b309e12 Mon Sep 17 00:00:00 2001 From: praptisharma28 <123169861+praptisharma28@users.noreply.github.com> Date: Sat, 10 Feb 2024 19:03:34 +0530 Subject: [PATCH] fix: workflow corrected Closes #258 --- .../bug_report.yml | 0 .../doc_report.yml | 0 .../feature_request.yml | 0 .../other.yml | 0 .../style.yml | 0 .github/workflows/codeql.yml | 22 ++++++----------- .github/workflows/greetings.yml | 24 +++++++++---------- 7 files changed, 18 insertions(+), 28 deletions(-) rename .github/{ISSUE_TEMPLATE copy => ISSUE_TEMPLATE}/bug_report.yml (100%) rename .github/{ISSUE_TEMPLATE copy => ISSUE_TEMPLATE}/doc_report.yml (100%) rename .github/{ISSUE_TEMPLATE copy => ISSUE_TEMPLATE}/feature_request.yml (100%) rename .github/{ISSUE_TEMPLATE copy => ISSUE_TEMPLATE}/other.yml (100%) rename .github/{ISSUE_TEMPLATE copy => ISSUE_TEMPLATE}/style.yml (100%) diff --git a/.github/ISSUE_TEMPLATE copy/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml similarity index 100% rename from .github/ISSUE_TEMPLATE copy/bug_report.yml rename to .github/ISSUE_TEMPLATE/bug_report.yml diff --git a/.github/ISSUE_TEMPLATE copy/doc_report.yml b/.github/ISSUE_TEMPLATE/doc_report.yml similarity index 100% rename from .github/ISSUE_TEMPLATE copy/doc_report.yml rename to .github/ISSUE_TEMPLATE/doc_report.yml diff --git a/.github/ISSUE_TEMPLATE copy/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml similarity index 100% rename from .github/ISSUE_TEMPLATE copy/feature_request.yml rename to .github/ISSUE_TEMPLATE/feature_request.yml diff --git a/.github/ISSUE_TEMPLATE copy/other.yml b/.github/ISSUE_TEMPLATE/other.yml similarity index 100% rename from .github/ISSUE_TEMPLATE copy/other.yml rename to .github/ISSUE_TEMPLATE/other.yml diff --git a/.github/ISSUE_TEMPLATE copy/style.yml b/.github/ISSUE_TEMPLATE/style.yml similarity index 100% rename from .github/ISSUE_TEMPLATE copy/style.yml rename to .github/ISSUE_TEMPLATE/style.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 702ab6eac..4f20bbbbd 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,33 +1,27 @@ -name: 'CodeQL' +name: "CodeQL" on: push: - branches: ['main'] + branches: [ main ] pull_request: - branches: ['main'] + branches: [ main ] schedule: - - cron: '19 19 * * 0' + - cron: '35 14 * * 3' jobs: analyze: name: Analyze - runs-on: ${{ (matrix.language == 'javascript' && 'macos-latest') || 'ubuntu-latest' }} - timeout-minutes: ${{ (matrix.language == 'javascript' && 120) || 360 }} - permissions: - actions: read - contents: read - security-events: write - + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - language: ['javascript'] + os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] + language: [ 'javascript' ] steps: - name: Checkout repository uses: actions/checkout@v4 - # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: @@ -38,5 +32,3 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 - with: - category: '/language:${{matrix.language}}' diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index a2c3c22e5..a248bdbd4 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,18 +1,16 @@ -name: 'Greetings' +name: Greetings -on: - issues: - types: [opened] - pull_request_target: - types: [opened] +on: [pull_request, issues] jobs: - welcome: + greeting: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - - uses: actions/checkout@v1 - - uses: ReactCreations/gh-action-community/src/welcome@main - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: 'Congratulations, @${{ github.actor }}! 🎉 Thank you for creating your issue for ReactCreations project. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work! Should you have any queries or require guidance, do not hesitate to ask.' - pr-message: 'Great job, @${{ github.actor }}! 🎉 Thank you for submitting your pull request for ReactCreations project. Our dedicated team will review it diligently.Your contribution is valuable and we appreciate your efforts to improve our project.' + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: 'Hey, @${{ github.actor }} welcome to ReactCreations repository.🎊 Thank you so much for taking the time to point this out.🙌' + pr-message: 'Hey, @${{ github.actor }} welcome to ReactCreations repository.🎊 Thank you so much for taking the effort to make our project better! 🙌 Keep making such awesome contributions!' \ No newline at end of file