Skip to content

Commit

Permalink
split triage into separate workflows for issues and PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
julio-lopez committed Sep 15, 2023
1 parent eae1dda commit c53141c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/triage-issues.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
labels: "triage"
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-ecosystem/[email protected]
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/[email protected]
with:
repo-token: ${{ secrets.GH_TOKEN }} # must use a PAT here
project: Kanister
column: To Be Triaged
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
labels: "triage"
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-ecosystem/[email protected]
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/[email protected]
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'
Expand Down

0 comments on commit c53141c

Please sign in to comment.