-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpulls.t
More file actions
96 lines (80 loc) · 3.14 KB
/
pulls.t
File metadata and controls
96 lines (80 loc) · 3.14 KB
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
include "gcli/pulls.h";
include "templates/github/labels.h";
parser github_commit_author_field is
object of struct gcli_commit with
("name" => author as string,
"email" => email as string,
"date" => date as string);
parser github_commit_commit_field is
object of struct gcli_commit with
("message" => message as string,
"author" => use parse_github_commit_author_field);
parser github_commit is
object of struct gcli_commit with
("sha" => long_sha as string,
"commit" => use parse_github_commit_commit_field);
parser github_commits is array of struct gcli_commit
use parse_github_commit;
parser github_pull_head is
object of struct gcli_pull with
("sha" => head_sha as string,
"label" => head_label as string);
parser github_branch_label is
object of struct gcli_pull with
("label" => base_label as string);
parser github_pull_milestone is
object of struct gcli_pull with
("title" => milestone as string);
parser github_user is
object of char* select "login" as string;
parser github_pull is
object of struct gcli_pull with
("title" => title as string,
"state" => state as string,
"body" => body as string,
"created_at" => created_at as iso8601_time,
"number" => number as id,
"id" => id as id,
"node_id" => node_id as string,
"commits" => commits as int,
"labels" => labels as array of github_label
use parse_github_label_text,
"comments" => comments as int,
"additions" => additions as int,
"deletions" => deletions as int,
"changed_files" => changed_files as int,
"merged_at" => merged as is_string,
"mergeable" => mergeable as bool,
"draft" => draft as bool,
"user" => author as user,
"head" => use parse_github_pull_head,
"base" => use parse_github_branch_label,
"milestone" => use parse_github_pull_milestone,
"requested_reviewers" => reviewers as array of char* use parse_github_user,
"assignees" => assignees as array of char* use parse_github_user,
"html_url" => web_url as string);
parser github_pr_merge_message is object of char* select "message" as string;
parser github_pulls is
array of struct gcli_pull use parse_github_pull;
parser github_pull_search_result is
object of struct gcli_pull_list with
("items" => pulls as array of gcli_pull use parse_github_pull);
parser github_pull_review is
object of struct gcli_pull_review with
("id" => id as id,
"user" => author as user,
"submitted_at" => submitted_at as iso8601_time,
"state" => state as string);
parser github_pull_reviews is
array of struct gcli_pull_review use parse_github_pull_review;
parser github_pull_review_comment is
object of struct gcli_pull_review_comment with
("user" => author as user,
"id" => id as id,
"created_at" => created_at as iso8601_time,
"body" => body as string,
"diff_hunk" => diff_hunk as string,
"path" => path as string,
"in_reply_to_id" => in_reply_to as id);
parser github_pull_review_comments is
array of struct gcli_pull_review_comment use parse_github_pull_review_comment;