Repository navigation
feat: automatic commit message for pull request merge (#79) - #120
Merged
Merged
Conversation
Validates only the subject line (type, scope, description), skipping body and Refs. Enables PR title validation for merge commit compliance. Refs: #79
Configures merge_commit_title=PR_TITLE, merge_commit_message=PR_BODY, and allow_auto_merge=true via gh api. Wired into post-create.sh so downstream devcontainer projects get compliant merge commits. Refs: #79
Runs validate-commit-msg --subject-only on pull_request opened/edited/ synchronize to enforce commit message standard on PR titles. Refs: #79
c-vigo
approved these changes
Feb 20, 2026
Signed-off-by: gerchowl <[email protected]>
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.
Pull Request
Description
Ensure merge commits follow the project's commit message standard automatically. PR titles are validated in CI, GitHub repo settings are configured to use PR title as merge commit subject and PR body as merge commit body, and the PR template includes a
Refs:placeholder for traceability.Related Issue(s)
Closes #79
Type of Change
Changes Made
validate-commit-msg --subject-onlyflag — validates only the subject line (type, scope, description), skipping body and Refs. Enables PR title validation without requiring a full commit message. 12 new tests added.setup-gh-repo.sh— new devcontainer lifecycle script that configures GitHub repo merge settings viagh api(merge_commit_title=PR_TITLE,merge_commit_message=PR_BODY,allow_auto_merge=true). Wired intopost-create.shso downstream projects get compliant merge commits on first container creation.pr-title-check.yml— new CI workflow that validates PR titles onopened/edited/synchronizeusingvalidate-commit-msg --subject-only.Refs:placeholder — added at the end of the PR body template so the merge commit body includes issue traceability.Changelog Entry
Added
setup-gh-repo.shconfigures repo merge settings viagh api(merge_commit_title=PR_TITLE,merge_commit_message=PR_BODY,allow_auto_merge=true)post-create.shso downstream devcontainer projects get compliant merge commits automatically--subject-onlyflag forvalidate-commit-msgto validate PR titles without requiring body or Refspr-title-check.ymlCI workflow enforces commit message standard on PR titlesRefs: #placeholder for merge commit traceabilityTesting
just test)Manual Testing Details
validate_commit_msgtests pass (12 newTestSubjectOnlytests + 103 existing)bash -nsyntax check onsetup-gh-repo.shandpost-create.shpr-title-check.ymlChecklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Post-merge action: Run
setup-gh-repo.shmanually againstvig-os/devcontainerto apply the merge settings to this repo (since the container won't be recreated just for this change).Refs: #79