
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
new-github-issue-url
Advanced tools
Generate a URL for opening a new GitHub issue with prefilled title, body, and other fields
The new-github-issue-url npm package allows you to easily generate URLs for creating new GitHub issues with pre-filled information such as title, body, labels, and more. This can be particularly useful for creating issue templates or automating issue creation in various workflows.
Generate a basic issue URL
This feature allows you to generate a basic URL for creating a new GitHub issue with a pre-filled title and body.
const newGithubIssueUrl = require('new-github-issue-url');
const url = newGithubIssueUrl({
user: 'username',
repo: 'repository',
title: 'Issue title',
body: 'Issue description'
});
console.log(url);
Generate an issue URL with labels
This feature allows you to generate a URL for creating a new GitHub issue with pre-filled labels.
const newGithubIssueUrl = require('new-github-issue-url');
const url = newGithubIssueUrl({
user: 'username',
repo: 'repository',
title: 'Issue title',
body: 'Issue description',
labels: ['bug', 'help wanted']
});
console.log(url);
Generate an issue URL with assignees
This feature allows you to generate a URL for creating a new GitHub issue with pre-filled assignees.
const newGithubIssueUrl = require('new-github-issue-url');
const url = newGithubIssueUrl({
user: 'username',
repo: 'repository',
title: 'Issue title',
body: 'Issue description',
assignees: ['assignee1', 'assignee2']
});
console.log(url);
The github-url-from-git package converts a Git URL to a GitHub URL. While it doesn't generate new issue URLs, it can be useful for converting repository URLs to their GitHub web counterparts.
The github-issue-url package generates URLs for GitHub issues, similar to new-github-issue-url. However, it may have fewer customization options compared to new-github-issue-url.
The github-url-to-object package parses GitHub URLs into objects and can be used to extract information from GitHub URLs. It doesn't generate new issue URLs but can be useful for handling GitHub URLs in general.
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.
npm install new-github-issue-url
import newGithubIssueUrl from 'new-github-issue-url';
import open from '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
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.
Returns a URL string.
Type: object
You are required to either specify the repoUrl
option or both the user
and repo
options.
Type: string
The full URL to the repo.
Type: string
GitHub username or organization.
Type: string
GitHub repo.
Type: string
The issue body.
Type: string
The issue title.
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.
Type: string[]
The labels for the issue.
Requires the user to have the permission to add labels.
Type: string
The milestone for the issue.
Requires the user to have the permission to add milestone.
Type: string
The user to assign to the issue.
Requires the user to have the permission to add assignee.
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.
Type: string
The issue type.
FAQs
Generate a URL for opening a new GitHub issue with prefilled title, body, and other fields
The npm package new-github-issue-url receives a total of 204,822 weekly downloads. As such, new-github-issue-url popularity was classified as popular.
We found that new-github-issue-url demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.