First of all, does bitbucket support teams?
We have a component library that several teams are working on. It would be a 'nice to have' feature if we could enforce a merge check to ensure that at least one member from each team has approved a PR.
Is this possible at the moment in Bitbucket? I know Jira has teams, but I haven't seen support for this in Bitbucket.
Thanks for any help in advance!
Hi @Adam Piper ,
welcome to the Atlassian community!
You could put in place that behaviour using builtin features.
Does it meet your requirments? Currently teams, if managed as user groups, can be reused at bitbucket level for dfault reviewers configuration.
Moreover, if you need to check merge approvals in a structured way, my suggestion is to try the following app https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=cloud&tab=overview
Hope this helps,
Fabio
Hi Fabio,
Thanks a lot for your welcome, and for your answer.
I suppose I was looking for something more along the lines of we have our default reviewers, and then on top of that we have a merge check for someone from each team. However, the users on each team are not necessarily default reviewers.
This way it would allow us to keep a strict list of repository maintainers that may be fewer than the number of teams working on the repository.
If this is not possible then I think your solution is probably the best we could get. We will just have to select someone from each team to be a default reviewer.
The idea behind this is that we will only allow default reviewers to merge into the main branch, but need the approval of someone from each team before the merge can actually take place.
The app that you have provided does look like it could fulfil our needs, so I may give that a go!
Thanks again,
Adam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you're welcome @Adam Piper
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
You also can achieve something like this with Code Owner for Bitbucket.
You define your teams in the Code Owners file. And then enforce that each team needs at least one approval:
```
# Team definitions
@@@UITeam @"Jim Dev" @"Jill Dev"
@@@BackendTeam @"Coffee Joe" @"Jim Dev" @"Jordan Dev"
@@@ToolsTeam @"Joe Dev" @"Lee Dev"
@@@SecurityTeam @"Alice" @"Bob"
# What source code is owned by who:
src/** @@UITeam @@BackendTeam @@ToolsTeam @@SecurityTeam
# At least one developer of each team has to approve
(Check(@@UITeam>=1) & Check(@@BackendTeam>=1) & Check(@@ToolsTeam>=1) & Check(@@SecurityTeam>=1)& Check(@@SecurityTeam>=1))```
More details in the docs.
Cheers
Roman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.