Skip to content

fix: resolve commands through the pull request endpoint - #79

Merged
svozza merged 1 commit into
mainfrom
fix/command-pr-endpoint
Sep 16, 2026
Merged

svozza merged 1 commit into
mainfrom
fix/command-pr-endpoint

Conversation

@svozza

@svozza svozza commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

The first live /fix 1 run on ritofactory/rito-mvp#29 failed with HTTP 403 before planning: command preparation fetched /issues/29, but its job deliberately grants pull-requests: read without issues: read.

Resolve the PR directly through /pulls/{number}, which supplies all required metadata and establishes that the issue number belongs to a PR. Treat 404 as an inaccessible/non-PR refusal, while other HTTP errors remain operational failures. This removes the redundant API request without expanding workflow permissions.

The test fixture now denies issue-endpoint access, reproducing the live permission boundary. Regression coverage also checks that 404 refuses and 401/403/500 stop preparation without being mislabeled as non-PRs.

Validation: 220 focused tests and type checking pass. Read-only preparation using PR #29’s real review artifact succeeds (local lookup supplies the observed Actions bot identity because the local token identifies a user). Full deterministic suite: 2,311 passed, 2 skipped.

Live failure: https://github.com/ritofactory/rito-mvp/actions/runs/35086570565

@svozza
svozza deployed to ai-pr-review-runtime September 16, 2026 10:47 — with GitHub Actions Active
@svozza
svozza merged commit 472a0fc into main Sep 16, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
ai-pr-review-runtime — 318e74a8 Deployed Sep 16, 2026 by svozza via evals #178
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