Skip to content

Commit 6dbabd6

Browse files
authored
feat: new /orgs/{org}/issue-types, /orgs/{org}/issue-types/{issue_type_id} enpoints, add issue type to responses, add dismissal request for code scanning for GHES and GHEC, description updates (#456)
WIP
1 parent fbef6d1 commit 6dbabd6

File tree

21 files changed

+4752
-548
lines changed

21 files changed

+4752
-548
lines changed

cache/api.github.jpy.wang.json

Lines changed: 538 additions & 9 deletions
Large diffs are not rendered by default.

cache/ghec.json

Lines changed: 1041 additions & 86 deletions
Large diffs are not rendered by default.

cache/ghes-3.12.json

Lines changed: 175 additions & 5 deletions
Large diffs are not rendered by default.

cache/ghes-3.13.json

Lines changed: 186 additions & 6 deletions
Large diffs are not rendered by default.

cache/ghes-3.14.json

Lines changed: 242 additions & 8 deletions
Large diffs are not rendered by default.

cache/ghes-3.15.json

Lines changed: 399 additions & 78 deletions
Large diffs are not rendered by default.

cache/ghes-3.16.json

Lines changed: 399 additions & 78 deletions
Large diffs are not rendered by default.

packages/openapi-types-ghec/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1717
"license": "MIT",
1818
"octokit": {
19-
"openapi-version": "18.1.0"
19+
"openapi-version": "18.2.0"
2020
}
2121
}

packages/openapi-types-ghec/types.d.ts

Lines changed: 330 additions & 13 deletions
Large diffs are not rendered by default.

packages/openapi-types-ghes-3.12/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1717
"license": "MIT",
1818
"octokit": {
19-
"openapi-version": "18.1.0"
19+
"openapi-version": "18.2.0"
2020
}
2121
}

packages/openapi-types-ghes-3.12/types.d.ts

Lines changed: 85 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5774,7 +5774,7 @@ export interface paths {
57745774
*
57755775
* The authenticated user must have admin or owner permissions to the repository to use this endpoint.
57765776
*
5777-
* For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/[email protected]/rest/apps/apps#get-an-app).
5777+
* For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/[email protected]/rest/apps/apps#get-an-app), as well as the [guide to creating custom deployment protection rules](https://docs.github.com/[email protected]/actions/managing-workflow-runs-and-deployments/managing-deployments/creating-custom-deployment-protection-rules).
57785778
*
57795779
* OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
57805780
*/
@@ -9796,7 +9796,7 @@ export interface components {
97969796
*/
97979797
contents?: "read" | "write";
97989798
/**
9799-
* @description The leve of permission to grant the access token to manage Dependabot secrets.
9799+
* @description The level of permission to grant the access token to manage Dependabot secrets.
98009800
* @enum {string}
98019801
*/
98029802
dependabot_secrets?: "read" | "write";
@@ -10488,6 +10488,7 @@ export interface components {
1048810488
*/
1048910489
"hook-delivery-item": {
1049010490
/**
10491+
* Format: int64
1049110492
* @description Unique identifier of the webhook delivery.
1049210493
* @example 42
1049310494
*/
@@ -10534,11 +10535,13 @@ export interface components {
1053410535
*/
1053510536
action: string | null;
1053610537
/**
10538+
* Format: int64
1053710539
* @description The id of the GitHub App installation associated with this event.
1053810540
* @example 123
1053910541
*/
1054010542
installation_id: number | null;
1054110543
/**
10544+
* Format: int64
1054210545
* @description The id of the repository associated with this event.
1054310546
* @example 123
1054410547
*/
@@ -11495,12 +11498,12 @@ export interface components {
1149511498
*/
1149611499
runner: {
1149711500
/**
11498-
* @description The id of the runner.
11501+
* @description The ID of the runner.
1149911502
* @example 5
1150011503
*/
1150111504
id: number;
1150211505
/**
11503-
* @description The id of the runner group.
11506+
* @description The ID of the runner group.
1150411507
* @example 1
1150511508
*/
1150611509
runner_group_id?: number;
@@ -12381,6 +12384,46 @@ export interface components {
1238112384
*/
1238212385
due_on: string | null;
1238312386
} | null;
12387+
/**
12388+
* Issue Type
12389+
* @description The type of issue.
12390+
*/
12391+
"issue-type": {
12392+
/** @description The unique identifier of the issue type. */
12393+
id: number;
12394+
/** @description The node identifier of the issue type. */
12395+
node_id: string;
12396+
/** @description The name of the issue type. */
12397+
name: string;
12398+
/** @description The description of the issue type. */
12399+
description: string | null;
12400+
/**
12401+
* @description The color of the issue type.
12402+
* @enum {string|null}
12403+
*/
12404+
color?:
12405+
| "gray"
12406+
| "blue"
12407+
| "green"
12408+
| "yellow"
12409+
| "orange"
12410+
| "red"
12411+
| "pink"
12412+
| "purple"
12413+
| null;
12414+
/**
12415+
* Format: date-time
12416+
* @description The time the issue type created.
12417+
*/
12418+
created_at?: string;
12419+
/**
12420+
* Format: date-time
12421+
* @description The time the issue type last updated.
12422+
*/
12423+
updated_at?: string;
12424+
/** @description The enabled state of the issue type. */
12425+
is_enabled?: boolean;
12426+
} | null;
1238412427
/**
1238512428
* GitHub app
1238612429
* @description GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
@@ -12601,6 +12644,7 @@ export interface components {
1260112644
body_text?: string;
1260212645
/** Format: uri */
1260312646
timeline_url?: string;
12647+
type?: components["schemas"]["issue-type"];
1260412648
repository?: components["schemas"]["repository"];
1260512649
performed_via_github_app?: components["schemas"]["nullable-integration"];
1260612650
author_association: components["schemas"]["author-association"];
@@ -21046,6 +21090,7 @@ export interface components {
2104621090
body_text?: string;
2104721091
/** Format: uri */
2104821092
timeline_url?: string;
21093+
type?: components["schemas"]["issue-type"];
2104921094
repository?: components["schemas"]["repository"];
2105021095
performed_via_github_app?: components["schemas"]["nullable-integration"];
2105121096
author_association: components["schemas"]["author-association"];
@@ -23603,6 +23648,7 @@ export interface components {
2360323648
body_text?: string;
2360423649
/** Format: uri */
2360523650
timeline_url?: string;
23651+
type?: components["schemas"]["issue-type"];
2360623652
performed_via_github_app?: components["schemas"]["nullable-integration"];
2360723653
reactions?: components["schemas"]["reaction-rollup"];
2360823654
};
@@ -26128,6 +26174,7 @@ export interface components {
2612826174
timeline_url?: string;
2612926175
/** @description Title of the issue */
2613026176
title: string;
26177+
type?: components["schemas"]["issue-type"];
2613126178
/** Format: date-time */
2613226179
updated_at: string;
2613326180
/**
@@ -26681,6 +26728,7 @@ export interface components {
2668126728
timeline_url?: string;
2668226729
/** @description Title of the issue */
2668326730
title: string;
26731+
type?: components["schemas"]["issue-type"];
2668426732
/** Format: date-time */
2668526733
updated_at: string;
2668626734
/**
@@ -35737,6 +35785,7 @@ export interface components {
3573735785
timeline_url?: string;
3573835786
/** @description Title of the issue */
3573935787
title: string;
35788+
type?: components["schemas"]["issue-type"];
3574035789
/** Format: date-time */
3574135790
updated_at: string;
3574235791
/**
@@ -36340,6 +36389,7 @@ export interface components {
3634036389
timeline_url?: string;
3634136390
/** @description Title of the issue */
3634236391
title: string;
36392+
type?: components["schemas"]["issue-type"];
3634336393
/** Format: date-time */
3634436394
updated_at: string;
3634536395
/**
@@ -36947,6 +36997,7 @@ export interface components {
3694736997
timeline_url?: string;
3694836998
/** @description Title of the issue */
3694936999
title: string;
37000+
type?: components["schemas"]["issue-type"];
3695037001
/** Format: date-time */
3695137002
updated_at: string;
3695237003
/**
@@ -37570,6 +37621,7 @@ export interface components {
3757037621
timeline_url?: string;
3757137622
/** @description Title of the issue */
3757237623
title: string;
37624+
type?: components["schemas"]["issue-type"];
3757337625
/** Format: date-time */
3757437626
updated_at: string;
3757537627
/**
@@ -38122,6 +38174,7 @@ export interface components {
3812238174
timeline_url?: string;
3812338175
/** @description Title of the issue */
3812438176
title: string;
38177+
type?: components["schemas"]["issue-type"];
3812538178
/** Format: date-time */
3812638179
updated_at: string;
3812738180
/**
@@ -38611,6 +38664,7 @@ export interface components {
3861138664
timeline_url?: string;
3861238665
/** @description Title of the issue */
3861338666
title: string;
38667+
type?: components["schemas"]["issue-type"];
3861438668
/** Format: date-time */
3861538669
updated_at: string;
3861638670
/**
@@ -39114,6 +39168,7 @@ export interface components {
3911439168
state_reason?: string | null;
3911539169
/** Format: uri */
3911639170
timeline_url?: string;
39171+
type?: components["schemas"]["issue-type"];
3911739172
/** @description Title of the issue */
3911839173
title: string;
3911939174
/** Format: date-time */
@@ -39607,6 +39662,7 @@ export interface components {
3960739662
state_reason?: string | null;
3960839663
/** Format: uri */
3960939664
timeline_url?: string;
39665+
type?: components["schemas"]["issue-type"];
3961039666
/** @description Title of the issue */
3961139667
title: string;
3961239668
/** Format: date-time */
@@ -40102,6 +40158,7 @@ export interface components {
4010240158
state_reason?: string | null;
4010340159
/** Format: uri */
4010440160
timeline_url?: string;
40161+
type?: components["schemas"]["issue-type"];
4010540162
/** @description Title of the issue */
4010640163
title: string;
4010740164
/** Format: date-time */
@@ -40594,6 +40651,7 @@ export interface components {
4059440651
timeline_url?: string;
4059540652
/** @description Title of the issue */
4059640653
title: string;
40654+
type?: components["schemas"]["issue-type"];
4059740655
/** Format: date-time */
4059840656
updated_at: string;
4059940657
/**
@@ -41815,6 +41873,7 @@ export interface components {
4181541873
timeline_url?: string;
4181641874
/** @description Title of the issue */
4181741875
title: string;
41876+
type?: components["schemas"]["issue-type"];
4181841877
/** Format: date-time */
4181941878
updated_at: string;
4182041879
/**
@@ -42363,6 +42422,7 @@ export interface components {
4236342422
url?: string;
4236442423
user_view_type?: string;
4236542424
} | null;
42425+
type?: components["schemas"]["issue-type"];
4236642426
};
4236742427
organization?: components["schemas"]["organization-simple-webhooks"];
4236842428
repository: components["schemas"]["repository-webhooks"];
@@ -42807,6 +42867,7 @@ export interface components {
4280742867
timeline_url?: string;
4280842868
/** @description Title of the issue */
4280942869
title: string;
42870+
type?: components["schemas"]["issue-type"];
4281042871
/** Format: date-time */
4281142872
updated_at: string;
4281242873
/**
@@ -43576,6 +43637,7 @@ export interface components {
4357643637
timeline_url?: string;
4357743638
/** @description Title of the issue */
4357843639
title: string;
43640+
type?: components["schemas"]["issue-type"];
4357943641
/** Format: date-time */
4358043642
updated_at: string;
4358143643
/**
@@ -76552,6 +76614,8 @@ export interface components {
7655276614
"personal-access-token-before"?: string;
7655376615
/** @description Only show fine-grained personal access tokens used after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. */
7655476616
"personal-access-token-after"?: string;
76617+
/** @description The ID of the token */
76618+
"personal-access-token-token-id"?: string[];
7655576619
/** @description The unique identifier of the fine-grained personal access token. */
7655676620
"fine-grained-personal-access-token-id": number;
7655776621
/**
@@ -85395,6 +85459,8 @@ export interface operations {
8539585459
/** @description Indicates the state of the issues to return. */
8539685460
state?: "open" | "closed" | "all";
8539785461
labels?: components["parameters"]["labels"];
85462+
/** @description Can be the name of an issue type. */
85463+
type?: string;
8539885464
/** @description What to sort results by. */
8539985465
sort?: "created" | "updated" | "comments";
8540085466
direction?: components["parameters"]["direction"];
@@ -86154,6 +86220,7 @@ export interface operations {
8615486220
permission?: components["parameters"]["personal-access-token-permission"];
8615586221
last_used_before?: components["parameters"]["personal-access-token-before"];
8615686222
last_used_after?: components["parameters"]["personal-access-token-after"];
86223+
token_id?: components["parameters"]["personal-access-token-token-id"];
8615786224
};
8615886225
path: {
8615986226
org: components["parameters"]["org"];
@@ -86296,6 +86363,7 @@ export interface operations {
8629686363
permission?: components["parameters"]["personal-access-token-permission"];
8629786364
last_used_before?: components["parameters"]["personal-access-token-before"];
8629886365
last_used_after?: components["parameters"]["personal-access-token-after"];
86366+
token_id?: components["parameters"]["personal-access-token-token-id"];
8629986367
};
8630086368
path: {
8630186369
org: components["parameters"]["org"];
@@ -96154,7 +96222,7 @@ export interface operations {
9615496222
*
9615596223
* The authenticated user must have admin or owner permissions to the repository to use this endpoint.
9615696224
*
96157-
* For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/[email protected]/rest/apps/apps#get-an-app).
96225+
* For more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/[email protected]/rest/apps/apps#get-an-app), as well as the [guide to creating custom deployment protection rules](https://docs.github.com/[email protected]/actions/managing-workflow-runs-and-deployments/managing-deployments/creating-custom-deployment-protection-rules).
9615896226
*
9615996227
* OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.
9616096228
*/
@@ -97753,6 +97821,8 @@ export interface operations {
9775397821
state?: "open" | "closed" | "all";
9775497822
/** @description Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. */
9775597823
assignee?: string;
97824+
/** @description Can be the name of an issue type. If the string `*` is passed, issues with any type are accepted. If the string `none` is passed, issues without type are returned. */
97825+
type?: string;
9775697826
/** @description The user that created the issue. */
9775797827
creator?: string;
9775897828
/** @description A user that's mentioned in the issue. */
@@ -97830,6 +97900,11 @@ export interface operations {
9783097900
>[];
9783197901
/** @description Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ */
9783297902
assignees?: string[];
97903+
/**
97904+
* @description The name of the issue type to associate with this issue.
97905+
* @example Epic
97906+
*/
97907+
type?: string | null;
9783397908
};
9783497909
};
9783597910
};
@@ -98234,6 +98309,11 @@ export interface operations {
9823498309
>[];
9823598310
/** @description Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped. */
9823698311
assignees?: string[];
98312+
/**
98313+
* @description The name of the issue type to associate with this issue or use `null` to remove the current issue type.
98314+
* @example Epic
98315+
*/
98316+
type?: string | null;
9823798317
};
9823898318
};
9823998319
};

packages/openapi-types-ghes-3.13/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1717
"license": "MIT",
1818
"octokit": {
19-
"openapi-version": "18.1.0"
19+
"openapi-version": "18.2.0"
2020
}
2121
}

0 commit comments

Comments
 (0)