-
Notifications
You must be signed in to change notification settings - Fork 593
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
Fix base url not being passed through github_provider class correctly #1127
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
thanks, i will review it later today |
@squinn1 Run the code, catch breakpoints, and test is. |
Hi @mrT23, Thanks |
yes, this was the problem, the 'https' |
User description
all unit tests passing
PR Type
Bug fix, Enhancement
Description
base_url
andbase_url_html
attributes were not being correctly used throughout theGitHubProvider
class._parse_pr_url
and_parse_issue_url
methods from static to instance methods to accessself.base_url
.get_lines_link_original_file
method to useself.base_url_html
instead of hardcoded 'github.com'.Changes walkthrough 📝
github_provider.py
Refactor GitHub provider to use instance-specific base URLs
pr_agent/git_providers/github_provider.py
_parse_pr_url
and_parse_issue_url
self.base_url
instead of hardcoded'api.github.com'
get_lines_link_original_file
to useself.base_url_html
instead of hardcoded 'github.com'