GitHub Enterprise Server

This commit is contained in:
mrT23
2024-07-08 09:01:56 +03:00
parent 745d0c537c
commit 9a57d00951
3 changed files with 6 additions and 4 deletions

View File

@ -524,9 +524,6 @@ class GithubProvider(GitProvider):
def _parse_pr_url(pr_url: str) -> Tuple[str, int]:
parsed_url = urlparse(pr_url)
if 'github.com' not in parsed_url.netloc:
raise ValueError("The provided URL is not a valid GitHub URL")
path_parts = parsed_url.path.strip('/').split('/')
if 'api.github.com' in parsed_url.netloc:
if len(path_parts) < 5 or path_parts[3] != 'pulls':