-
Notifications
You must be signed in to change notification settings - Fork 866
Azure devops: parse PR url starting from the end #1742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Reviewer Guide 🔍(Review updated until commit df1d859)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to ed77b6a
Previous suggestionsSuggestions up to commit be68370
|
be68370
to
ed77b6a
Compare
/improve |
ed77b6a
to
df1d859
Compare
/review |
Persistent review updated to latest commit df1d859 |
cool, thanks |
User description
My company uses a self-hosted AzureDevops server.
The path has more parts than the public Azure PR urls:
http://server:1234/tfs/$department/$project/_git/$repo/pullrequest/68407
I modified the url parser to count the parts from the end of the url, this way it works for any prefix.
PR Type
Bug fix, Enhancement
Description
Improved Azure DevOps PR URL parsing for flexible path structures
Replaced fixed-length parsing with end-based indexing for robustness
Enhanced error handling for malformed or unexpected URLs
Changes walkthrough 📝
azuredevops_provider.py
Flexible and robust Azure DevOps PR URL parsing
pr_agent/git_providers/azuredevops_provider.py
URLs