Skip to content

Commit

Permalink
chore: streamline base_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Nov 15, 2024
1 parent 47c739b commit b4a3da1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/githarbor/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def default_branch(self) -> str:
raise NotImplementedError

@property
def edit_uri(self) -> str | None:
def edit_base_uri(self) -> str | None:
"""The edit uri prefix of a repository."""
return None

Expand Down
2 changes: 1 addition & 1 deletion src/githarbor/providers/gitearepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def default_branch(self) -> str:
return self._repo.default_branch

@property
def edit_base(self):
def edit_base_uri(self):
return f"_edit/{self.default_branch}/"

@giteatools.handle_api_errors("Failed to get branch")
Expand Down
2 changes: 1 addition & 1 deletion src/githarbor/providers/githubrepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def default_branch(self) -> str:
return self._repo.default_branch

@property
def edit_base(self):
def edit_base_uri(self):
return f"edit/{self.default_branch}/"

@githubtools.handle_github_errors("Failed to get branch {name}")
Expand Down
2 changes: 1 addition & 1 deletion src/githarbor/providers/gitlabrepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def default_branch(self) -> str:
return self._repo.default_branch

@property
def edit_base(self):
def edit_base_uri(self):
return f"edit/{self.default_branch}/"

@gitlabtools.handle_gitlab_errors("Failed to get user info")
Expand Down

0 comments on commit b4a3da1

Please sign in to comment.