File: issues.t

package info (click to toggle)
gcli 2.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,476 kB
  • sloc: ansic: 25,411; sh: 580; makefile: 509; yacc: 261; lex: 59
file content (31 lines) | stat: -rw-r--r-- 1,068 bytes parent folder | download
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
include "gcli/issues.h";
include "gcli/labels.h";

include "templates/github/labels.h";

parser github_issue_milestone is
object of struct gcli_issue with
	("title" => milestone as string);

parser github_issue is
object of struct gcli_issue with
	("title"        => title as string,
	 "state"        => state as string,
	 "body"         => body as string,
	 "created_at"   => created_at as iso8601_time,
	 "number"       => number as id,
	 "comments"     => comments as int,
	 "user"         => author as user,
	 "locked"       => locked as bool,
	 "labels"       => labels as array of github_label
	                   use parse_github_label_text,
	 "assignees"    => assignees as array of char* use get_user,
	 "pull_request" => is_pr as github_is_pr,
	 "milestone"    => use parse_github_issue_milestone,
	 "html_url"     => web_url as string);

parser github_issues is array of struct gcli_issue use parse_github_issue;

parser github_issue_search_result is
object of struct gcli_issue_list with
	("items" => issues as array of gcli_issue use parse_github_issue);