Skip to content

fix(ci): use 'sdk' scope in release-please PR title pattern#867

Open
pflynn-virtru wants to merge 1 commit intomainfrom
fix/release-please-ccc-scope
Open

fix(ci): use 'sdk' scope in release-please PR title pattern#867
pflynn-virtru wants to merge 1 commit intomainfrom
fix/release-please-ccc-scope

Conversation

@pflynn-virtru
Copy link
Member

Summary

  • Change release-please group-pull-request-title-pattern from chore(${branch}): release ${version} to chore(sdk): release ${version} in both config files
  • The ${branch} variable produces main as the scope, which isn't in the allowed CCC scopes list, causing the conventional commit check to fail on release PRs

Test plan

  • Once merged, the next release-please PR will use chore(sdk): release ... as the title, which passes CCC

🤖 Generated with Claude Code

The previous pattern used ${branch} as the scope, generating titles like
`chore(main): release sdk 0.11.0` which fail the conventional commit
check since 'main' is not an allowed scope.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pflynn-virtru pflynn-virtru requested a review from a team as a code owner March 12, 2026 13:06
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a critical CI issue by updating the release-please configuration. The change ensures that automatically generated release pull request titles adhere to the project's conventional commit standards, preventing build failures and streamlining the release process.

Highlights

  • CI Configuration Update: Modified the group-pull-request-title-pattern in the release-please configuration files to use chore(sdk): release ${version} instead of chore(${branch}): release ${version}.
  • Conventional Commit Compliance: Resolved an issue where release PR titles generated by release-please were failing conventional commit checks because the ${branch} variable produced main as a scope, which was not allowed.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • .github/release-please/release-please-config.main.json
    • Updated the group-pull-request-title-pattern to chore(sdk): release ${version}.
  • .github/release-please/release-please-config.sdk.json
    • Updated the group-pull-request-title-pattern to chore(sdk): release ${version}.
Activity
  • The pull request was created by pflynn-virtru to fix a CI issue related to release-please PR title patterns.
  • The author provided a summary, rationale, and test plan for the changes.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly fixes a failing conventional commit check for release PRs by changing the group-pull-request-title-pattern in the release-please configurations. The change replaces the dynamic ${branch} variable with the hardcoded scope sdk, which is the correct component scope. The change is sound and addresses the issue. I've added a couple of medium-severity comments regarding the duplication of the component name, which introduces a minor maintainability concern to be aware of for the future.

"bump-minor-pre-major": true,
"versioning": "always-bump-minor",
"group-pull-request-title-pattern": "chore(${branch}): release ${version}",
"group-pull-request-title-pattern": "chore(sdk): release ${version}",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

By hardcoding sdk here, you are creating a duplication of the component name, which is also defined under packages...component on line 8. This means if the component name ever changes, it will need to be updated in two places. This could lead to future maintenance issues if not managed carefully.

While this is a reasonable workaround given the limitations of release-please (which doesn't appear to support a component variable in this context), it's important for the team to be aware of this coupling.

"bump-minor-pre-major": true,
"versioning": "always-bump-patch",
"group-pull-request-title-pattern": "chore(${branch}): release ${version}",
"group-pull-request-title-pattern": "chore(sdk): release ${version}",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to the other configuration file, hardcoding sdk here creates a duplication of the component name defined on line 8. This introduces a coupling that could lead to maintenance issues if the component name changes in the future.

@github-actions
Copy link

Copy link
Contributor

@marythought marythought left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see Gemini's feedback and I think it's fine

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