File tree 2 files changed +26
-0
lines changed
2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Assign
2
+ on :
3
+ issue_comment :
4
+ types : created
5
+
6
+ jobs :
7
+ issue_assign :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - if : github.event.comment.body == 'take'
11
+ run : |
12
+ echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}"
13
+ curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees
Original file line number Diff line number Diff line change
1
+ name : Assign
2
+ on :
3
+ issue_comment :
4
+ types : created
5
+
6
+ jobs :
7
+ issue_assign :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - if : github.event.comment.body == 'take'
11
+ run : |
12
+ echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}"
13
+ curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees
You can’t perform that action at this time.
0 commit comments