Merge pull request #202 from rlefevre/label-issues-from-comments-keywords

add GitHub action to set issues labels from hashtags in comments
This commit is contained in:
Matthew Griffith 2020-04-29 09:36:14 -04:00 committed by GitHub
commit 9bf5463a8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

49
.github/workflows/label-issues.yml vendored Normal file
View File

@ -0,0 +1,49 @@
name: "Set Issue Label"
on:
issue_comment:
types: [created, edited]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: Amwam/issue-comment-action@v1.3.1
with:
keywords: '["#bug"]'
labels: '["bug"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: Amwam/issue-comment-action@v1.3.1
with:
keywords: '["#feature-suggestion"]'
labels: '["feature-suggestion"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: Amwam/issue-comment-action@v1.3.1
with:
keywords: '["#has-ellie"]'
labels: '["has-ellie"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: Amwam/issue-comment-action@v1.3.1
with:
keywords: '["#has-test"]'
labels: '["has-test"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: Amwam/issue-comment-action@v1.3.1
with:
keywords: '["#pain-point"]'
labels: '["pain-point"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: Amwam/issue-comment-action@v1.3.1
with:
keywords: '["#test-incorrectly-passing"]'
labels: '["test-incorrectly-passing"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: Amwam/issue-comment-action@v1.3.1
with:
keywords: '["#test-not-compiling"]'
labels: '["test-not-compiling"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: Amwam/issue-comment-action@v1.3.1
with:
keywords: '["#unexpected"]'
labels: '["unexpected"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"