generated from NatoBoram/gigachad.ts
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmerged.ts
88 lines (79 loc) · 1.94 KB
/
merged.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import type {
SchemaPullRequest,
SchemaRepository,
} from "../../../openapi/index.js"
export interface Actor {
readonly active: boolean
readonly displayName: string
readonly emailAddress: string
readonly id: number
readonly name: string
readonly slug: string
readonly type: string
}
export interface Author {
readonly approved: boolean
readonly role: string
readonly status: string
readonly user: Actor
}
export interface MergeCommit {
readonly displayId: string
readonly id: string
}
/** A user merges a pull request for a repository. This payload comes with an
* event key of `pr:merged`. */
export interface PRMerged {
/** The user who merged the pull request. */
readonly actor: Actor
readonly date: string
readonly eventKey: "pr:merged"
/** Details of the pull request merged. */
readonly pullRequest: PullRequest
}
export interface Project {
readonly id: number
readonly key: string
readonly name: string
readonly public: boolean
readonly type: string
}
export interface Properties {
readonly mergeCommit: MergeCommit
}
export interface PullRequest {
readonly author: Author
readonly closed: boolean
readonly closedDate: number
readonly createdDate: number
readonly draft: boolean
readonly fromRef: Ref
readonly id: number
readonly locked: boolean
readonly open: boolean
readonly participants: Author[]
readonly properties: Properties
readonly reviewers: Author[]
readonly state: SchemaPullRequest["state"]
readonly title: string
readonly toRef: Ref
readonly updatedDate: number
readonly version: number
}
export interface Ref {
readonly displayId: string
readonly id: string
readonly latestCommit: string
readonly repository: Repository
}
export interface Repository {
readonly forkable: boolean
readonly id: number
readonly name: string
readonly project: Project
readonly public: boolean
readonly scmId: string
readonly slug: string
readonly state: SchemaRepository["state"]
readonly statusMessage: string
}