Reviews
Retrieves all pull requests for a repository with comprehensive metadata including Salesforce component changes, review environment assignments, validation status, and component overlap detection. Results are cached for 10 minutes.
Authorizations
Query parameters
repositoryIdentifierstringRequiredExample:
Repository identifier in the format owner/repo
flxbl-io/sf-core
prNumberstringOptional
Optional PR number to filter for a specific pull request
statusstringOptional
Optional status filter: open, closed, or all (default: all)
Responses
200
Pull requests with metadata retrieved successfully.
application/json
400
Bad Request (e.g., missing repositoryIdentifier)
401
Unauthorized
404
Repository not found or no access
get
GET /sfp/api/reviews/pull-requests?repositoryIdentifier=flxbl-io%2Fsf-core HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"openPrs": {
"10": {
"issueTitle": "Update CustomMetadataFeatureSettingsProvider.cls",
"linkToIssue": "https://github.com/phieu-flxbl/sf-core/pull/10",
"number": 10,
"branch": "feature-branch",
"author": {
"login": "octocat",
"avatarUrl": "https://avatars.githubusercontent.com/u/123456?v=4"
},
"elapsedTime": 86400000,
"merged": false
}
},
"closedPrs": {}
}
Was this helpful?