Skip to content

Commit 8e69e3a

Browse files
Add label for contact needed (#308)
1 parent accb504 commit 8e69e3a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Label with contact needed
2+
on:
3+
issue_comment:
4+
types: created
5+
jobs:
6+
one:
7+
runs-on: ubuntu-latest
8+
if: >-
9+
(github.event.comment.body == '#contact' ||
10+
github.event.comment.body == '#contact-needed')
11+
steps:
12+
- run: |
13+
echo "Labeling issue ${{ github.event.issue.number }} with 'contact needed'"
14+
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"labels": ["contact needed"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels

0 commit comments

Comments
 (0)