More refactoring....

This commit is contained in:
Hussam.lawen
2023-07-19 17:01:56 +03:00
parent 36be79ea38
commit 3326327572
4 changed files with 15 additions and 9 deletions

View File

@ -30,6 +30,9 @@ class GithubProvider(GitProvider):
def is_supported(self, capability: str) -> bool:
return True
def get_pr_url(self) -> str:
return f"https://github.com/{self.repo}/pull/{self.pr_num}"
def set_pr(self, pr_url: str):
self.repo, self.pr_num = self._parse_pr_url(pr_url)
self.pr = self._get_pr()