mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 21:30:40 +08:00
remove github.com
This commit is contained in:
@ -628,10 +628,6 @@ class GithubProvider(GitProvider):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def _parse_issue_url(issue_url: str) -> Tuple[str, int]:
|
def _parse_issue_url(issue_url: str) -> Tuple[str, int]:
|
||||||
parsed_url = urlparse(issue_url)
|
parsed_url = urlparse(issue_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('/')
|
path_parts = parsed_url.path.strip('/').split('/')
|
||||||
if 'api.github.com' in parsed_url.netloc:
|
if 'api.github.com' in parsed_url.netloc:
|
||||||
if len(path_parts) < 5 or path_parts[3] != 'issues':
|
if len(path_parts) < 5 or path_parts[3] != 'issues':
|
||||||
|
Reference in New Issue
Block a user