View as Markdown
Rules

Commands restrictions

It is now possible to limit usage of commands using the commands restrictions.

For example, to limit backport commands for pull requests coming from the main branch:

.mergify.ymlyaml
commands_restrictions:
backport:
conditions:
- base=main

Another example, to limit backport commands usage to a specific team (or user):

.mergify.ymlyaml
commands_restrictions:
backport:
conditions:
- sender=@team

Was this page helpful?