Skip to content

Commit a95b021

Browse files
Add type option (#17)
Co-authored-by: Sindre Sorhus <[email protected]>
1 parent 6999015 commit a95b021

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ export interface CommonOptions {
4747
_Requires the user to have the permission to add projects._
4848
*/
4949
readonly projects?: string[];
50+
51+
/**
52+
The [issue type](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/editing-an-issue#adding-or-changing-the-issue-type).
53+
*/
54+
readonly type?: string;
5055
}
5156

5257
export interface RepoUrlOptions extends CommonOptions {

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default function newGithubIssueUrl(options = {}) {
1818
'milestone',
1919
'assignee',
2020
'projects',
21+
'type',
2122
];
2223

2324
for (const type of types) {

readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ The project reference format is `user/repo/<project-number>`, for example, if th
116116

117117
*Requires the user to have the permission to add projects.*
118118

119+
##### type
120+
121+
Type: `string`
122+
123+
The [issue type](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/editing-an-issue#adding-or-changing-the-issue-type).
124+
119125
## Related
120126

121127
- [new-github-release-url](https://github.com/sindresorhus/new-github-release-url) - Generate a URL for opening a new GitHub release with prefilled tag, body, and other fields

0 commit comments

Comments
 (0)