From 3b1f8bbd0570be5610f42d34755d6b612fa88f56 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Mon, 7 Sep 2026 09:19:13 +0200 Subject: [PATCH] node drift: label the bump PR at creation --- .github/workflows/check-node-versions.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-node-versions.yml b/.github/workflows/check-node-versions.yml index a7b092cee..72179611e 100644 --- a/.github/workflows/check-node-versions.yml +++ b/.github/workflows/check-node-versions.yml @@ -497,12 +497,15 @@ jobs: PR_EOF ) + # The label goes on at creation, not in a second call: it is what + # exempts the PR from the template check, and that check runs on + # "opened" — a label added a moment later can arrive too late. if url=$(gh pr create \ --title "${slug}: bump Node.js from ${our} to ${upstream}" \ --body "$body" \ --base main \ - --head "$branch" 2>/dev/null); then - gh pr edit "$url" --add-label "automated pr" >/dev/null 2>&1 || true + --head "$branch" \ + --label "automated pr" 2>/dev/null); then printf '%s|open|%s\n' "$slug" "$url" >>/tmp/drift_prs.txt else printf '%s|failed||\n' "$slug" >>/tmp/drift_prs.txt