ci: require an open issue for first-time contributor PRs (#7169)

* ci: require an open issue for first-time contributor PRs

Gate anyone who is not a returning contributor, and allow the PR only when a closing keyword points at an open issue in this repo.

* ci: accept any open issue mention for first-timer PRs

Drop the closing-keyword regex so #123, owner/repo#N, or an issue URL is enough when that issue is open.

* ci: ignore foreign owner/repo#N in first-timer issue gate

Bare #123 no longer matches the suffix of other/repo#123, so an open local issue cannot keep that PR open.
This commit is contained in:
Vidit Ostwal
2026-08-31 22:48:14 +05:30
committed by GitHub
parent 614efcdd30
commit bf56bb13bd
4 changed files with 129 additions and 18 deletions

View File

@@ -3,9 +3,8 @@
Fixes #
<!--
First-time contributors must link an existing issue in this repo.
Use a closing keyword: Fixes #123, Closes #123, or Resolves #123.
PRs without a linked issue are closed automatically.
First-time contributors must mention an existing open issue in this repo
(for example #123). PRs without a linked open issue are closed automatically.
-->
## Summary