Socket
Book a DemoInstallSign in
Socket

github-issue-template

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-issue-template

A CLI for generating URLs to pre-filled GitHub issue forms

latest
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

github-issue-template

A CLI for generating URLs to pre-filled GitHub issue forms

GitHub has a little-known feature that allows you to pass query params to the /issues/new page. Those query params can specify values to inject into the issue form's title and body inputs.

Installation

npm i -g github-issue-template

Usage

The CLI expects three arguments:

  • repo
  • title
  • body
github-issue-template --repo sally/project --title "new thing" --body "the body"

If you want to use a file on disk as the body, cat comes to the rescue:

github-issue-template --repo sally/project --title "new thing" --body "$(cat some/file.md)"

Dependencies

  • is-url: Check whether a string is a URL.
  • open: open a file or url in the user's preferred application
  • yargs: Light-weight option parsing with an argv hash. No optstrings attached.

License

MIT

Generated by package-json-to-readme

FAQs

Package last updated on 17 Nov 2017

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