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
-
Notifications
You must be signed in to change notification settings - Fork 0
marcbachmann/github-issue-url
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published