Skip to content

Commit ad8d01d

Browse files
authored
Replicate the fix in #5669 to the proposal workflow (#5671)
1 parent 5196d1e commit ad8d01d

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.github/workflows/proposal_labeled.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
permissions:
2323
pull-requests: write # For gh to edit labels.
2424

25+
# TODO: `--repo carbon-language/carbon-lang` is a temporary workaround for:
26+
# https://github.com/cli/cli/issues/11055
27+
# Once a later version is released on runners, maybe August 2025, we should be
28+
# able to remove the extra flag.
2529
jobs:
2630
proposal_labeled:
2731
runs-on: ubuntu-latest
@@ -44,7 +48,8 @@ jobs:
4448
--remove-label "proposal accepted" \
4549
--remove-label "proposal declined" \
4650
--remove-label "proposal deferred" \
47-
--add-label "proposal"
51+
--add-label "proposal" \
52+
--repo carbon-language/carbon-lang
4853
env:
4954
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5055
PR: ${{ github.event.pull_request.html_url }}
@@ -58,7 +63,8 @@ jobs:
5863
--remove-label "proposal accepted" \
5964
--remove-label "proposal declined" \
6065
--remove-label "proposal deferred" \
61-
--add-label "proposal"
66+
--add-label "proposal" \
67+
--repo carbon-language/carbon-lang
6268
env:
6369
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6470
PR: ${{ github.event.pull_request.html_url }}
@@ -72,7 +78,8 @@ jobs:
7278
--remove-label "proposal rfc" \
7379
--remove-label "proposal declined" \
7480
--remove-label "proposal deferred" \
75-
--add-label "proposal"
81+
--add-label "proposal" \
82+
--repo carbon-language/carbon-lang
7683
env:
7784
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7885
PR: ${{ github.event.pull_request.html_url }}
@@ -86,7 +93,8 @@ jobs:
8693
--remove-label "proposal rfc" \
8794
--remove-label "proposal accepted" \
8895
--remove-label "proposal deferred" \
89-
--add-label "proposal"
96+
--add-label "proposal" \
97+
--repo carbon-language/carbon-lang
9098
env:
9199
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92100
PR: ${{ github.event.pull_request.html_url }}
@@ -100,7 +108,8 @@ jobs:
100108
--remove-label "proposal rfc" \
101109
--remove-label "proposal accepted" \
102110
--remove-label "proposal declined" \
103-
--add-label "proposal"
111+
--add-label "proposal" \
112+
--repo carbon-language/carbon-lang
104113
env:
105114
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106115
PR: ${{ github.event.pull_request.html_url }}

.github/workflows/proposal_ready.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
permissions:
1414
pull-requests: write # For gh to edit labels.
1515

16+
# TODO: `--repo carbon-language/carbon-lang` is a temporary workaround for:
17+
# https://github.com/cli/cli/issues/11055
18+
# Once a later version is released on runners, maybe August 2025, we should be
19+
# able to remove the extra flag.
1620
jobs:
1721
proposal_ready:
1822
if: contains(github.event.pull_request.labels.*.name, 'proposal')
@@ -34,7 +38,8 @@ jobs:
3438
--remove-label "proposal accepted" \
3539
--remove-label "proposal declined" \
3640
--remove-label "proposal deferred" \
37-
--add-label "proposal rfc"
41+
--add-label "proposal rfc" \
42+
--repo carbon-language/carbon-lang
3843
env:
3944
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4045
PR: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)