From e807df4ebe13672d67d8956fa7045350f52d90c2 Mon Sep 17 00:00:00 2001 From: Julio <1953782+julio-lopez@users.noreply.github.com> Date: Thu, 14 Sep 2023 17:27:27 -0700 Subject: [PATCH] split triage into separate workflows for issues and PRs --- .github/workflows/triage-issues.yaml | 33 +++++++++++++++++++ .../{triage.yaml => triage-prs.yaml} | 31 +---------------- 2 files changed, 34 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/triage-issues.yaml rename .github/workflows/{triage.yaml => triage-prs.yaml} (50%) diff --git a/.github/workflows/triage-issues.yaml b/.github/workflows/triage-issues.yaml new file mode 100644 index 00000000000..ebea033aced --- /dev/null +++ b/.github/workflows/triage-issues.yaml @@ -0,0 +1,33 @@ +on: + issues: + types: + - opened + - reopened + +jobs: + triage: + if: github.repository == 'kanisterio/kanister' + name: Triage New Issue + permissions: + issues: write + runs-on: ubuntu-latest + steps: + - uses: actions-ecosystem/action-add-labels@v1.1.3 + with: + labels: "triage" + github_token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions-ecosystem/action-create-comment@v1.0.2 + if: github.event.action == 'opened' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + body: | + Thanks for opening this issue :+1:. The team will review it shortly. + + If this is a bug report, make sure to include clear instructions how on to reproduce the problem with [minimal reproducible examples](https://stackoverflow.com/help/minimal-reproducible-example), where possible. If this is a security report, please review our security policy as outlined in [SECURITY.md](https://github.com/kanisterio/kanister/blob/master/SECURITY.md). + + If you haven't already, please take a moment to review our project's [Code of Conduct](https://github.com/kanisterio/kanister/blob/master/CODE_OF_CONDUCT.md) document. + - uses: alex-page/github-project-automation-plus@v0.8.3 + with: + repo-token: ${{ secrets.GH_TOKEN }} # must use a PAT here + project: Kanister + column: To Be Triaged diff --git a/.github/workflows/triage.yaml b/.github/workflows/triage-prs.yaml similarity index 50% rename from .github/workflows/triage.yaml rename to .github/workflows/triage-prs.yaml index 9e62c300caf..e941ed52774 100644 --- a/.github/workflows/triage.yaml +++ b/.github/workflows/triage-prs.yaml @@ -1,39 +1,10 @@ on: - issues: - types: - - opened - - reopened pull_request: types: - opened - reopened -jobs: - issues: - if: github.repository == 'kanisterio/kanister' && github.event_name == 'issues' - name: Triage New Issue - permissions: - issues: write - runs-on: ubuntu-latest - steps: - - uses: actions-ecosystem/action-add-labels@v1.1.3 - with: - labels: "triage" - github_token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions-ecosystem/action-create-comment@v1.0.2 - if: github.event.action == 'opened' - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - body: | - Thanks for opening this issue :+1:. The team will review it shortly. - - If this is a bug report, make sure to include clear instructions how on to reproduce the problem with [minimal reproducible examples](https://stackoverflow.com/help/minimal-reproducible-example), where possible. If this is a security report, please review our security policy as outlined in [SECURITY.md](https://github.com/kanisterio/kanister/blob/master/SECURITY.md). - If you haven't already, please take a moment to review our project's [Code of Conduct](https://github.com/kanisterio/kanister/blob/master/CODE_OF_CONDUCT.md) document. - - uses: alex-page/github-project-automation-plus@v0.8.3 - with: - repo-token: ${{ secrets.GH_TOKEN }} # must use a PAT here - project: Kanister - column: To Be Triaged +jobs: pull-requests-comment: name: Triage Pull Request if: github.repository == 'kanisterio/kanister' && github.event_name == 'pull_request' && github.actor != 'dependabot'