1.1.4 • Published 5 years ago

@codesherpas/ghpr v1.1.4

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

GHPR


CLI tool to create Pull Requests on GitHub.

Features


  • Create a Pull Request from your terminal
  • Prompt users for information to be included in a Pull Request Template
  • Include output of terminal commands in Pull Request Template
  • Add labels to Pull Request

Quick Start


npm install -g @codesherpas/ghpr

Create a GitHub Access Token and add it to your Git Config

git config --global github.token <token>

Create a configuration file .ghpr.json in the root of your project.

{
    "userInputs": {
        "why": {
            "message": "Why is this change needed: "
        },
        "ticketNumber": {
            "message": "Jira ticket number: "
        }
    },
    "commands": {
        "testCoverage": "npm test"
    }
}

Add a Pull Request Template file named .github/pull_request_template.md.

## Why
<!-- describe why this change is needed -->
<%= why %>

## Test Coverage
<%= testCoverage %>

Create a pull request.

ghpr

Note: templates are rendered using ejs

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago