Skip to content

Commit 42989d8

Browse files
committed
Need something in workflows/?
1 parent 1b92fea commit 42989d8

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/assign.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

.github/workflows/assign.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

0 commit comments

Comments
 (0)