🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github-issue-url

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-issue-url

Generates a url/query-string that populates the github issue form

1.0.0
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

github-issue-url

Usage

const githubIssueUrl = require('github-issue-url')
githubIssueUrl({
  repo: 'marcbachmann/github-issue-url',
  title: 'Bug: <Title>',
  body: `
    Foo
    bar
     baz
  `,
  labels: ['bug'],
  assignee: 'marcbachmann'
})
// That returns such a url:
// https://github.com/marcbachmann/github-issue-url/issues/new?title=Bug%3A%20%3CTitle%3E&body=Foo%0Abar%0A%20baz&labels[]=bug&assignee=marcbachmann


// If you don't pass the repo, it returns a query string:
githubIssueUrl({
  title: 'Bug: <Title>',
  labels: ['bug'],
  assignee: 'marcbachmann'
})
// title=Bug%3A%20%3CTitle%3E&labels[]=bug&assignee=marcbachmann

Keywords

github

FAQs

Package last updated on 14 May 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