Skip to content

Commit

Permalink
Merge pull request Codium-ai#381 from moccajoghurt/feature-allow-cust…
Browse files Browse the repository at this point in the history
…om-urls

Support Custom Domain URLs for Azure DevOps Integration
  • Loading branch information
mrT23 authored Oct 17, 2023
2 parents 33dcc4c + 54cc7fd commit a3e74d9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pr_agent/git_providers/azuredevops_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,6 @@ def get_issue_comments(self):
def _parse_pr_url(pr_url: str) -> Tuple[str, int]:
parsed_url = urlparse(pr_url)

if 'azure.com' not in parsed_url.netloc:
raise ValueError("The provided URL is not a valid Azure DevOps URL")

path_parts = parsed_url.path.strip('/').split('/')

if len(path_parts) < 6 or path_parts[4] != 'pullrequest':
Expand Down

0 comments on commit a3e74d9

Please sign in to comment.