Carry out manual tidy of original Claude coded workflow

* use better names for timing env vars
* tie action to commit hash rather than version
* improve wording of comments to be added to PR
This commit is contained in:
GCHQDeveloper581 2026-07-03 13:20:27 +00:00
parent cdada0a075
commit fc508747a4
No known key found for this signature in database
GPG Key ID: 6222E059A3DF595C

View File

@ -12,18 +12,18 @@ permissions:
issues: write issues: write
# Configurable intervals (days). # Configurable intervals (days).
# INTERVAL_1 = grace period before the warning comment. # DAYS_BEFORE_WARNING = grace period before the warning comment.
# INTERVAL_2 = further period after the warning before closing. # DAYS_BEFORE_CLOSURE = further period after the warning before closing.
env: env:
INTERVAL_1: 14 DAYS_BEFORE_WARNING: 7
INTERVAL_2: 14 DAYS_BEFORE_CLOSURE: 21
jobs: jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Close stale unsigned-CLA PRs - name: Close stale unsigned-CLA PRs
uses: actions/stale@v9 uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 #v10.3.0
with: with:
# ---- Guards: only act on PRs carrying the CLA label ---- # ---- Guards: only act on PRs carrying the CLA label ----
only-labels: 'awaiting cla' only-labels: 'awaiting cla'
@ -33,21 +33,22 @@ jobs:
days-before-issue-close: -1 days-before-issue-close: -1
# ---- Timing ---- # ---- Timing ----
# INTERVAL_1: days of inactivity before the warning comment. # DAYS_BEFORE_WARNING: days of inactivity before the warning comment.
days-before-pr-stale: ${{ env.INTERVAL_1 }} days-before-pr-stale: ${{ env.DAYS_BEFORE_WARNING }}
# INTERVAL_2: days after being marked stale before closing. # DAYS_BEFORE_CLOSURE: days after being marked stale before closing.
days-before-pr-close: ${{ env.INTERVAL_2 }} days-before-pr-close: ${{ env.DAYS_BEFORE_CLOSURE }}
# ---- Warning comment (posted once when marked stale) ---- # ---- Warning comment (posted once when marked stale) ----
stale-pr-message: > stale-pr-message: >
This PR will be automatically closed if the CLA is not signed As we are unable to accept contributions unless the CLA has
within ${{ env.INTERVAL_2 }} days. been signed, this PR will be automatically closed if the CLA
is not signed within ${{ env.DAYS_BEFORE_CLOSURE }} days.
# ---- Close comment ---- # ---- Close comment ----
close-pr-message: > close-pr-message: >
This PR has been automatically closed as the CLA has not been This PR has been automatically closed as the CLA remains
signed. We are happy to have it reopened if the CLA is signed unsigned. We will be happy to have it reopened if the CLA
subsequently. is signed subsequently.
# A dedicated marker label so we can track stale state without # A dedicated marker label so we can track stale state without
# interfering with the "awaiting cla" label. # interfering with the "awaiting cla" label.