Skip to content

chore: make exception for non-cloud artifacts#1787

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

chore: make exception for non-cloud artifacts#1787
JoeWang1127 merged 2 commits intomasterfrom
bugfix/fix-non-cloud-pom

Conversation

@JoeWang1127
Copy link
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
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
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?

Copy link
Member

@suztomo suztomo Apr 4, 2023

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
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
Copy link
Member

@suztomo suztomo left a comment

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
Copy link
Member

suztomo commented Apr 4, 2023

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
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