Skip to content

Commit

Permalink
Merge pull request #381 from moccajoghurt/feature-allow-custom-urls
Browse files Browse the repository at this point in the history
Support Custom Domain URLs for Azure DevOps Integration
  • Loading branch information
mrT23 authored Oct 17, 2023
2 parents 428c38e + e6f1e05 commit bce2262
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 bce2262

Please sign in to comment.