{workflows/lint,ci/github-script}: lint commit messages

This commit is contained in:
Michael Daniels
2025-12-13 16:43:41 -05:00
parent a5bcf23041
commit 7cf5972410
3 changed files with 123 additions and 0 deletions
+11
View File
@@ -94,4 +94,15 @@ program
await run(getTeams, owner, repo, undefined, { ...options, outFile })
})
program
.command('lint-commits')
.description('Lint for common errors in commit messages')
.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('./lint-commits.js')).default
await run(checkCommitMessages, owner, repo, pr, options)
})
await program.parse()