Skip to content

Commit e94f7bf

Browse files
committed
fix: add override for mileston.closed event
1 parent ef72e0a commit e94f7bf

File tree

20 files changed

+443
-62
lines changed

20 files changed

+443
-62
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"test": "node scripts/test.js",
1313
"generate-types": "node scripts/generate-types",
1414
"update-package": "node scripts/update-package",
15-
"lint": "prettier --check '*.{md,json}' 'scripts/*.js' 'packages/**/*.{ts,md,json,d.ts}'",
16-
"lint:fix": "prettier --write '*.{md,json}' 'scripts/*.js' 'packages/**/*.{ts,md,json,d.ts}'"
15+
"lint": "prettier --check '*.{md,json}' 'scripts/**/*.{js,json}' 'packages/**/*.{ts,md,json,d.ts}'",
16+
"lint:fix": "prettier --write '*.{md,json}' 'scripts/**/*.{js,json}' 'packages/**/*.{ts,md,json,d.ts}'"
1717
},
1818
"repository": "github:wolfy1339/openapi-webhooks",
1919
"keywords": [

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24216,7 +24216,7 @@ export interface components {
2421624216
*/
2421724217
milestone: {
2421824218
/** Format: date-time */
24219-
closed_at: string | null;
24219+
closed_at: string;
2422024220
closed_issues: number;
2422124221
/** Format: date-time */
2422224222
created_at: string;
@@ -24273,7 +24273,7 @@ export interface components {
2427324273
* @description The state of the milestone.
2427424274
* @enum {string}
2427524275
*/
24276-
state: "open" | "closed";
24276+
state: "closed";
2427724277
/** @description The title of the milestone. */
2427824278
title: string;
2427924279
/** Format: date-time */

packages/openapi-webhooks-types-ghes-3.10/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23402,7 +23402,7 @@ export interface components {
2340223402
*/
2340323403
milestone: {
2340423404
/** Format: date-time */
23405-
closed_at: string | null;
23405+
closed_at: string;
2340623406
closed_issues: number;
2340723407
/** Format: date-time */
2340823408
created_at: string;
@@ -23459,7 +23459,7 @@ export interface components {
2345923459
* @description The state of the milestone.
2346023460
* @enum {string}
2346123461
*/
23462-
state: "open" | "closed";
23462+
state: "closed";
2346323463
/** @description The title of the milestone. */
2346423464
title: string;
2346523465
/** Format: date-time */

packages/openapi-webhooks-types-ghes-3.11/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23478,7 +23478,7 @@ export interface components {
2347823478
*/
2347923479
milestone: {
2348023480
/** Format: date-time */
23481-
closed_at: string | null;
23481+
closed_at: string;
2348223482
closed_issues: number;
2348323483
/** Format: date-time */
2348423484
created_at: string;
@@ -23535,7 +23535,7 @@ export interface components {
2353523535
* @description The state of the milestone.
2353623536
* @enum {string}
2353723537
*/
23538-
state: "open" | "closed";
23538+
state: "closed";
2353923539
/** @description The title of the milestone. */
2354023540
title: string;
2354123541
/** Format: date-time */

packages/openapi-webhooks-types-ghes-3.8/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22565,7 +22565,7 @@ export interface components {
2256522565
*/
2256622566
milestone: {
2256722567
/** Format: date-time */
22568-
closed_at: string | null;
22568+
closed_at: string;
2256922569
closed_issues: number;
2257022570
/** Format: date-time */
2257122571
created_at: string;
@@ -22622,7 +22622,7 @@ export interface components {
2262222622
* @description The state of the milestone.
2262322623
* @enum {string}
2262422624
*/
22625-
state: "open" | "closed";
22625+
state: "closed";
2262622626
/** @description The title of the milestone. */
2262722627
title: string;
2262822628
/** Format: date-time */

packages/openapi-webhooks-types-ghes-3.9/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22698,7 +22698,7 @@ export interface components {
2269822698
*/
2269922699
milestone: {
2270022700
/** Format: date-time */
22701-
closed_at: string | null;
22701+
closed_at: string;
2270222702
closed_issues: number;
2270322703
/** Format: date-time */
2270422704
created_at: string;
@@ -22755,7 +22755,7 @@ export interface components {
2275522755
* @description The state of the milestone.
2275622756
* @enum {string}
2275722757
*/
22758-
state: "open" | "closed";
22758+
state: "closed";
2275922759
/** @description The title of the milestone. */
2276022760
title: string;
2276122761
/** Format: date-time */

packages/openapi-webhooks-types-github.ae/types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23065,7 +23065,7 @@ export interface components {
2306523065
*/
2306623066
milestone: {
2306723067
/** Format: date-time */
23068-
closed_at: string | null;
23068+
closed_at: string;
2306923069
closed_issues: number;
2307023070
/** Format: date-time */
2307123071
created_at: string;
@@ -23122,7 +23122,7 @@ export interface components {
2312223122
* @description The state of the milestone.
2312323123
* @enum {string}
2312423124
*/
23125-
state: "open" | "closed";
23125+
state: "closed";
2312623126
/** @description The title of the milestone. */
2312723127
title: string;
2312823128
/** Format: date-time */

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24075,7 +24075,7 @@ export interface components {
2407524075
*/
2407624076
milestone: {
2407724077
/** Format: date-time */
24078-
closed_at: string | null;
24078+
closed_at: string;
2407924079
closed_issues: number;
2408024080
/** Format: date-time */
2408124081
created_at: string;
@@ -24132,7 +24132,7 @@ export interface components {
2413224132
* @description The state of the milestone.
2413324133
* @enum {string}
2413424134
*/
24135-
state: "open" | "closed";
24135+
state: "closed";
2413624136
/** @description The title of the milestone. */
2413724137
title: string;
2413824138
/** Format: date-time */

packages/openapi-webhooks/generated/api.github.com.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53389,10 +53389,7 @@
5338953389
"description": "A collection of related issues and pull requests.",
5339053390
"type": "object",
5339153391
"properties": {
53392-
"closed_at": {
53393-
"type": ["string", "null"],
53394-
"format": "date-time"
53395-
},
53392+
"closed_at": { "type": ["string"], "format": "date-time" },
5339653393
"closed_issues": { "type": "integer" },
5339753394
"created_at": { "type": "string", "format": "date-time" },
5339853395
"creator": {
@@ -53443,7 +53440,7 @@
5344353440
"state": {
5344453441
"description": "The state of the milestone.",
5344553442
"type": "string",
53446-
"enum": ["open", "closed"]
53443+
"enum": ["closed"]
5344753444
},
5344853445
"title": {
5344953446
"description": "The title of the milestone.",

packages/openapi-webhooks/generated/ghec.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53713,10 +53713,7 @@
5371353713
"description": "A collection of related issues and pull requests.",
5371453714
"type": "object",
5371553715
"properties": {
53716-
"closed_at": {
53717-
"type": ["string", "null"],
53718-
"format": "date-time"
53719-
},
53716+
"closed_at": { "type": ["string"], "format": "date-time" },
5372053717
"closed_issues": { "type": "integer" },
5372153718
"created_at": { "type": "string", "format": "date-time" },
5372253719
"creator": {
@@ -53767,7 +53764,7 @@
5376753764
"state": {
5376853765
"description": "The state of the milestone.",
5376953766
"type": "string",
53770-
"enum": ["open", "closed"]
53767+
"enum": ["closed"]
5377153768
},
5377253769
"title": {
5377353770
"description": "The title of the milestone.",

0 commit comments

Comments
 (0)