Reviews

List pull requests with metadata and review environments

get

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
repositoryIdentifierstringRequired

Repository identifier in the format owner/repo

Example: 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
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?