Skip to content

GitHub PR automerge and high-value gh parity commands #358

Description

@kolatts

Current behavior:

• pncli 1.20.0 exposes  github merge-pr , but it performs an immediate merge only.
• There is no command or flag to enable GitHub auto-merge while preserving required checks, approvals, branch protection, and merge-queue behavior.
• Several workflow-oriented operations available in  gh pr  are also missing.

Requested P0:

  1. Add  pncli github merge-pr --auto , or a dedicated  enable-auto-merge  command, using GitHub’s supported auto-merge operation.
  2. Add  --disable-auto  and optional  --match-head-commit   safety protection.
  3. Clearly report whether auto-merge was enabled, already enabled, disallowed by repository policy, or rejected because requirements are unmet.
  4. Never silently fall back to an immediate merge when  --auto  is requested.
  5. Support merge-queue behavior by enqueueing PRs when required. Keep administrator or bypass behavior as a separately named, explicitly warned operation.

Requested P1 parity:

• PR status aggregation showing review decision, required checks, mergeability, draft state, and auto-merge state, with JSON output.
• Checks filtering and watch mode, including required-only checks and meaningful pending/failure exit codes.
• Ready/draft toggling.
• PR metadata editing for labels, reviewers, assignees, milestones, and projects.
• Reopen PR.
• Revert PR by creating a new revert PR, optionally as draft.

Service: GitHub


Submitted via kolatts.github.io/pncli

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions