Configurable list of default reviewers

Issue #37 on hold
Grzegorz Kozub created an issue

Hi,

I'm using you extension for a while and I really appreciate how it improves my productivity. There is one thing that I need to repeat each time when I create pull request: add reviewers, the same each time.

Is there any way using current approach to define list of reviewers that should be added to pull request?

Comments (7)

  1. Daniil Penkin staff

    Hey @Kozub,

    Thanks for your kind words :)

    Well, at the moment Create Pull Request action is pretty dumb: it just opens a page in the browser for you, i.e. it doesn't make any Bitbucket API calls. This might change in the future (I'm currently working on the authentication bits, so authenticated calls will become possible), but for now it's just about that.

    On the other hand, I believe that the default reviewers list should probably not reside on the client side, unless that list is specific only for you but not for other people contributing to the same repository. If the latter is the case, you can setup the list of default reviewers for your repository in Bitbucket, and those people will be added to every PR in that repo (no matter who creates these PRs). You didn't specify whether you're using Bitbucket Cloud or Server, so here're the links to some docs for both:

    Does this feature cover your needs? If it doesn't, I'll put a note in my backlog to consider this when (and if ever) I get back to an API-call-powered Create PR action again.

    Thanks for asking anyway, this gives an idea how Linky is used and how it can become better!

    Cheers, Daniil

  2. Billy Romano

    This does not meet our needs. We have 100’s of repositories in 1 project on Bitbucket Cloud. I have to manually add people individually as default reviewers to EACH repo every time I create one. Can we make this work where you have a GROUP of reviewers that can be assigned to PROJECTS instead of manually/individually? It would be a huge time saver : )

    Thanks!

  3. Daniil Penkin staff

    Hello @Billy Romano ,

    Unfortunately, it is not possible to set a group of people as default reviewers or to set anything at the project level rather than repository level (think of projects as of labels, not as of hierarchy).

    However, you can automate configuring default reviewers for repositories by using Bitbucket REST API. You can authenticate your requests with one of the methods listed here. You’ll need to add people one by one, but this is still better than nothing.

    Let me know if you have any questions.

    Cheers,
    Daniil

  4. Log in to comment