Skip to content

Commit

Permalink
Alias java monorepo for sourcegraph correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyw committed Apr 14, 2024
1 parent 8137656 commit 6941f8e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion git_browse/sourcegraph.py
Expand Up @@ -44,7 +44,7 @@ def get_url(self, git_object: typedefs.GitObject) -> str:
repository_url = "%s%s/uber-code/%s" % (
UBER_SOURCEGRAPH_URL,
self.host,
self.repository.replace('/', '-'),
self.format_phabricator_repository(),
)
else:
repository_url = "%s%s/%s" % (
Expand Down Expand Up @@ -86,3 +86,8 @@ def file_url(
focus_object.identifier,
)
return repository_url

def format_phabricator_repository(self):
if self.repository == "lm/fievel":
return "java-code"
return self.repository.replace("/", "-")

0 comments on commit 6941f8e

Please sign in to comment.