File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 19
19
&& !github.event.issue.assignee
20
20
steps :
21
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
22
24
echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}"
23
- 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
24
27
gh issue edit $ISSUE --remove-label "help wanted"
25
28
env:
26
29
GH_TOKEN: ${{ github.token }}
You can’t perform that action at this time.
0 commit comments