Skip to content

Commit

Permalink
Automatically label new issues with "unconfirmed"
Browse files Browse the repository at this point in the history
Triagers can remove the label after determining work should be done on
the issue.
  • Loading branch information
tbodt committed Nov 17, 2020
1 parent 932efdc commit df10a07
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/autolabel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Auto-Label
on:
issues:
types: [opened]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: satackey/action-js-inline@bf6fcaf35de1ed03bcfd25a0a8b1fa4c551ec908
with:
token: ${{ secrets.GITHUB_TOKEN }}
script: |
const core = require('@actions/core');
const github = require('@actions/github');
const octokit = github.getOctokit(core.getInput('token'));
const {repo, owner, number} = github.context.issue;
await octokit.issues.addLabels({repo, owner, issue_number: number, labels: ['unconfirmed']});

0 comments on commit df10a07

Please sign in to comment.