Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcbachmann/github-issue-url
https://github.com/marcbachmann/github-issue-url
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/marcbachmann/github-issue-url
- Owner: marcbachmann
- Created: 2017-05-14T00:38:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:07:10.000Z (11 months ago)
- Last Synced: 2024-10-12T18:08:39.870Z (about 1 month 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
```