goutamadwant commented on code in PR #1499:
URL: https://github.com/apache/maven-release/pull/1499#discussion_r4729644214
##########
maven-release-manager/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java:
##########
@@ -147,7 +148,10 @@ public static ReleaseDescriptor
createBasedirAlignedReleaseDescriptor(
int parentLevels =
Paths.get(releaseDescriptor.getPomFileName()).getNameCount() - 1;
String url = releaseDescriptor.getScmSourceUrl();
- url = realignScmUrl(parentLevels, url);
+ // Git URLs identify the repository, not the directory containing the
reactor's root POM.
+ if (!ScmUrlUtils.isValid(url) ||
!"git".equals(ScmUrlUtils.getProvider(url))) {
Review Comment:
Git URLs, not just GitHub. The check uses Maven’s Git SCM provider, not the
hostname. I clarified that locally. The existing tests cover non-GitHub HTTPS,
SSH, and file URLs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]