Skip to content

Commit

Permalink
Fix for issue #756
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Jul 12, 2024
1 parent 18f3d59 commit d5eb71e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public static String getRepo(String url) {

public static String getCommit(String url) {
url = removeAdditionalPart(url);
if (url.contains("/commits/")) {
int index = nthIndexOf(url,'/',8);
return url.substring(index+1);
}
int index = nthIndexOf(url,'/',6);
return url.substring(index+1);
}
Expand Down Expand Up @@ -59,6 +63,6 @@ public static int getPullRequestID(String prURL) {
}

public static boolean isPR(String url) {
return url.contains("/pull/");
return url.contains("/pull/") && !url.contains("/commits/");
}
}

0 comments on commit d5eb71e

Please sign in to comment.