policy-bot icon indicating copy to clipboard operation
policy-bot copied to clipboard

Github branch protection enforces policy bot

Open ekhaydarov opened this issue 1 year ago • 0 comments

Am i missing something or is this an issue?

I have branch protection on master and develop. In the policy bot I only want to enforce it on the master branch. So naturally in my policies I use

approval_rules:
  - name: approvers
    if:
      targets_branch:
        pattern: "^master$"

However, policy bot is still enforced on the develop branch

ekhaydarov avatar Aug 11 '22 14:08 ekhaydarov