From 2178c98ccc8b53fa778911ef7de12ec855ff798a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 15 Feb 2026 22:18:43 +0100 Subject: [PATCH] Assign no-stale to Tasks/Epic/Opportunity issue type (#163080) --- .github/workflows/restrict-task-creation.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/restrict-task-creation.yml b/.github/workflows/restrict-task-creation.yml index fdbe5c65635..5dbcf0d10e1 100644 --- a/.github/workflows/restrict-task-creation.yml +++ b/.github/workflows/restrict-task-creation.yml @@ -8,6 +8,26 @@ on: permissions: {} jobs: + add-no-stale: + runs-on: ubuntu-latest + permissions: + issues: write + if: >- + github.event.issue.type.name == 'Task' + || github.event.issue.type.name == 'Epic' + || github.event.issue.type.name == 'Opportunity' + steps: + - name: Add no-stale label + uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 + with: + script: | + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + labels: ['no-stale'] + }); + check-authorization: runs-on: ubuntu-latest permissions: