Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh pr merge --admin failed to bypass required at least one approval #8971

Open
asdotdev opened this issue Apr 17, 2024 · 0 comments
Open

gh pr merge --admin failed to bypass required at least one approval #8971

asdotdev opened this issue Apr 17, 2024 · 0 comments
Labels
bug Something isn't working needs-triage needs to be reviewed

Comments

@asdotdev
Copy link

Input

I have set Branch protection rules:

branch-rules

Gave workflow permission:

action-workflow-permission

Gave GitHub token all the permissions:

GitHub-token-permission

GitHub action merge PR command

- name: merge PR with release info
    id: merge-pr
    run: gh pr merge --admin --merge --subject 'Merge release info' --delete-branch
    env:
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Output

When merging using GitHub action it will unable to bypass at least 1 approving review is required:

error

Expected:

It should be able to bypass the rule to merge PR via GitHub action

@asdotdev asdotdev added the bug Something isn't working label Apr 17, 2024
@cliAutomation cliAutomation added the needs-triage needs to be reviewed label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage needs to be reviewed
Projects
None yet
Development

No branches or pull requests

2 participants