Skip to content

gh pr merge --auto doesn't wait for checks to complete #8514

@khatchad

Description

@khatchad

Describe the bug

When I issue gh pr merge --auto, the PR merges even though the checks haven't completed. It would seem to me that the command is ignoring the --auto flag. The version of gh I am using is 2.40.1.

Steps to reproduce the behavior

  1. Be on a branch that tracks a remote branch tied to pull request.
  2. Issue gh pr merge --auto

Expected vs actual behavior

I expect the PR to go into auto merge mode, i.e.,, to merge once the checks complete. The docs say:

Automatically merge only after necessary requirements are met

for the flag --auto. Instead, the PR merges with the checks still running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-prrelating to the gh pr commandmore-info-neededMore info needed from user/contributorneeds-triageneeds to be reviewed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions