Michael Daniels
f468480986
ci/github-script/lint-commits: fix link to commit conventions
...
(cherry picked from commit 7d1f3b5df9 )
2026-03-13 22:37:39 +00:00
Michael Daniels
6db2011fc9
ci/github-script/lint-commits: error when conventional commit format is used
...
E.g. https://redirect.github.com/NixOS/nixpkgs/pull/495442
(cherry picked from commit 58f002f950 )
2026-03-12 22:13:44 +00:00
Michael Daniels
a6870d6871
ci/github-script: don't use GH API when getting commit info, return only subject
...
(cherry picked from commit d03b81d689 )
2026-03-12 22:13:44 +00:00
Michael Daniels
de3d7652e0
ci/github-script: split getting commit details for PR into its own file
...
(cherry picked from commit 743ab29528 )
2026-03-12 22:13:44 +00:00
Michael Daniels
433440b6a6
ci/github-script/lint-commits: check for "fixup!" and friends
...
(cherry picked from commit 1921190502 )
2026-02-14 18:59:57 +00:00
Michael Daniels
2d9351bc13
ci/github-script/lint-commits: support PRs with over 250 commits
...
We want to be able to check python-updates.
(cherry picked from commit c7eee1a755 )
2026-02-14 18:59:57 +00:00
Michael Daniels
6801e9c840
ci/github-script/lint-commits: fix development branch check
...
https://redirect.github.com/NixOS/nixpkgs/pull/487628 should have had this
job fail, but [didn't](https://github.com/NixOS/nixpkgs/actions/runs/21753302803/job/62756645701?pr=487628#step:3:18 ),
because the head branch was named `master`.
(cherry picked from commit 0a07e4e187 )
2026-02-08 02:22:12 +00:00
aleksana
1ecd8a1c54
workflows/lint: require to contain a colon with a whitespace
...
This restricts github automatically merging master with commit message
"Merge branch 'NixOS:master' into ...". Although we don't explicitly
prohibit not space after colons, we don't use it in any of the examples.
It's also enforced in https://www.conventionalcommits.org/en/v1.0.0/
(cherry picked from commit c04dc5869d )
2026-01-09 10:57:11 +00:00
Matt Sturgeon
1cb7760d47
workflows/lint: fully skip the commits job in Merge Queues
...
Follow-up to 7cf5972410
While the JS script already returned early, we can save a few resources
by skipping the job entirely when there's no `pull_request` context.
(cherry picked from commit 7cfe9b8c85 )
2025-12-18 21:27:48 +00:00
Michael Daniels
081742aea5
{workflows/lint,ci/github-script}: lint commit messages
...
(cherry picked from commit 7cf5972410 )
2025-12-18 12:54:07 +00:00