Make take issue comment to use curl (#5937)

* Revert "Add missing `@` for the "take" comment command (#5933)"

This reverts commit ef385a9efa.

* Fix `take`
This commit is contained in:
Shahar Naveh
2025-07-11 02:35:21 +03:00
committed by GitHub
parent 089c39f741
commit 38837e587b

View File

@@ -13,12 +13,11 @@ jobs:
group: ${{ github.actor }}-issue-assign
permissions:
issues: write
issues: write
steps:
- run: gh issue edit "${{ env.ISSUE_NUMBER }}" --add-assignee "@${{ env.USER_LOGIN }}"
env:
ISSUE_NUMBER: ${{ github.event.issue.number }}
USER_LOGIN: ${{ github.event.comment.user.login }}
GH_TOKEN: ${{ github.token }}
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