Skip to content

ci: reject branches built on unrelated history - #3

Open
hootandy321 wants to merge 1 commit into
mainfrom
ci/history-guard
Open

hootandy321 wants to merge 1 commit into
mainfrom
ci/history-guard

Conversation

@hootandy321

Copy link
Copy Markdown
Collaborator

Summary

Adds a History guard workflow that fails a pull request (or a push to main) if its history contains any root commit other than this repository's root 05d6037. A branch built on unrelated history cannot then be merged by accident; it has to be rebuilt on main (for example by cherry-picking).

Same check as BUAA-CI-LAB/EmbodiRun#3.

To make it blocking, add Single root commit as a required status check for main.

🤖 Generated with Claude Code

The repository has a single root commit. Fail pull requests and main pushes
whose history contains any other root, so a branch derived from a different
repository's history cannot be merged by accident.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant