Skip to content

fix(ci): allow release branch scopes in PR title validation#349

Merged
marythought merged 2 commits intomainfrom
fix/release-branch-pr-title-scope
Apr 9, 2026
Merged

fix(ci): allow release branch scopes in PR title validation#349
marythought merged 2 commits intomainfrom
fix/release-branch-pr-title-scope

Conversation

@marythought
Copy link
Copy Markdown
Contributor

@marythought marythought commented Apr 9, 2026

Summary

Release-please uses the pattern chore(${branch}): release ${version} for PR titles, which produces scopes like release/v0.13 for release branch PRs. These scopes were not in the allowed list, causing CI to fail.

Test plan

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Enhanced pull request validation workflow to recognize and properly handle release automation processes.

Release-please generates PR titles like `chore(release/v0.13): release
0.13.1-SNAPSHOT` for release branch PRs, but the scope `release/v0.13`
was not in the allowed scopes list, causing the Validate PR Title check
to fail.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Mary Dickson <mary.dickson@virtru.com>
@marythought marythought requested review from a team as code owners April 9, 2026 19:08
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 9, 2026

📝 Walkthrough

Walkthrough

The GitHub Actions workflow configuration now recognizes release-automation pull requests by extending the Conventional Commits validator to accept commit scope patterns matching release/v0.\d+, enabling these PRs to pass semantic validation checks.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Configuration
.github/workflows/checks.yaml
Added new scope pattern release/v0\.\d+ to the Conventional Commits action's allowed scopes list with corresponding comment documentation for release-automation PRs.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A scope for releases, now recognized with glee,
v0.\d+ patterns flowing wild and free,
Release automation hops along the way,
Checks pass with joy throughout the day! 🎉

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly and specifically describes the main change: allowing release branch scopes in PR title validation, which directly addresses the primary purpose of the changeset.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/release-branch-pr-title-scope

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@marythought marythought changed the title fix(ci): allow release branch scopes in PR title validation fix(release/v0.13): allow release branch scopes in PR title validation Apr 9, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Mary Dickson <mary.dickson@virtru.com>
@marythought marythought changed the title fix(release/v0.13): allow release branch scopes in PR title validation fix(ci): allow release branch scopes in PR title validation Apr 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

X-Test Failure Report

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 9, 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

@marythought marythought merged commit 8020a3b into main Apr 9, 2026
19 checks passed
@marythought marythought deleted the fix/release-branch-pr-title-scope branch April 9, 2026 21:42
marythought added a commit that referenced this pull request Apr 9, 2026
## Summary

- Adds `release/v0\.\d+` regex pattern to the allowed scopes in the PR
title validation workflow
- Fixes `Validate PR title` check failing on release-please PRs
targeting release branches (e.g. #348, #315, #289)

Release-please uses the pattern `chore(${branch}): release ${version}`
for PR titles, which produces scopes like `release/v0.13` for release
branch PRs. These scopes were not in the allowed list, causing CI to
fail.

## Test plan

- [x] Verify this PR's own `Validate PR title` check passes
- [ ] Confirm #348 passes after this merges (or re-run its check)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Enhanced pull request validation workflow to recognize and properly
handle release automation processes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Mary Dickson <mary.dickson@virtru.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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