Repository navigation
Conversation
list_pull_request_reviews and get_pull_request_review take the repository name without its owner, while fixes.list_open_findings takes owner/name. Add a README section with a GITHUB_REPOSITORY example and a test that a bare repository name reaches the server unencoded.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Who this helps
Anyone calling
list_pull_request_reviewsorget_pull_request_reviewfrom CI or a script. Both takerepository: str, and nothing in the SDK said which form. The server wants the repository name without its owner and refusesowner/namewith 400. In GitHub Actions the value at hand isGITHUB_REPOSITORY, which isowner/name, andclient.fixes.list_open_findingson the same client requiresowner/name. Sincestr(ProoflineError)shows only the status, the failure reads as "Proofline request failed (HTTP 400)." unless you go and readerror.detail.What changed
Docs and one test. No change to
proofline/or to runtime behaviour.The README example:
Decisions
openapi.public.jsondescribesrepositoryas "The repository's name without its owner, or a name it had before a rename."client.py, which has almost none; the README is where readers look."repo/name"fixtures stay. They test that/is percent-encoded in the path segment, which is still worth testing. The new test covers the form the server accepts.str(ProoflineError)showing only the status is documented design, so I point toerror.detailinstead of changing the message.Live example
Against the live API, sync and async gave identical results. Organization, repository and review IDs are removed.
list_pull_request_reviews(org, "<owner>/<name>", <n>):list_pull_request_reviews(org, "<name>", <n>): 200, aReviewPagewith the pull request's reviews.fixes.list_open_findings("<name>", <n>):{"isError": true, "structuredContent": {"error": {"code": "INVALID_INPUT", "message": "repository is owner/name and pull_request_number is a positive integer; other arguments are refused.", "retryable": false}, "ok": false}}fixes.list_open_findings("<owner>/<name>", <n>):isError: false,ok: true.get_pull_request_review(org, "<owner>/<name>", <n>, 1)gives the same 400 anddetail; with"<name>"it returns the review.So the two REST lookups take the name, and the MCP fix tool takes
owner/name.How it's tested
"web"(the server's own example) against the local test server and asserts the paths are.../reviews/pr/web/42and.../reviews/pr/web/42/runs/3, with no percent-encoding. Passing"acme/web"instead makes it fail.python3 scripts/check.pypasses: generation check, contracts, ruff, mypy, 236 tests, both built artifacts installed and smoke-tested.Try it in a minute
Offline:
Live, with a
reviews:readtoken inPROOFLINE_TOKENand a pull request that has a review:How I found this and what I left out
I ran every client operation against the live API, sync and async, and compared the responses with
openapi.public.json. Of 11 differences, this is the one on the SDK side that no open PR covers.A client-side refusal of
/would fit next to the path checks in #84; I left it out so the two don't conflict.