Skip to content

Commit

Permalink
Automatically add untriaged label on issues
Browse files Browse the repository at this point in the history
Sometimes when new issues are opened, they don't use the template or are
transfered in from another repo, or even are reopened when we ran triage
slightly differently.  This automation adds the `untriaged` tag if any
of these states are applied.

Coming from
opensearch-project/.github#111

Signed-off-by: Peter Nied <petern@amazon.com>
  • Loading branch information
peternied committed Dec 5, 2022
1 parent 063c1e9 commit 02d505c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/add-untriaged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Apply 'untriaged' label during issue lifecycle

on:
issues:
types: [opened, reopened, transferred]

jobs:
apply-label:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['untriaged']
})

0 comments on commit 02d505c

Please sign in to comment.