Repository navigation
ci: Reject placeholder internal-only commit messages - #131
Merged
Merged
Conversation
copybara-service
Bot
force-pushed
the
test_1017044682
branch
3 times, most recently
from
November 9, 2026 13:44
d448245 to
a24ac75
Compare
Copybara exports from Google's internal repository require a public commit description, or fall back to a placeholder when none is provided. Authors also sometimes write a boilerplate placeholder when they expect a change not to be exported, and if the change touches an exported file anyway, that placeholder lands in the git history. Fail the `pre-commit` workflow if the commit message contains one of those placeholder phrases. Fetch depth 2 in `actions/checkout` so that `pull_request` runs can inspect `pull_request.head.sha` rather than GitHub's synthetic merge commit (`Merge <sha> into <sha>`), while still running `pre-commit` on the merged tree. PiperOrigin-RevId: 1017279458
copybara-service
Bot
force-pushed
the
test_1017044682
branch
from
November 9, 2026 13:53
a24ac75 to
a51ab8a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ci: Reject placeholder internal-only commit messages
Copybara exports from Google's internal repository require a public
commit description, or fall back to a placeholder when none is provided.
Authors also sometimes write a boilerplate placeholder when they expect
a change not to be exported, and if the change touches an exported file
anyway, that placeholder lands in the git history.
Fail the
pre-commitworkflow if the commit message contains one ofthose placeholder phrases. Fetch depth 2 in
actions/checkoutso thatpull_requestruns can inspectpull_request.head.sharather thanGitHub's synthetic merge commit (
Merge <sha> into <sha>), while stillrunning
pre-commiton the merged tree.