diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-06-11 12:47:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 18:47:44 +0200 |
commit | 68e18234264ce9e1670c7baa18d29accba949b34 (patch) | |
tree | ab6325859dc704b6663812efaf18ab01e5b37b78 /tools/verify_pr_title.js | |
parent | 17e121925013c48db7fd1f45e48442a64ddbe58b (diff) |
ci: error on `chore:` deno_core upgrade pr titles (#24179)
Diffstat (limited to 'tools/verify_pr_title.js')
-rw-r--r-- | tools/verify_pr_title.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/verify_pr_title.js b/tools/verify_pr_title.js index 3f7f7be03..9b420ee78 100644 --- a/tools/verify_pr_title.js +++ b/tools/verify_pr_title.js @@ -7,6 +7,21 @@ if (prTitle == null) { console.log("PR title:", prTitle); +if ( + prTitle.startsWith("chore:") && prTitle.contains("deno_core") && + (prTitle.contains("upgrade") || prTitle.contains("update")) +) { + console.error([ + "Please categorize this deno_core upgrade as a 'feat:', 'fix:' or a ", + "'refactor:'. If your upgrade does not fall into either of these ", + "categories, wait until the next deno_core release.\n\n", + "For feats and fixes, please title your PR outlining the fixed issue ", + "rather than just `fix: upgrade deno_core` so that users understand the ", + "change that was made in the changelog.", + ].join("")); + Deno.exit(1); +} + // This is a release PR, so it's valid. if (/^[^\s]+\.[^\s]+\.[^\s]+$/.test(prTitle)) { console.log("Valid."); |