Allow assignees option to be a github team #24804
Replies: 10 comments
-
Notes:
Idea:
|
Beta Was this translation helpful? Give feedback.
-
@JamieMagee anything you'd add here? |
Beta Was this translation helpful? Give feedback.
-
@rarkins I think we can assign a team directly, but it's a different parameter than assigning regular reviewers. Request reviewers for a pull request shows that we can set @GuillaumeRahbari as a workaround, you should be able to use a CODEOWNERS file to assign teams of reviewers There's also an overlap in Renovate's CODEOWNERS support, which brings CODEOWNERS support to platforms that don't support it natively (Gitea & BitBucket). So, I see 2 work items from this request:
|
Beta Was this translation helpful? Give feedback.
-
Hi @JamieMagee, I'm not really sure to understand the workaround. I added the CODEOWNERS file in my test repository. But when a PR is raised and the pipeline is failing, no one is assigned as "assignee" (not "reviewers") from the team. And I cannot manually select a team in the assignee section of a Github PR request. For now my workaround has been to declare a list of all members of the github team in the renovate config file (but not ideal). |
Beta Was this translation helpful? Give feedback.
-
@GuillaumeRahbari Here's what I think is the key excerpt from the docs:
Are you using the correct format for your team name? It does sound odd that you can't even manually assign the team. Can you read this help page and see if you could set it automatically? If not, I recommend reaching out to GitHub support. |
Beta Was this translation helpful? Give feedback.
-
@JamieMagee I guess I use the correct name because it assigned people as "reviewers" on every pull request. As I understand the help page you provided, CODEOWNERS is a way to only add reviewers automatically in a github PR. But what I would like is to assign automatically "assignees" and not "reviewers" (and I don't see a mention of it in the github documentation, that's why I think it is not something github allows) |
Beta Was this translation helpful? Give feedback.
-
@JamieMagee I think based on the description that you can't assign a team, only add them as reviewer? ref So the idea of this feature request is to let Renovate users pick a team name for assigning but Renovate will "expand" the team name into usernames and add them to the actual PR (taking into account |
Beta Was this translation helpful? Give feedback.
-
Ah yes, you're correct. I've gotten assignees and reviewers mixed up 🤦 |
Beta Was this translation helpful? Give feedback.
-
What would you like Renovate to be able to do?
I would like Renovate to take a Github team as a possible value for the assignees option.
Did you already have any implementation ideas?
I did not dig into the code but I was wondering if it was possible for renovate to "learn" or to "list" the people who are in a github team ? This way Renovate could generate the assignees list from the github team.
Are there any workarounds or alternative ideas you've tried to avoid needing this feature?
For now the workaround is to list all the github team members in the assignees list option. But it means that this option need to be updated whenever the github team members changes. Also, whenever a teammate is on vacation, we are able to change the github team settings in order to avoid the teammate to be assigned to pull requests for the time he is on vacation. It means that we also need to update our renovate config to update the list
Is this a feature you'd be interested in implementing yourself?
Not really, sorry
Beta Was this translation helpful? Give feedback.
All reactions