Get integrated VCS repositories metadata
Name | Required | Type | In | Description |
---|---|---|---|---|
page | no | number | query | the index of the results page |
pageSize | no | number | query | results number to get |
sortBy | no - default 'usersCount' | string | query | The column name by which to sort the results Type: (weeklyCommits, usersCount, failedPrs, pendingFixPrs, scanTime, repository, organization) |
sortDir | no - default 'DESC' | string | query | DESC or ASC |
search | no | string | query | search for code reviews of specific repositories |
withTotal | no - default false | boolean | query | get the number of the total results or not |
Response Example 1:
[
{
"currentWeekCommits": 0,
"failedPrs": 0,
"gitUsers": 1,
"latestPR": {
"title": "AI-1132 add user similar service",
"prNumber": 200
},
"organization": "bridgecrew",
"description": "description of the repository",
"pendingFixPrs": -1,
"prevWeekCommits": 0,
"repository": "terragoat",
"runId": 627107,
"sourceType": "Github",
"totalPrs": 2
}
]
Repository: the Git repository to which the scanned item belongs
Organization: the Git organization to which the repository belongs and its VCS type
SourceType: Which VCS the Git repository is hosted on
currentWeekCommits: the total number of commits from the latest week that were merged into the default branch. If no records are available from the past week, the currentWeekCommits value will be -1.
prevWeekCommits: the total number of commits from previous week that were merged into the default branch. If no records are available from the past week, the prevWeekCommits value will be -1.
gitUsers: how many Git users have merged their commits into the default branch over the past 90 days. If no records are available from the past week, the gitUsers value will be 1.
failedPrs: the number of failed open PRs out of all open PRs based on Bridgecrew's findings and Enforcement settings. For more information, see Enforcement. If no records are available from the past week, the failedPrs value will be 1.
totalPrs: the number of open PRs evaluated by Bridgecrew’s VCS app. If no records are available from the past week, the totalPrs value will be 1.
pendingFixPrs: the number of open PRs created by Bridgecrew/Prisma Cloud after being submitted by users within the platform. These are yet to be merged into the default branch. If no records are available from the past week, the pendingFixPrs value will be 1.
latestPR: {
title: PR name
number: PR id
lastScanDate: time and date of the latest PR scan
}