feat(ensure-branch-rebased)!: check PR commits through the API instead of a checkout #3

Merged
aurelien merged 2 commits from feat/rebase-gate-api into main 2026-10-22 12:47:02 +02:00
Owner

The rebase-only gate cloned the full history (fetch-depth: 0) on every PR update just to look for merge commits. It now reads the PR commits and their parents from the API, so callers no longer need a checkout step.

Breaking: the base-ref input is gone and callers must drop their checkout step, hence a new v2 tag rather than moving v1. The workflow of this repo temporarily points at the branch so this PR runs the new gate; it will point at v2 before merging.

The rebase-only gate cloned the full history (fetch-depth: 0) on every PR update just to look for merge commits. It now reads the PR commits and their parents from the API, so callers no longer need a checkout step. Breaking: the `base-ref` input is gone and callers must drop their checkout step, hence a new `v2` tag rather than moving `v1`. The workflow of this repo temporarily points at the branch so this PR runs the new gate; it will point at `v2` before merging.
Reading the PR commits and their parents from the API avoids cloning the
whole history on every PR update. The base-ref input is no longer needed,
and callers must drop their checkout step.
ci: check rebase-only history without a checkout
All checks were successful
rebase-only / rebase-only-gate (pull_request) Successful in 2s
ac0d553c97
aurelien deleted branch feat/rebase-gate-api 2026-10-22 12:47:05 +02:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aurelien/forgejo-actions!3
No description provided.