-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make VCS URI annotation configurable #39554
Conversation
xstefank
commented
Mar 19, 2024
•
edited by geoand
Loading
edited by geoand
- Closes: Make annotation app.quarkus.io/vcs-uri optional in Kubernetes extension #38055
|
||
private static String parseVCSUri(VCSUriConfig config, ScmInfo scm) { | ||
if (config.enabled) { | ||
return config.override.orElseGet(() -> scm != null ? Git.sanitizeRemoteUrl(scm.getRemote().get("origin")) : null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mirroring my comment from the original issue.
Is it reasonable to get ScmInfo directly from SCM configuration compared to SCM configuration of project's build file (e.g. pom.xml
)? I really wouldn't expect application framework to go digging into my git configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SCM configuration may or may not be configured, in contrast to .git
.
Do you see any reason why the extension should not go digging to the git configuration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I really don't understand the argument of not using .git
...
Left a food for thought comment. Regardless thank you for providing an override option! |
Status for workflow
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Milestone is already set for some of the items: We haven't automatically updated the milestones for these items. This message is automatically generated by a bot. |