8000 CI Fix Assign workflow (#29408) · scikit-learn/scikit-learn@6dd02d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6dd02d1

Browse files
authored
CI Fix Assign workflow (#29408)
1 parent 55631e5 commit 6dd02d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/assign.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ jobs:
1919
&& !github.event.issue.assignee
2020
steps:
2121
- 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
2224
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
2427
gh issue edit $ISSUE --remove-label "help wanted"
2528
env:
2629
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)
0