https://github.com/marcbachmann/github-issue-url
https://github.com/marcbachmann/github-issue-url
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/marcbachmann/github-issue-url
- Owner: marcbachmann
- Created: 2017-05-14T00:38:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:07:10.000Z (over 2 years ago)
- Last Synced: 2025-02-16T07:18:36.243Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# github-issue-url
### Usage
```js
const githubIssueUrl = require('github-issue-url')
githubIssueUrl({
repo: 'marcbachmann/github-issue-url',
title: 'Bug: ',
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: ',
labels: ['bug'],
assignee: 'marcbachmann'
})
// title=Bug%3A%20%3CTitle%3E&labels[]=bug&assignee=marcbachmann
```