mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 11:50:37 +08:00
Azure devops: parse PR url starting from the end
This commit is contained in:
@ -13,3 +13,10 @@ class TestAzureDevOpsParsing():
|
||||
|
||||
# workspace_slug, repo_slug, pr_number
|
||||
assert AzureDevopsProvider._parse_pr_url(pr_url) == ("project", "repo", 1)
|
||||
|
||||
def test_self_hosted_address(self):
|
||||
pr_url = "http://server.be:8080/tfs/department/project/_git/repo/pullrequest/1"
|
||||
|
||||
# workspace_slug, repo_slug, pr_number
|
||||
assert AzureDevopsProvider._parse_pr_url(pr_url) == ("project", "repo", 1)
|
||||
|
||||
|
Reference in New Issue
Block a user