Open
Description
Expected Behavior
I would like the following to be possible some point in the future for rule conditions to check the author of a pr if (assuming the repository is in an open source only org):
- the user is an outside contributor to the org (is a contributor added directly to the repository itself that the pr is in) and has write access
- is a member of the org but not part of a team inside it but has write access
- is a member and part of a team and has write access.
Actual Behavior
No such information is exposed that checks those 3 cases and if any true, returns true.
Steps to Reproduce the Problem
- Adding labels as part of a rule.
- At the end of the CI build workflow, have Mergify run the other rule which then adds the
automerge
label. - Have the automerge label, and required status checks from branch protections manually defined in the rules to approve, comment, and then right after merge the PR.
Workarounds
Currently the only workaround is to manually duplicate the rule x # of times and then hard code specific user names into the rule conditions for each person to check for. This is not robust as any members could be added / removed at any time breaking the intended rules and poses an issue. What is really wanted is for the bot to check without hard coding them in the rules to do the same thing with a much smaller and simpler config since people can join / leave at any moment in time.
Specifications
- Pull Request URL: Mergify: configuration update Elskom/Sdk#191
- Mergify Config URL: https://github.com/Elskom/Sdk/pull/191/files
Metadata
Metadata
Assignees
Labels
No labels