lean4-htt/.github/workflows
Kim Morrison 189cea9f80
chore: check for empty PRs in CI (#12956)
This PR adds a CI check that fails when a PR introduces no changes
compared to its base branch. This catches cases where a duplicate PR is
queued for merge after an identical PR has already landed (as happened
with https://github.com/leanprover/lean4/pull/12876 and
https://github.com/leanprover/lean4/pull/12877).

The check is added as a second job in the existing `check-stage0.yml`
workflow, which already has the same trigger conditions and git setup
pattern. On `pull_request` events it diffs against the merge base; on
`merge_group` events it diffs `HEAD^1..HEAD` (the PR's contribution to
the synthetic merge commit). Note that batched merge groups are treated
as a unit — if the entire group is non-empty the check passes, which is
the right behaviour for lean4's typical single-PR queuing.

🤖 Prepared with Claude Code

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 03:09:52 +00:00
..
actionlint.yml chore: CI: bump actions/checkout from 5 to 6 (#11459) 2026-01-09 07:43:13 +00:00
awaiting-manual.yml fix: use pull_request_target for label-triggered workflows (#12638) 2026-03-01 19:20:56 +11:00
awaiting-mathlib.yml fix: use pull_request_target for label-triggered workflows (#12638) 2026-03-01 19:20:56 +11:00
backport.yml chore: CI: add backport action 2023-09-25 11:33:14 +02:00
build-template.yml fix: address unused simp theorem warnings (#12829) 2026-03-06 23:12:03 +00:00
check-empty-pr.yml chore: check for empty PRs in CI (#12956) 2026-03-23 03:09:52 +00:00
check-prelude.yml chore: CI: bump actions/checkout from 5 to 6 (#11459) 2026-01-09 07:43:13 +00:00
check-stage0.yml chore: CI: bump actions/checkout from 5 to 6 (#11459) 2026-01-09 07:43:13 +00:00
check-stdlib-flags.yml fix: use pull_request_target for label-triggered workflows (#12638) 2026-03-01 19:20:56 +11:00
ci.yml fix: nightly dispatch creates today's tag when retrying a failed nightly (#13035) 2026-03-22 11:30:36 +00:00
copyright-header.yml chore: CI: bump actions/checkout from 5 to 6 (#11459) 2026-01-09 07:43:13 +00:00
grove.yml chore: ci: bump grove-action to v0.5 (#11559) 2025-12-09 10:33:31 +00:00
jira.yml chore: CI: Jira sync 2024-07-24 19:52:55 +02:00
labels-from-comments.yml feat: add lake-ci label to enable full Lake test suite (#12836) 2026-03-10 03:23:35 +00:00
pr-body.yml fix: use pull_request_target for label-triggered workflows (#12638) 2026-03-01 19:20:56 +11:00
pr-release.yml chore: revert "chore: CI: avoid fetching full repo in PR Release (#12309)" 2026-02-09 13:12:35 +00:00
pr-title.yml chore: adjust pr-title check to enforce capitalization (#11033) 2025-10-31 07:23:25 +00:00
restart-on-label.yml feat: add lake-ci label to enable full Lake test suite (#12836) 2026-03-10 03:23:35 +00:00
stale.yml chore: CI: bump actions/stale from 9 to 10 (#10647) 2025-10-07 11:41:31 +00:00
update-stage0.yml chore: CI: bump actions/cache from 4 to 5 (#11862) 2026-02-03 12:37:56 +00:00