Skip to content

ci: add PR-Agent stack review workflow - #767

Draft
masquare wants to merge 6 commits into
chore/pr-agent-reviewfrom
chore/pr-agent-stack-review
Draft

masquare wants to merge 6 commits into
chore/pr-agent-reviewfrom
chore/pr-agent-stack-review

Conversation

@masquare

Copy link
Copy Markdown
Contributor

Reviews a PR together with its whole stack as one combined diff, so a design problem in a lower PR can surface once upper PRs build on it.

  • Finds the stack from open PRs: walks base branches down to the target branch and follows every open PR built on top. One review and one comment per bottom-to-top path.
  • Checks out the top branch, points a local base branch at the bottom PR's target, and runs PR-Agent's local provider on that diff. The PR list is passed to the model so findings name the owning PR.
  • Posts one sticky comment on the triggering PR, edited in place on reruns. Per-PR inline suggestions stay in pr-agent.yaml (ci: add PR-Agent review workflow using OpenRouter #766).
  • The script and config run from the default branch, never from the PR under review. Same-repo, non-draft PRs only.
  • Triggers: opened, reopened, ready for review, and manual workflow_dispatch with a PR number.

Status: stack detection checked with a unit-style assertion. A local dry run on the #758/#759 stack built the 23.8k-token combined diff, but deepseek returned a truncated empty answer for it, so end-to-end output is not verified yet.

@masquare
masquare force-pushed the chore/pr-agent-stack-review branch from 977f926 to a96ef86 Compare November 10, 2026 09:38
@masquare
masquare changed the base branch from main to chore/pr-agent-review November 10, 2026 09:38
@masquare
masquare added this pull request to stack #768 November 10, 2026 09:38
@masquare
masquare force-pushed the chore/pr-agent-stack-review branch from a96ef86 to 4fcf0e9 Compare November 10, 2026 10:06
@masquare
masquare force-pushed the chore/pr-agent-stack-review branch from 4fcf0e9 to dc2fa82 Compare November 10, 2026 10:10

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant