Skip to content

fix(release): add Version.java as extra files in release-please#12617

Merged
diegomarquezp merged 1 commit intomainfrom
renovate/add-version.java
Apr 2, 2026
Merged

fix(release): add Version.java as extra files in release-please#12617
diegomarquezp merged 1 commit intomainfrom
renovate/add-version.java

Conversation

@diegomarquezp
Copy link
Copy Markdown
Contributor

@diegomarquezp diegomarquezp commented Apr 2, 2026

Confirmed on dry run:

...
Fetching java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/Version.java from branch renovate/add-version.java
❯ Fetching java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/Version.java from branch renovate/add-version.java
❯ Fetching java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/Version.java from branch renovate/add-version.java
❯ Fetching java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/Version.java from branch renovate/add
...

Copy link
Copy Markdown
Contributor

@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 updates the release-please configuration to include additional generic file paths for version tracking. The review feedback highlights an indentation inconsistency and a discrepancy between the PR title and the actual changes, providing a corrected JSON snippet to ensure proper formatting.

Comment on lines +11 to +20
{
"type": "generic",
"path": "java-*/**/Version.java",
"glob": true
},
{
"type": "generic",
"path": "sdk-platform-java/java-showcase*/Version.java",
"glob": true
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The indentation in the newly added blocks uses a mix of tabs and spaces, which is inconsistent with the 2-space indentation used in the rest of the file. Additionally, please ensure that configuration for files within submodules is placed in the root package's extra-files section, as release-please does not check for configuration within submodules. Finally, the PR title mentions 'renovate config', but these changes are for release-please. Updating the title will ensure the generated changelog is accurate.

  {
    "type": "generic",
    "path": "java-*/**/Version.java",
    "glob": true
  },
  {
    "type": "generic",
    "path": "sdk-platform-java/java-showcase*/Version.java",
    "glob": true
  }
References
  1. In release-please-config.json, configuration for files within submodules should be placed in the root package's extra-files section, as release-please does not check for configuration within submodules.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

FYI, I didn't have to add the extra metadata type and glob for it to work for bigquery

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the PR title mentions 'renovate config', but these changes are for release-please

This is valid. @diegomarquezp Can you please update the PR title before merging?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

FYI, I didn't have to add the extra metadata type and glob for it to work for bigquery

I wanted to cover all Version.java files generated in google-cloud-java.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the PR title mentions 'renovate config', but these changes are for release-please

This is valid. @diegomarquezp Can you please update the PR title before merging?

Done

@diegomarquezp diegomarquezp marked this pull request as ready for review April 2, 2026 13:15
@diegomarquezp diegomarquezp requested a review from a team as a code owner April 2, 2026 13:15
Comment on lines +11 to +20
{
"type": "generic",
"path": "java-*/**/Version.java",
"glob": true
},
{
"type": "generic",
"path": "sdk-platform-java/java-showcase*/Version.java",
"glob": true
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

FYI, I didn't have to add the extra metadata type and glob for it to work for bigquery

Comment on lines +11 to +20
{
"type": "generic",
"path": "java-*/**/Version.java",
"glob": true
},
{
"type": "generic",
"path": "sdk-platform-java/java-showcase*/Version.java",
"glob": true
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the PR title mentions 'renovate config', but these changes are for release-please

This is valid. @diegomarquezp Can you please update the PR title before merging?

@diegomarquezp diegomarquezp changed the title fix(release): add Version.java as extra files in renovate config fix(release): add Version.java as extra files in release-please Apr 2, 2026
@diegomarquezp diegomarquezp merged commit f5101d9 into main Apr 2, 2026
107 checks passed
@diegomarquezp diegomarquezp deleted the renovate/add-version.java branch April 2, 2026 15:25
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.

3 participants