Skip to content

fix: pass default subjectPattern in compat alias to prevent empty override#352

Closed
anmolnagpal wants to merge 1 commit into
masterfrom
fix/pr-checks-subject-pattern
Closed

fix: pass default subjectPattern in compat alias to prevent empty override#352
anmolnagpal wants to merge 1 commit into
masterfrom
fix/pr-checks-subject-pattern

Conversation

@anmolnagpal

Copy link
Copy Markdown
Collaborator

Summary

  • The pr_checks.yml compat alias forwards subjectPattern to pr-checks.yml
  • When callers don't pass subjectPattern, it sends empty string instead of letting the default [A-Za-z].+ kick in
  • This causes the PR title regex to be ^(type)(\(scope\))?\s+$ which matches nothing
  • Fix: use ${{ inputs.subjectPattern || '[A-Za-z].+' }} to preserve the default

Test plan

  • Verify PRs using pr_checks.yml (underscore) now pass title validation
  • Verify PRs using pr-checks.yml (hyphen) are unaffected

@anmolnagpal
anmolnagpal requested review from a team and clouddrove-ci as code owners March 20, 2026 12:57
@anmolnagpal
anmolnagpal requested a review from archit-cd March 20, 2026 12:57
@clouddrove-ci
clouddrove-ci deleted the fix/pr-checks-subject-pattern branch April 1, 2026 11:37
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