cc pr

Open a GitHub pull request in the browser for the current branch.

Usage

cc pr <target-branch>

Arguments

Argument
Description

target-branch

The base branch you want to merge into (e.g. staging, main)

Examples

cc pr staging    # open PR from current branch → staging
cc pr main       # open PR from current branch → main

How It Works

Reads the current git branch and the remote origin URL, then opens the GitHub compare URL in your browser:

https://github.com/your-org/your-repo/compare/staging...your-feature-branch

Must be run from inside a git repository with a GitHub remote.

Last updated

Was this helpful?