You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create a pull request that a developer has to review/approve online before the change gets merged in. However, I get error "protected branch hook declined" when I try to create a draft pull request into protected branch.
Steps to reproduce
I've tried various variations of this step., but I always get the error:
- name: Create Draft Pull Requestid: create-pull-requestenv:
NEW_VERSION: "test-version"uses: peter-evans/create-pull-request@v6with:
token: ${{ github.token }}delete-branch: falselabels: | automated prcommit-message: "Update main branch to ${{ env.NEW_VERSION }}"title: "Update main branch to ${{ env.NEW_VERSION }}"body: "$NEW_VERSION version update of main branch from int"branch: "main_for_rule_tests"draft: true
The text was updated successfully, but these errors were encountered:
The branch input should not be your existing branch that you want to merge into, it should be the name of the pull request branch that the action will create. I think that is probably what the issue is.
Subject of the issue
I would like to create a pull request that a developer has to review/approve online before the change gets merged in. However, I get error "protected branch hook declined" when I try to create a draft pull request into protected branch.
Steps to reproduce
I've tried various variations of this step., but I always get the error:
The text was updated successfully, but these errors were encountered: