Skip to content

Relax PR title parser to accept spaced colon in semantic titles#943

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-pr-title-checker-job
Draft

Relax PR title parser to accept spaced colon in semantic titles#943
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-pr-title-checker-job

Conversation

Copilot AI commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

The PR Title Checker workflow failed on valid intent titles like feat : ... because the default semantic parser requires no space before :. This change updates PR title parsing to tolerate spacing around the separator while still enforcing a valid Conventional Commit type.

  • Workflow parsing update

    • Added explicit headerPattern/headerPatternCorrespondence in .github/workflows/pr-title-checker.yml.
    • Pattern now accepts both feat: subject and feat : subject.
  • Validation rule preserved

    • Commit type remains required (\w+), so invalid forms like : subject or (scope): subject are still rejected.
- uses: amannn/action-semantic-pull-request@v6
  with:
    headerPattern: '^(\w+)(?:\(([\w$.\-*/ ]*)\))?\s*:\s*(.*)$'
    headerPatternCorrespondence: type, scope, subject

Copilot AI changed the title [WIP] Fix failing GitHub Actions job PR Title Checker Relax PR title parser to accept spaced colon in semantic titles Jun 2, 2026
Copilot AI requested a review from Ashwal-Microsoft June 2, 2026 16:38
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.

2 participants