Skip to content

Commit 237bfcd

Browse files
GarboMuffinjexjws
authored andcommitted
Update autolabeler workflow (TurboWarp#1867)
Since it doesn't actually clone the repository, have to explicitly tell `gh` what repository we're talking about
1 parent 9fd6736 commit 237bfcd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/label.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ jobs:
3232
3333
if [[ "$BASE_REF" == "master" ]]; then
3434
# Download just the diff so it is harder to accidentally run any code from the pull request.
35-
gh pr diff "$PR_NUMBER" > pr.diff
35+
gh pr diff --repo TurboWarp/desktop "$PR_NUMBER" > pr.diff
3636
3737
# Note that pcregrep exits with success on any match, failure on no match
3838
if pcregrep -M "^--- /dev/null\n\+\+\+ b/extensions/" pr.diff; then
3939
# Example:
4040
# --- /dev/null
4141
# +++ b/extensions/DangoCat/extension.js
42-
gh pr edit "$PR_NUMBER" --add-label "$LABEL_NEW_EXTENSION"
42+
gh pr edit --repo TurboWarp/desktop "$PR_NUMBER" --add-label "$LABEL_NEW_EXTENSION"
4343
got_any_specific_label=true
4444
elif pcregrep "^\+\+\+ b/extensions/" pr.diff; then
4545
# Example:
4646
# --- a/extensions/DangoCat/extension.js
4747
# +++ b/extensions/DangoCat/extension.js
48-
gh pr edit "$PR_NUMBER" --add-label "$LABEL_CHANGE_EXTENSION"
48+
gh pr edit --repo TurboWarp/desktop "$PR_NUMBER" --add-label "$LABEL_CHANGE_EXTENSION"
4949
got_any_specific_label=true
5050
fi
5151
else
@@ -54,7 +54,7 @@ jobs:
5454
5555
# Any PR that didn't get a specific label will go into other, for a human to look at.
5656
if [[ "$got_any_specific_label" == "false" ]]; then
57-
gh pr edit "$PR_NUMBER" --add-label "$LABEL_OTHER"
57+
gh pr edit --repo TurboWarp/desktop "$PR_NUMBER" --add-label "$LABEL_OTHER"
5858
fi
5959
env:
6060
PR_NUMBER: "${{ github.event.number }}"

0 commit comments

Comments
 (0)