Conversation
Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
📝 WalkthroughWalkthroughAdds a reusable, multi-stage GitHub Actions workflow and docs to automate addressing PR review feedback via Copilot agents, Safe Inputs/Outputs MCP servers, threat detection, and PR updates; includes a trigger workflow, example, and README for setup and usage. (47 words) Changes
Sequence Diagram(s)sequenceDiagram
participant PR as "GitHub PR (client)"
participant Trigger as "Trigger workflow"
participant Orchestrator as "gh-aw-address-pr-feedback\n(reusable workflow)"
participant Copilot as "Copilot CLI / Agent"
participant MCPGW as "MCP Gateway"
participant SafeOut as "Safe Outputs MCP"
participant SafeIn as "Safe Inputs MCP"
participant GH as "GitHub API"
PR->>Trigger: pull_request_review event
Trigger->>Orchestrator: workflow_call (with secrets/inputs)
Orchestrator->>Copilot: prepare env, render prompt, start agent
Copilot->>MCPGW: request tools / md generation / code-search
MCPGW->>SafeOut: validate/produce safe outputs
MCPGW->>SafeIn: accept validated inputs
Copilot->>Orchestrator: agent outputs (edits, logs, artifacts)
Orchestrator->>GH: push commits, resolve threads, add comments
Orchestrator->>SafeOut: upload final artifacts & safety reports
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related issues
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
|
@copilot let's use https://github.github.com/gh-aw/reference/safe-outputs/#reply-to-pr-review-comment-reply-to-pull-request-review-comment for replying to pr review comments that we dont end up implementing or that we disagree with instead of putting the details in the comment we add |
Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
Added Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Adds an automated PR-feedback workflow that runs on review submission and addresses actionable review comments with minimal code changes.
Trigger and guardrails
pull_request_reviewwith typesubmittedchanges_requestedorcommentedskip-auto-address-pr-feedbackBehavior
The workflow gathers unresolved review threads, applies targeted fixes when feedback is actionable, runs repo validation commands, pushes changes to the PR branch, resolves threads it addressed, and posts inline replies for feedback it intentionally does not apply.
Included workflow pieces
.github/workflows/gh-aw-address-pr-feedback.md.github/workflows/gh-aw-address-pr-feedback.lock.yml.github/workflows/trigger-address-pr-feedback.yml.github/workflows/gh-aw-fragments/safe-output-reply-to-review-comment.mdgh-agent-workflows/address-pr-feedback/README.mdandgh-agent-workflows/address-pr-feedback/example.ymlQuick install (consumer repo)
mkdir -p .github/workflows && curl -sL \ https://raw.githubusercontent.com/elastic/ai-github-actions/v0/gh-agent-workflows/address-pr-feedback/example.yml \ -o .github/workflows/address-pr-feedback.yml