File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,11 @@ jobs:
13
13
group : ${{ github.actor }}-issue-assign
14
14
15
15
permissions :
16
- issues : write
16
+ issues : write
17
17
18
18
steps :
19
- - run : gh issue edit "${{ env.ISSUE_NUMBER }}" --add-assignee "@${{ env.USER_LOGIN }}"
20
- env :
21
- ISSUE_NUMBER : ${{ github.event.issue.number }}
22
- USER_LOGIN : ${{ github.event.comment.user.login }}
23
- GH_TOKEN : ${{ github.token }}
24
- GH_REPO : ${{ github.repository }}
19
+ # Using REST API and not `gh issue edit`. https://github.com/cli/cli/issues/6235#issuecomment-1243487651
20
+ - run : curl \
21
+ -H "Authorization : token ${{ github.token }}" \
22
+ -d '{"assignees" : ["${{ github.event.comment.user.login }}"]}' \
23
+ 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