-
Couldn't load subscription status.
- Fork 1.1k
feat: provider-agnostic push outputs + optional Slack relay (disabled by default) #2043
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
base: main
Are you sure you want to change the base?
Conversation
- Implement provider-agnostic push_outputs function supporting stdout, file, and webhook channels - Add FastAPI-based Slack webhook relay server for external integrations - Integrate push_outputs into PR reviewer tool to emit review data - Add configuration section for push_outputs with default disabled state
docs: add provider-agnostic push outputs and Slack relay usage - Adds `push_outputs` with channels (stdout/file/webhook), disabled by default - Integrates into review flow; - Includes optional Slack relay service - Updates `README` with usage instructions. No changes to default behavior.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||
|
Preparing answer... |
User description
Description
Resolves: Enable Slack Notifications for Newly Reviewed PRs or Any PR-Agent Response #2025
Summary
This PR implements a provider-agnostic mechanism to emit PR-Agent outputs to external sinks (e.g., Slack) with zero coupling to any specific git provider API. It adds:
This meets the requirements in #2025:
What changed
[push_outputs]
enable = false
channels = ["stdout"]
file_path = "pr-agent-outputs/reviews.jsonl"
webhook_url = ""
presentation = "markdown"
Why this design
Configuration examples
[push_outputs]
enable = true
channels = ["webhook"]
webhook_url = "http://your-relay-host:8000/relay"
presentation = "markdown"
[push_outputs]
enable = true
channels = ["file"]
file_path = "pr-agent-outputs/reviews.jsonl"
Optional Slack relay usage
Failure handling
Backward compatibility
Security and privacy
Performance impact
Known limitations and future work
Testing performed
Notes
Request
PR Type
Enhancement
Description
Add provider-agnostic push outputs mechanism with stdout/file/webhook channels
Integrate Slack relay server for external notifications
Enable review data emission without git provider APIs
Add configuration section with disabled-by-default settings
Diagram Walkthrough
File Walkthrough
utils.py
Add generic push outputs mechanismpr_agent/algo/utils.py
push_outputs()function supporting stdout, file, and webhookchannels
push_outputs_relay.py
Add Slack relay server implementationpr_agent/servers/push_outputs_relay.py
pr_reviewer.py
Integrate push outputs into reviewerpr_agent/tools/pr_reviewer.py
push_outputsfunctionpush_outputs()after review generation with payload and markdownREADME.md
Document push outputs featureREADME.md
.pr_agent.tomlconfiguration.toml
Add push outputs configurationpr_agent/settings/configuration.toml
[push_outputs]configuration section