ReferenceAPI referenceReviews
Return a pull request, findings, and recorded GitHub conversation
GET
/organizations/{organization_id}/pull-requests/{pull_request_id}tasuku_session<token>
In: cookie
Path Parameters
organization_id*string
Length
1 <= length <= 128pull_request_id*string
Length
1 <= length <= 128Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/organizations/string/pull-requests/string"{ "data": { "pull_request": { "id": "string", "repository_id": "string", "repository": "string", "number": 1, "title": "string", "author_login": "string", "state": "OPEN", "review_status": "string", "open_findings": 0, "resolved_findings": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }, "findings": [ { "id": "string", "severity": "LOW", "category": "CORRECTNESS", "confidence": 0, "title": "string", "body": "string", "evidence": "string", "rule_id": "string", "rule_source": "string", "context_sources": [ { "repository": "string", "commit_sha": "string", "purpose": "string" } ], "validation": [ { "kind": "TEST", "status": "PASSED", "command": "string", "detail": "string" } ], "helpful": 0, "not_helpful": 0, "path": "string", "start_line": 1, "end_line": 1, "status": "OPEN", "source_url": "http://example.com", "resolution_reason": "string", "created_at": "2019-08-24T14:15:22Z" } ], "messages": [ { "id": "string", "finding_id": "string", "author_type": "USER", "author_login": "string", "body": "string", "source_url": "http://example.com", "created_at": "2019-08-24T14:15:22Z" } ], "report": { "summary": "string", "risk_level": "string", "confidence": 0, "key_files": [ "string" ], "validation": [ { "kind": "TEST", "status": "PASSED", "command": "string", "detail": "string" } ], "context_sources": [ { "repository": "string", "commit_sha": "string", "purpose": "string" } ] }, "provenance": { "run_id": "string", "head_sha": "string", "provider": "string", "model": "string", "sandbox_provider": "string", "status": "string", "started_at": "2019-08-24T14:15:22Z", "finished_at": "2019-08-24T14:15:22Z" } }}