Skip to content

chore: make exception for non-cloud artifacts - #1787

Merged
JoeWang1127 merged 2 commits into
masterfrom
bugfix/fix-non-cloud-pom
Apr 4, 2023
Merged

JoeWang1127 merged 2 commits into
masterfrom
bugfix/fix-non-cloud-pom

Conversation

@JoeWang1127

Copy link
Copy Markdown
Contributor

if main_artifact_group_id != "com.google.cloud" and \
main_artifact_group_id != "com.google.area120" and \
main_artifact_group_id != "com.google.analytics":
prefix = main_artifact_group_id

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.

Python 3.9 doesn't have a switch statement.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you use "in" operator with a list of the 3 elements?

@suztomo suztomo Apr 4, 2023 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also add source code comment for the reason why this logic is needed.
=> nevermind. you added comment above.

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.

done.

@JoeWang1127
JoeWang1127 marked this pull request as ready for review April 4, 2023 00:06
@JoeWang1127
JoeWang1127 requested review from a team and suztomo April 4, 2023 00:06

@suztomo suztomo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@JoeWang1127 Update the title with "chore:" and ensure you merge with "chore:" to main. This line may appear in the pull request in downstream repositories and without "chore:" it would appear in their release note of irrelevant repositories.

@suztomo

suztomo commented Apr 4, 2023

Copy link
Copy Markdown
Member

Also "bugfix" is not a suffix in conventional commits https://www.conventionalcommits.org/en/v1.0.0/#specification

@JoeWang1127 JoeWang1127 changed the title bugfix: make exception for non-cloud artifacts chore: make exception for non-cloud artifacts Apr 4, 2023
@JoeWang1127

Copy link
Copy Markdown
Contributor Author

@suztomo changed the PR title.

@JoeWang1127
JoeWang1127 merged commit a86e189 into master Apr 4, 2023
@JoeWang1127
JoeWang1127 deleted the bugfix/fix-non-cloud-pom branch April 4, 2023 15:28
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.

java-analytics-admin/google-analytics-admin-bom/pom.xml contains artifacts with invalid group ID

3 participants