-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathGitHub_types.mli
130 lines (103 loc) · 3.05 KB
/
GitHub_types.mli
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
type repository_info =
{id: int; node_id: GitHub_ID.t; owner: string; name: string}
type milestone = {milestone_title: string; description: string option}
type project_column = {id: GitHub_ID.t; databaseId: int option}
type merge_method = MERGE | REBASE | SQUASH
type backport_info = {backport_to: string; rejected_milestone: int}
type pull_request_card_info =
{ pr_id: GitHub_ID.t
; card_id: GitHub_ID.t
; project_id: GitHub_ID.t
; project_number: int
; field: string
; old_value: string
; new_value: string }
type mv_card_to_column_input = {card_id: GitHub_ID.t; column_id: GitHub_ID.t}
type closer_info =
{pull_request_id: GitHub_ID.t; milestone_id: GitHub_ID.t option}
type 'a closed_by =
| ClosedByPullRequest of 'a
| ClosedByCommit
(* Only used when commit is not associated to a PR *)
| ClosedByOther
| NoCloseEvent
type issue_closer_info =
{issue_id: GitHub_ID.t; milestone_id: GitHub_ID.t option; closer: closer_info}
type issue = {owner: string; repo: string; number: int}
type comment = {id: GitHub_ID.t; author: string; created_by_email: bool}
type issue_info =
{ issue: issue
; title: string
; number: int
; id: GitHub_ID.t
; user: string
; labels: string list
; milestoned: bool
; pull_request: bool
; body: string option
; assignees: string list }
type remote_ref_info = {repo_url: string; name: string}
type commit_info = {branch: remote_ref_info; sha: string}
type review_decision = CHANGES_REQUESTED | APPROVED | REVIEW_REQUIRED | NONE
type pull_request_action =
| PullRequestOpened
| PullRequestClosed
| PullRequestReopened
| PullRequestSynchronized
type 'a pull_request_info =
{ issue: 'a
; base: commit_info
; head: commit_info
; merged: bool
; last_commit_message: string option }
type pull_request_reviews_info =
{ baseRef: string
; files: string list
; approved_reviews: string list
; comment_reviews: string list
; review_decision: review_decision
; last_comments: comment list }
type project_card_issue = {issue: issue option; column_id: int}
type comment_info =
{ body: string
; author: string
; pull_request: issue_info pull_request_info option
; issue: issue_info
; review_comment: bool
; id: GitHub_ID.t }
type push_info =
{ owner: string
; repo: string
; base_ref: string
; head_sha: string
; commits_msg: string list }
type check_run_status = COMPLETED | IN_PROGRESS | QUEUED
type check_conclusion =
| ACTION_REQUIRED
| CANCELLED
| FAILURE
| NEUTRAL
| SKIPPED
| STALE
| SUCCESS
| TIMED_OUT
type check_suite_info =
{id: int; node_id: GitHub_ID.t; head_sha: string; status: check_run_status}
type check_run_info =
{ id: int
; node_id: GitHub_ID.t
; head_sha: string
; status: check_run_status
; check_suite_info: check_suite_info
; repository_info: repository_info
; external_id: string }
type check_run =
{ id: int
; node_id: GitHub_ID.t
; head_sha: string
; name: string
; status: string
; url: string
; title: string
; text: string }
type check_tab_info = {name: string; summary: string option; text: string option}