Skip to content

Campaigns default reviewers in bitbucket server

Created by: jensim

Feature request description

Add default reviewers to PRs made when applying campaigns

Is your feature request related to a problem? If so, please describe.

In bitbucket server dashboard users/codeowners are only notified of PRs that they are added to. And sourcegraph campaigns do not add these people to the views, leaving a massive amount of manual labour (or scripting), that we want to avoid.

Describe alternatives you've considered.

Use bitbucket server apis for getting the suggested reviewers given

  • sourceRepoID
  • targetRepoID
  • sourceRef
  • targetRef
curl -u "${username}:${password}" "https://my-bitbucket-server.local/rest/default-reviewers/1.0/projects/$key/repos/$repo_slug/reviewers?sourceRefId=${my_branch}&targetRefId=master&sourceRepoId=${repo_id}&targetRepoId=${repo_id}"

Additional context