Skip to content

Commit

Permalink
Merge pull request #293 from wakatime/feature/label-issue
Browse files Browse the repository at this point in the history
Apply label on new issues
  • Loading branch information
gandarez authored May 3, 2021
2 parents 8170584 + d10625a commit b4e7c5c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/on_open_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
issues:
types: [opened]

jobs:
issue-triage:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['triage']
})
- uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for reporting!'
})

0 comments on commit b4e7c5c

Please sign in to comment.