Skip to content

Commit ab92281

Browse files
authored
[skip changelog] Update "stale bot" GHA workflow to use new enabling label (#1226)
The "waiting for feedback" label was renamed "status: waiting for information" to comply with the standardized tooling label system, but this label name was missed when updating the workflow to reflect the change.
1 parent a8056f6 commit ab92281

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/stale.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
types: ["created"]
99

1010
env:
11+
# Name of the label that makes issues subject to the stale bot.
12+
STALE_ENABLE_LABEL: "status: waiting for information"
1113
# Name of the label used to mark issues as stale.
1214
STALE_LABEL: "status: stale"
1315

@@ -21,11 +23,11 @@ jobs:
2123
with:
2224
github-token: ${{github.token}}
2325
script: |
24-
// Get a list of all open issues labeled `waiting for feedback`
26+
// Get a list of all open issues labeled as waiting for feedback
2527
const opts = github.issues.listForRepo.endpoint.merge({
2628
...context.repo,
2729
state: 'open',
28-
labels: ['waiting for feedback'],
30+
labels: ['${{ env.STALE_ENABLE_LABEL }}'],
2931
});
3032
const issues = await github.paginate(opts);
3133

0 commit comments

Comments
 (0)