Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codesherpas/ghpr

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codesherpas/ghpr

CLI Tool to Create Pull Requests on GitHub

  • 1.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

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

Keywords

FAQs

Package last updated on 17 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc