mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
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:
13
.github/workflows/comment-commands.yml
vendored
13
.github/workflows/comment-commands.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user