8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55631e5 commit 6dd02d1Copy full SHA for 6dd02d1
.github/workflows/assign.yml
@@ -19,8 +19,11 @@ jobs:
19
&& !github.event.issue.assignee
20
steps:
21
- run: |
22
+ # Using REST API directly because assigning through gh has some severe limitations. For more details, see
23
+ # https://github.com/scikit-learn/scikit-learn/issues/29395#issuecomment-2206776963
24
echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}"
- gh issue edit $ISSUE --add-assignee ${{ github.event.comment.user.login }}
25
+ curl -H "Authorization: token $GH_TOKEN" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' \
26
+ https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees
27
gh issue edit $ISSUE --remove-label "help wanted"
28
env:
29
GH_TOKEN: ${{ github.token }}
0 commit comments