It could be added to marvin, and that should be relatively easy. I’m a bit hesitant for two reasons though:
- I’m trying to keep marvin as lean as possible, at least for now. Have it do one thing well instead of becoming the sink for all possible features. This is at least somewhat dampened by how small of an addition it would be (slash-commands and labeling are already implemented anyway, just need to wire them together), but its still a point against adding that feature.
- Its still experimental. Only active in some pull requests, may or may not stick around long term. (See README)
I do think it would be a valuable feature. Especially for PR authors who might set labels while they create an MR. We could even add commented-out commands for some categorization to the template. As @FRidh said, it might be possible to use an off-the-shelf action for it.
If we want to restrict this to maintainers only, nothing needs to be done. Maintainers are added to the matinainers team, and the maintainers team has labeling access. This is only currently blocked by https://github.com/NixOS/rfc39/issues/3.