Skip to content

Commit

Permalink
Automatically add untriaged label on issues (opensearch-project#2297)
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 <[email protected]>
  • Loading branch information
peternied authored Dec 6, 2022
1 parent e7a120c commit c8095bc
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 c8095bc

Please sign in to comment.