Clever / microplane

A CLI tool to make git changes across many repos, especially useful with Microservices.
https://medium.com/always-a-student/mo-repos-mo-problems-how-we-make-changes-across-many-git-repositories-293ad7d418f0
Apache License 2.0
367 stars 46 forks source link

How to assign team reviewers? #142

Open caleb15 opened 2 years ago

caleb15 commented 2 years ago

I tried assigning a an entire team as a reviewer when doing mp push but the PR had no reviewers. Is there a special syntax or something I need? Does microplane handle assigning a team as a reviewer? 🤔 I'm not sure if it's a bug or if I'm missing something.

mp push -a teamname -r eks_cicd-util mp push -a 15five/teamname -b 'Testing multi-repo changes with https://github.com/Clever/microplane. You can ignore this.'

nathanleiby commented 2 years ago

@caleb15 thanks for the report!

I tried assigning a an entire team as a reviewer when doing mp push but the PR had no reviewers. Is there a special syntax or something I need? Does microplane handle assigning a team as a reviewer? 🤔 I'm not sure if it's a bug or if I'm missing something.

Today, microplane sets "assignees" but can't set "reviewers".

It seems Github doesn't support setting a team as an "assignee", although they do as a "reviewer". If of interest, here's some historical discussion on this feature suggestion: https://github.com/dear-github/dear-github/issues/170

Given these two things, it unfortunately doesn't support your current workflow.

nathanleiby commented 2 years ago

Solving this in microplane would require adding support for setting reviewers.

How assignees gets set today:

How reviewers could work:

nathanleiby commented 2 years ago

One other thought: At Clever one workaround here is to use CODEOWNERS files, which ensure microplane created PRs get reviewers set automatically.