Skip to content

Commit 4b58024

Browse files
committed
use classmethod
1 parent 640766a commit 4b58024

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/manager_github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class GitHubManager:
1818
_REMOTE_PATH: str
1919
_SINGLE_COMMIT_BRANCH = "latest_branch"
2020

21-
@staticmethod
21+
@classmethod
2222
def prepare_github_env(cls):
2323
"""
2424
Download and store for future use:
@@ -37,7 +37,7 @@ def prepare_github_env(cls):
3737
cls.REMOTE = github.get_repo(cls._REMOTE_NAME)
3838
cls.REPO = Repo.clone_from(cls._REPO_PATH, to_path=clone_path)
3939

40-
@staticmethod
40+
@classmethod
4141
def branch(cls, requested_branch: str) -> str:
4242
"""
4343
Gets requested branch name or the default branch name if requested branch wasn't found.

0 commit comments

Comments
 (0)