Skip to content

Commit

Permalink
Merge pull request #437 from snyk/feat/add-default-reviewers-endpoint…
Browse files Browse the repository at this point in the history
…-for-bbs

[ATLAS-67] feat: add default reviewers endpoint to BBS
  • Loading branch information
pavel-solodilov authored Sep 21, 2022
2 parents 6d88702 + d484bd5 commit 303a615
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,28 @@
"method": "any",
"path": "/snykgit/*",
"origin": "${GIT_CLIENT_URL}"
},
{
"//": "used to fetch a given repo from API",
"method": "GET",
"path": "/rest/api/1.0/projects/:project/repos/:repo",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to get default reviewers for a pull request",
"method": "GET",
"path": "/rest/default-reviewers/1.0/projects/:projectKey/repos/:repo/reviewers",
"origin": "https://${BITBUCKET}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
}
]
}

0 comments on commit 303a615

Please sign in to comment.