File tree Expand file tree Collapse file tree 20 files changed +103
-33
lines changed
src/server/webhooks/events Expand file tree Collapse file tree 20 files changed +103
-33
lines changed Original file line number Diff line number Diff line change 11import type {
22 SchemaApplicationUser ,
3+ SchemaComment ,
34 SchemaProject ,
5+ SchemaPullRequest ,
46 SchemaPullRequestParticipant ,
57 SchemaRepository ,
68 SchemaRestMinimalRef ,
@@ -40,7 +42,7 @@ export interface Comment {
4042 readonly id : number
4143 readonly properties : Properties
4244 readonly severity : string
43- readonly state : string
45+ readonly state : SchemaComment [ "state" ]
4446 readonly tasks ?: unknown [ ]
4547 readonly text : string
4648 readonly threadResolved : boolean
@@ -89,7 +91,7 @@ export interface PullRequest {
8991 readonly open : boolean
9092 readonly participants : Author [ ]
9193 readonly reviewers : Author [ ]
92- readonly state : string
94+ readonly state : SchemaPullRequest [ "state" ]
9395 readonly title : string
9496 readonly toRef : Ref
9597 readonly updatedDate : number
Original file line number Diff line number Diff line change 1+ import type {
2+ SchemaPullRequest ,
3+ SchemaRepository ,
4+ } from "../../../openapi/openapi-typescript.js"
5+
16export interface Actor {
27 readonly active : boolean
38 readonly displayName : string
@@ -60,7 +65,7 @@ export interface PullRequest {
6065 readonly open : boolean
6166 readonly participants : Author [ ]
6267 readonly reviewers : Author [ ]
63- readonly state : string
68+ readonly state : SchemaPullRequest [ "state" ]
6469 readonly title : string
6570 readonly toRef : Ref
6671 readonly updatedDate : number
@@ -82,6 +87,6 @@ export interface Repository {
8287 readonly public : boolean
8388 readonly scmId : string
8489 readonly slug : string
85- readonly state : string
90+ readonly state : SchemaRepository [ "state" ]
8691 readonly statusMessage : string
8792}
Original file line number Diff line number Diff line change 11import type {
22 SchemaApplicationUser ,
3+ SchemaComment ,
34 SchemaProject ,
5+ SchemaPullRequest ,
46 SchemaPullRequestParticipant ,
57 SchemaRepository ,
68 SchemaRestMinimalRef ,
@@ -40,7 +42,7 @@ export interface Comment {
4042 readonly id : number
4143 readonly properties : Properties
4244 readonly severity : string
43- readonly state : string
45+ readonly state : SchemaComment [ "state" ]
4446 readonly text : string
4547 readonly threadResolved : boolean
4648 readonly threadResolvedDate : number
@@ -91,7 +93,7 @@ export interface PullRequest {
9193 readonly open : boolean
9294 readonly participants : Author [ ]
9395 readonly reviewers : Author [ ]
94- readonly state : string
96+ readonly state : SchemaPullRequest [ "state" ]
9597 readonly title : string
9698 readonly toRef : Ref
9799 readonly updatedDate : number
Original file line number Diff line number Diff line change 1+ import type {
2+ SchemaPullRequest ,
3+ SchemaRepository ,
4+ } from "../../../openapi/openapi-typescript.js"
5+
16export interface Actor {
27 readonly active : boolean
38 readonly displayName : string
@@ -46,7 +51,7 @@ export interface PullRequest {
4651 readonly open : boolean
4752 readonly participants : Author [ ]
4853 readonly reviewers : Author [ ]
49- readonly state : string
54+ readonly state : SchemaPullRequest [ "state" ]
5055 readonly title : string
5156 readonly toRef : Ref
5257 readonly updatedDate : number
@@ -68,6 +73,6 @@ export interface Repository {
6873 readonly public : boolean
6974 readonly scmId : string
7075 readonly slug : string
71- readonly state : string
76+ readonly state : SchemaRepository [ "state" ]
7277 readonly statusMessage : string
7378}
Original file line number Diff line number Diff line change 1+ import type {
2+ SchemaPullRequest ,
3+ SchemaRepository ,
4+ } from "../../../openapi/openapi-typescript.js"
5+
16export interface Actor {
27 readonly active : boolean
38 readonly displayName : string
@@ -45,7 +50,7 @@ export interface PullRequest {
4550 readonly open : boolean
4651 readonly participants : Author [ ]
4752 readonly reviewers : Author [ ]
48- readonly state : string
53+ readonly state : SchemaPullRequest [ "state" ]
4954 readonly title : string
5055 readonly toRef : Ref
5156 readonly updatedDate : number
@@ -67,6 +72,6 @@ export interface Repository {
6772 readonly public : boolean
6873 readonly scmId : string
6974 readonly slug : string
70- readonly state : string
75+ readonly state : SchemaRepository [ "state" ]
7176 readonly statusMessage : string
7277}
Original file line number Diff line number Diff line change 1+ import type {
2+ SchemaPullRequest ,
3+ SchemaRepository ,
4+ } from "../../../openapi/openapi-typescript.js"
5+
16export interface Actor {
27 readonly active : boolean
38 readonly displayName : string
@@ -57,7 +62,7 @@ export interface PullRequest {
5762 readonly open : boolean
5863 readonly participants : Author [ ]
5964 readonly reviewers : Author [ ]
60- readonly state : string
65+ readonly state : SchemaPullRequest [ "state" ]
6166 readonly title : string
6267 readonly toRef : Ref
6368 readonly updatedDate : number
@@ -81,7 +86,7 @@ export interface Repository {
8186 readonly public : boolean
8287 readonly scmId : string
8388 readonly slug : string
84- readonly state : string
89+ readonly state : SchemaRepository [ "state" ]
8590 readonly statusMessage : string
8691}
8792
Original file line number Diff line number Diff line change 1+ import type {
2+ SchemaPullRequest ,
3+ SchemaRepository ,
4+ } from "../../../openapi/openapi-typescript.js"
5+
16export interface Actor {
27 readonly active : boolean
38 readonly displayName : string
@@ -56,7 +61,7 @@ export interface PullRequest {
5661 readonly participants : Author [ ]
5762 readonly properties : Properties
5863 readonly reviewers : Author [ ]
59- readonly state : string
64+ readonly state : SchemaPullRequest [ "state" ]
6065 readonly title : string
6166 readonly toRef : Ref
6267 readonly updatedDate : number
@@ -78,6 +83,6 @@ export interface Repository {
7883 readonly public : boolean
7984 readonly scmId : string
8085 readonly slug : string
81- readonly state : string
86+ readonly state : SchemaRepository [ "state" ]
8287 readonly statusMessage : string
8388}
Original file line number Diff line number Diff line change 1+ import type {
2+ SchemaPullRequest ,
3+ SchemaRepository ,
4+ } from "../../../openapi/openapi-typescript.js"
5+
16export interface Actor {
27 readonly active : boolean
38 readonly displayName : string
@@ -59,7 +64,7 @@ export interface PullRequest {
5964 readonly open : boolean
6065 readonly participants : Author [ ]
6166 readonly reviewers : Author [ ]
62- readonly state : string
67+ readonly state : SchemaPullRequest [ "state" ]
6368 readonly title : string
6469 readonly toRef : Ref
6570 readonly updatedDate : number
@@ -81,6 +86,6 @@ export interface Repository {
8186 readonly public : boolean
8287 readonly scmId : string
8388 readonly slug : string
84- readonly state : string
89+ readonly state : SchemaRepository [ "state" ]
8590 readonly statusMessage : string
8691}
Original file line number Diff line number Diff line change 1+ import type {
2+ SchemaPullRequest ,
3+ SchemaRepository ,
4+ } from "../../../openapi/openapi-typescript.js"
5+
16export interface Actor {
27 readonly active : boolean
38 readonly displayName : string
@@ -48,7 +53,7 @@ export interface PullRequest {
4853 readonly open : boolean
4954 readonly participants : Author [ ]
5055 readonly reviewers : Author [ ]
51- readonly state : string
56+ readonly state : SchemaPullRequest [ "state" ]
5257 readonly title : string
5358 readonly toRef : Ref
5459 readonly updatedDate : number
@@ -70,6 +75,6 @@ export interface Repository {
7075 readonly public : boolean
7176 readonly scmId : string
7277 readonly slug : string
73- readonly state : string
78+ readonly state : SchemaRepository [ "state" ]
7479 readonly statusMessage : string
7580}
Original file line number Diff line number Diff line change 1+ import type {
2+ SchemaPullRequest ,
3+ SchemaRepository ,
4+ } from "../../../openapi/openapi-typescript.js"
5+
16export interface Actor {
27 readonly active : boolean
38 readonly displayName : string
@@ -56,7 +61,7 @@ export interface PullRequest {
5661 readonly open : boolean
5762 readonly participants : Participant [ ]
5863 readonly reviewers : Participant [ ]
59- readonly state : string
64+ readonly state : SchemaPullRequest [ "state" ]
6065 readonly title : string
6166 readonly toRef : Ref
6267 readonly updatedDate : number
@@ -78,6 +83,6 @@ export interface Repository {
7883 readonly public : boolean
7984 readonly scmId : string
8085 readonly slug : string
81- readonly state : string
86+ readonly state : SchemaRepository [ "state" ]
8287 readonly statusMessage : string
8388}
You can’t perform that action at this time.
0 commit comments