All Projects → sindresorhus → New Github Issue Url

sindresorhus / New Github Issue Url

Licence: mit
Generate a URL for opening a new GitHub issue with prefilled title, body, and other fields

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to New Github Issue Url

New Github Release Url
Generate a URL for opening a new GitHub release with prefilled tag, body, and other fields
Stars: ✭ 102 (-40%)
Mutual labels:  url, npm-package
Query String
Parse and stringify URL query strings
Stars: ✭ 5,781 (+3300.59%)
Mutual labels:  url, npm-package
Gloria
Gloria is a static website generator, based on NodeJS.
Stars: ✭ 153 (-10%)
Mutual labels:  npm-package
Typescript Transform Paths
Transforms absolute imports to relative
Stars: ✭ 166 (-2.35%)
Mutual labels:  npm-package
Magic Iterable
Call a method on all items in an iterable by calling it on the iterable itself
Stars: ✭ 159 (-6.47%)
Mutual labels:  npm-package
Ui Design Resources
UI设计资源收集
Stars: ✭ 154 (-9.41%)
Mutual labels:  url
Parseurl
parse a url with memoization
Stars: ✭ 162 (-4.71%)
Mutual labels:  url
Tldts
JavaScript Library to work against complex domain names, subdomains and URIs.
Stars: ✭ 151 (-11.18%)
Mutual labels:  url
Furl
🌐 URL parsing and manipulation made easy.
Stars: ✭ 2,152 (+1165.88%)
Mutual labels:  url
Autolink Java
Java library to extract links (URLs, email addresses) from plain text; fast, small and smart
Stars: ✭ 157 (-7.65%)
Mutual labels:  url
Into Stream
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
Stars: ✭ 167 (-1.76%)
Mutual labels:  npm-package
React Render In Browser
React library to render browser specific content
Stars: ✭ 157 (-7.65%)
Mutual labels:  npm-package
Do Not Disturb
Control the macOS `Do Not Disturb` feature
Stars: ✭ 155 (-8.82%)
Mutual labels:  npm-package
Alfred Dark Mode
Alfred 3 workflow to toggle the system dark mode
Stars: ✭ 165 (-2.94%)
Mutual labels:  npm-package
Purl Spec
A minimal specification for purl aka. a package "mostly universal" URL, join the discussion at https://gitter.im/package-url/Lobby
Stars: ✭ 154 (-9.41%)
Mutual labels:  url
Reactopt
A CLI React performance optimization tool that identifies potential unnecessary re-rendering
Stars: ✭ 1,975 (+1061.76%)
Mutual labels:  npm-package
Transliterate
Convert Unicode characters to Latin characters using transliteration
Stars: ✭ 152 (-10.59%)
Mutual labels:  npm-package
Gh Got
Convenience wrapper for Got to interact with the GitHub API
Stars: ✭ 156 (-8.24%)
Mutual labels:  npm-package
Faup
Fast URL decoder library
Stars: ✭ 159 (-6.47%)
Mutual labels:  url
Fast Cli
Test your download and upload speed using fast.com
Stars: ✭ 2,178 (+1181.18%)
Mutual labels:  npm-package

new-github-issue-url

Generate a URL for opening a new GitHub issue with prefilled title, body, and other fields

GitHub supports prefilling a new issue by setting certain search parameters. This package simplifies generating such URL.

Install

$ npm install new-github-issue-url

Usage

const newGithubIssueUrl = require('new-github-issue-url');
const open = require('open');

const url = newGithubIssueUrl({
	user: 'sindresorhus',
	repo: 'new-github-issue-url',
	body: '\n\n\n---\nI\'m a human. Please be nice.'
});
//=> 'https://github.com/sindresorhus/new-github-issue-url/issues/new?body=%0A%0A%0A---%0AI%27m+a+human.+Please+be+nice.'

// Then open it
(async () => {
	await open(url);
})();

Try the URL
(Don't click the "Submit new issue" button!)

If you use Electron, check out electron-util's openNewGitHubIssue() method.

API

newGithubIssueUrl(options)

Returns a URL string.

options

Type: object

You are required to either specify the repoUrl option or both the user and repo options.

repoUrl

Type: string

The full URL to the repo.

user

Type: string

GitHub username or organization.

repo

Type: string

GitHub repo.

body

Type: string

The issue body.

title

Type: string

The issue title.

template

Type: string

Use an issue template.

For example, if you want to use a template at ISSUE_TEMPLATE/unicorn.md, you would specify unicorn.md here.

labels

Type: string[]

The labels for the issue.

Requires the user to have the permission to add labels.

milestone

Type: string

The milestone for the issue.

Requires the user to have the permission to add milestone.

assignee

Type: string

The user to assign to the issue.

Requires the user to have the permission to add assignee.

projects

Type: string[]

The projects to add the issue to.

The project reference format is user/repo/<project-number>, for example, if the URL to the project is https://github.com/sindresorhus/some-repo/projects/3, the project reference would be sindresorhus/some-repo/3.

Requires the user to have the permission to add projects.

Related

  • new-github-release-url - Generate a URL for opening a new GitHub release with prefilled tag, body, and other fields

License

MIT © Sindre Sorhus

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].