cli / cli/cli

`gh pr merge --auto`: don't submit request if already enabled

Open
#8,109 7 comments 0 reactions 0 assignees View on GitHub
core enhancement gh-pr
Dominant language
Go
Stars
46.3k
Forks
9k
Avg merge
2d 9h
Merged PRs (30d)
89

Description

### Describe the feature or problem you’d like to solve

`gh pr merge --auto` should check if auto-merge is already enabled for a PR. Right now, it's treating the same as if not enabled, so a request is sent regardless.

### Proposed solution

Check if auto-merge is enabled first. If it is, then print a message "✓ Auto-merge already enabled for PR #number"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.