You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
open repository in external browser with branch (#284)
* Open repo in ext browser with branch
* Handled Github, Gitlab & Bitbucket domains for branch navigation. For other domains, navigation to repository would be supported
* Unit tests added
URIreconstructedRepoURI = newURI(repoURI.getScheme(), null, repoURI.getHost(), repoURI.getPort(), path, null, null); // not taking the username for the link
85
+
returnreconstructedRepoURI.toString();
86
+
}
87
+
88
+
// method to check if the domain is a github domain
89
+
privatebooleanisGithubDomain(Stringdomain) {
90
+
if (domain.equals(GITHUB_DOMAIN) || domain.equals(GITHUB_TOOLS_DOMAIN) || domain.equals(GITHUB_INFRA_HANA_DOMAIN)
91
+
|| domain.equals(GITHUB_WDF_SAP_DOMAIN)) {
92
+
returntrue;
93
+
}
94
+
returnfalse;
95
+
}
96
+
97
+
// method to check if the domain is a gitlab domain
98
+
privatebooleanisGitlabDomain(Stringdomain) {
99
+
if (domain.equals(GITLAB_DOMAIN)) {
100
+
returntrue;
101
+
}
102
+
returnfalse;
103
+
}
104
+
105
+
// method to check if the domain is a bitbucket domain
Copy file name to clipboardExpand all lines: test/org.abapgit.adt.ui.test/src/org/abapgit/adt/ui/internal/repositories/TestsPdeAbapGitRepositoriesUtil.java
0 commit comments