add GitHub action to set issues labels from hashtags in comments

This commit is contained in:
Rémi Lefèvre 2020-04-28 23:15:32 +02:00
parent dfef57797e
commit 3e384afb01

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 }}"