-
Notifications
You must be signed in to change notification settings - Fork 1k
Add support for publishing comments on issues in GitHub provider #1651
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
/improve |
PR Code Suggestions ✨Latest suggestions up to 991a866 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 991a866
Suggestions up to commit 255e1d0
Suggestions up to commit 255e1d0
Suggestions up to commit 255e1d0
|
/improve |
/improve |
PR Reviewer Guide 🔍(Review updated until commit 991a866)Here are some key observations to aid the review process:
|
Persistent review updated to latest commit 991a866 |
1 similar comment
Persistent review updated to latest commit 991a866 |
/describe |
TitleAdd support for publishing comments on issues in GitHub provider PR TypeEnhancement, Bug fix Description
Mermaid diagram of main logic changes: flowchart TD
A[Initialize GithubProvider] --> B{URL contains 'pull'?}
B -- Yes --> C[Set PR context]
B -- No --> D{URL contains 'issue'?}
D -- Yes --> E[Set Issue context]
D -- No --> F[No PR/Issue context]
C --> G[Can publish PR comment]
E --> H[Can publish Issue comment]
F --> I[Error: No context]
Changes walkthrough 📝
|
PR Type
Enhancement, Bug fix
Description
Added support for publishing comments on GitHub issues.
Introduced
_get_issue_handle
to fetch GitHub issue objects.Enhanced URL parsing to handle GitHub App URLs correctly.
Fixed URL prefix handling in documentation link generation.
Changes walkthrough 📝
github_provider.py
Support publishing comments on GitHub issues
pr_agent/git_providers/github_provider.py
_get_issue_handle
for issue object retrieval.pr_help_docs.py
Fix URL prefix handling in documentation links
pr_agent/tools/pr_help_docs.py