{workflows/eval,ci/github-script}: check for mass rebuilds targeting master/release-* branches

This commit is contained in:
Michael Daniels
2026-01-17 19:42:08 -05:00
parent 0ba1ea61e3
commit a4d5f8a6b1
5 changed files with 160 additions and 0 deletions
+11
View File
@@ -105,4 +105,15 @@ program
await run(checkCommitMessages, owner, repo, pr, options)
})
program
.command('check-target-branch')
.description('Check that the PR is made against the correct branch')
.argument('<owner>', 'Owner of the GitHub repository to run on (Example: NixOS)')
.argument('<repo>', 'Name of the GitHub repository to run on (Example: nixpkgs)')
.argument('<pr>', 'Number of the Pull Request to run on')
.action(async (owner, repo, pr, options) => {
const checkCommitMessages = (await import('./check-target-branch.js')).default
await run(checkCommitMessages, owner, repo, pr, options)
})
await program.parse()