We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
take
1 parent 089c39f commit 38837e5Copy full SHA for 38837e5
1 file changed
.github/workflows/comment-commands.yml
@@ -13,12 +13,11 @@ jobs:
13
group: ${{ github.actor }}-issue-assign
14
15
permissions:
16
- issues: write
+ issues: write
17
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 }}
+ # Using REST API and not `gh issue edit`. https://github.com/cli/cli/issues/6235#issuecomment-1243487651
+ - run: curl \
+ -H "Authorization: token ${{ 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