- Creates the branch
PREFIX/JIRA_TICKET_NUMBER/your-commit-message
. - Commits all changes.
- Creates a pull request.
- Adds the Jira ticket number and a description to the PR body (using the repository's PR template if it exists).
- Opens the PR in the browser.
- Make sure Deno and GitHub CLI are installed.
- Adjust constants.ts
- Run
make compile
to create a self-contained executable. - Copy executable with
cp cpr /usr/local/bin/cpr
Usage:
$ cpr <PR TITLE> [options]
Options:
-t, --ticket <ticket> Provide a ticket number or url
-d, --description <description> Provide a PR description
-h, --help Display this message
cpr feature: my new cool feature -t CX-1234 -d "My PR Descryption"
which will create the following PR:
make run
: executesindex.ts
make test
: runs testsmake format
: formats all filesmake debug
: runs the debugger starting inindex.ts
make bundle
: bundles into a single filebuild/index
make compile
: compiles to executable