summaryrefslogtreecommitdiff
path: root/scripts/pr_quality/errors.py
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2026-06-02 10:57:53 -0400
committerJacob Walls <jacobtylerwalls@gmail.com>2026-06-02 11:43:31 -0400
commit672cfaa53c72dd67fb54ecbdd904ea364d2951c4 (patch)
treedc62957182f8b12c8d54bfee3ee34fd73ebe9924 /scripts/pr_quality/errors.py
parent48e0a64e6491b464249086d6052a00c8d2be418e (diff)
Made PR quality check require tickets for new contributors.
Agents are already abusing the exception for small pull requests by mixing in unrelated typo fixes with their code changes for unreviewed tickets and removing mention of said ticket.
Diffstat (limited to 'scripts/pr_quality/errors.py')
-rw-r--r--scripts/pr_quality/errors.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/pr_quality/errors.py b/scripts/pr_quality/errors.py
index cd305868ac..cd41612da3 100644
--- a/scripts/pr_quality/errors.py
+++ b/scripts/pr_quality/errors.py
@@ -154,6 +154,7 @@ MISSING_TRAC_TICKET = (
"Patches submitted against unreviewed tickets are unlikely to be merged.\n"
"3. Edit the **Trac ticket number** section of your PR description to include "
"the ticket in the format `ticket-NNNNN` (e.g. `ticket-36991`).\n\n"
- "For PRs with fewer than {threshold} lines changed (additions + deletions), you "
- "may write `N/A` in the ticket field instead (e.g. `N/A - typo fix`).",
+ "Unless this is your first contribution, for PRs with fewer than {threshold} lines "
+ "changed (additions + deletions), you may write `N/A` in the ticket field instead "
+ "(e.g. `N/A - typo fix`).",
)