Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 1.14 KB

README.md

File metadata and controls

61 lines (47 loc) · 1.14 KB

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