Merge pull request #467 from Talljack/bug-action

feat: issue open of bug add untriaged label
This commit is contained in:
XieZongChen 2021-07-10 14:58:55 +08:00 committed by GitHub
commit 58c84d1645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
.github/workflows/issue-add-bug.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Add Bug Labels
on:
issues:
types: [opened]
jobs:
add-labels:
runs-on: ubuntu-latest
if: contains(github.event.issue.body, '__BUG__') == true
steps:
- name: Add labels
uses: actions-cool/issues-helper@v2.2.1
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'untriaged'