ci: fail PR if title does not match Conventional Commits format @W-21613569@ [post-tdx]#146
Merged
hsinghbisht-sfdc merged 2 commits intomainfrom Apr 8, 2026
Merged
Conversation
hsinghbisht-sfdc
approved these changes
Apr 8, 2026
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.
References: Contributing guide · Skill authoring guide · Agent Skills spec
What changed
Added a new
conventional-commit-titleCI job to.github/workflows/validate-pr.ymlthat validates PR titles against the Conventional Commits format on everyopened,reopened, andeditedPR event targetingmain.@W-21613569@
Why
Enforces a consistent, machine-readable commit history. Conventional Commit titles are required for automated changelog generation and semantic versioning tooling (e.g.
standard-version,release-please). Without a hard gate, non-conforming titles slip through and break those pipelines.Notes
pr-title(reusable workflow) job — no change to existing behaviour.env:(not inline${{ }}) to prevent shell injection.build,chore,ci,docs,feat,fix,perf,refactor,revert,style,test.!) and optional scope are both supported.Skills
Manual checklist
Description quality
Instructions
Context efficiency
templates/,examples/, ordocs/subdirectoriesAutomated checks
Enforced by CI (
npm run validate:skills) per the Agent Skills spec:SKILL.mdnamematches directory name;descriptionis present, ≥ 20 words, ≤ 1024 characters, and includes trigger language