Skip to content

Commit 9da38ba

Browse files
authored
CI Fix assign/unassign workflow (scikit-learn#28044)
1 parent 3d35fa9 commit 9da38ba

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/assign.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ jobs:
2020
steps:
2121
- run: |
2222
echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}"
23-
gh issue edit ${{ github.event.issue.number }} --add-assignee ${{ github.event.comment.user.login }}
24-
gh issue edit ${{ github.event.issue.number }} --remove-label "help wanted"
23+
gh issue edit $ISSUE --add-assignee ${{ github.event.comment.user.login }}
24+
gh issue edit $ISSUE --remove-label "help wanted"
25+
env:
26+
GH_TOKEN: ${{ github.token }}
27+
ISSUE: ${{ github.event.issue.html_url }}

.github/workflows/unassign.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ jobs:
1818
if: github.event.issue.state == 'open'
1919
run: |
2020
echo "Marking issue ${{ github.event.issue.number }} as help wanted"
21-
gh issue edit ${{ github.event.issue.number }} --add-label "help wanted"
21+
gh issue edit $ISSUE --add-label "help wanted"
22+
env:
23+
GH_TOKEN: ${{ github.token }}
24+
ISSUE: ${{ github.event.issue.html_url }}

0 commit comments

Comments
 (0)