From 934bb1b80dca0ef79c780e2f69a0fa8d0a4535dd Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 17 Mar 2021 23:18:19 -0700 Subject: [PATCH] [skip changelog] Update "stale bot" GHA workflow to use new enabling label 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. --- .github/workflows/stale.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index ecaa5d55db3..93cf10a9020 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -8,6 +8,8 @@ on: types: ["created"] env: + # Name of the label that makes issues subject to the stale bot. + STALE_ENABLE_LABEL: "status: waiting for information" # Name of the label used to mark issues as stale. STALE_LABEL: "status: stale" @@ -21,11 +23,11 @@ jobs: with: github-token: ${{github.token}} script: | - // Get a list of all open issues labeled `waiting for feedback` + // Get a list of all open issues labeled as waiting for feedback const opts = github.issues.listForRepo.endpoint.merge({ ...context.repo, state: 'open', - labels: ['waiting for feedback'], + labels: ['${{ env.STALE_ENABLE_LABEL }}'], }); const issues = await github.paginate(opts);