From 367e23fe225dccc1adea0c72648b3b46fcec0299 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 27 Jan 2022 17:11:32 +0000 Subject: [PATCH] Restrict the Mergify copy command to core contributors (backport #22789) (#22791) * Restrict the Mergify copy command to core contributors (cherry picked from commit c0638439be313efc6e0984aff6bdfd794dfa1713) # Conflicts: # .mergify.yml * Update .mergify.yml Co-authored-by: Michael Vines --- .mergify.yml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.mergify.yml b/.mergify.yml index 70c4aad68f..f0d60e9035 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -65,20 +65,11 @@ pull_request_rules: backport: ignore_conflicts: true branches: - - v1.5 - - name: v1.6 backport + - v1.9 + +commands_restrictions: + # The author of copied PRs is the Mergify user. + # Restrict `copy` access to Core Contributors + copy: conditions: - - label=v1.6 - actions: - backport: - ignore_conflicts: true - branches: - - v1.6 - - name: v1.7 backport - conditions: - - label=v1.7 - actions: - backport: - ignore_conflicts: true - branches: - - v1.7 + - author=@core-contributors