From e108bc539e6bc380ecf82d227cc474adeae88e32 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Tue, 11 Aug 2026 13:55:48 -0400 Subject: [PATCH] Clarify auto-closed PR message (#4820) --- .github/workflows/require-issue-link.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/require-issue-link.yml b/.github/workflows/require-issue-link.yml index 6d674d0e2..fda27b36a 100644 --- a/.github/workflows/require-issue-link.yml +++ b/.github/workflows/require-issue-link.yml @@ -379,9 +379,6 @@ jobs: async function enforceFailure(kind) { await addLabel(); - const reason = kind === 'no-link' - ? "it doesn't reference a tracked issue assigned to you" - : "you aren't assigned to the issue it references"; const steps = kind === 'no-link' ? [ `1. Find or [open an issue](https://github.com/${owner}/${repo}/issues/new/choose) describing the change — if you open it, you have first claim on it.`, @@ -393,9 +390,9 @@ jobs: const commentBody = [ MARKER, - "**Don't open a new pull request — this one reopens on its own.** It's closed for " + - `now because ${reason}, but the moment that's fixed it reopens automatically. Keep this ` + - 'PR and edit it; opening a fresh duplicate just starts you over and creates more to triage.', + '**This pull request was closed because it must link to an issue assigned to you.** ' + + 'Once this PR links to an issue and a maintainer assigns that issue to you, it will ' + + 'reopen automatically. Please update this PR rather than opening a new one.', '', `Per [CONTRIBUTING.md](https://github.com/${owner}/${repo}/blob/main/CONTRIBUTING.md), an external PR must reference an issue that's assigned to its author. To get there:`, '',