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 (25 lines) | stat: -rw-r--r-- 953 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
include "gcli/gitlab/issues.h";

parser gitlab_user is object of char* select "username" as string;

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

parser gitlab_issue is
object of struct gcli_issue with
	("title"             => title as string,
	 "state"             => state as string,
	 "description"       => body as string,
	 "created_at"        => created_at as iso8601_time,
	 "iid"               => number as id,
	 "user_notes_count"  => comments as int,
	 "author"            => author as user,
	 "discussion_locked" => locked as bool,
	 "labels"            => labels as array of char* use get_string,
	 "assignees"         => assignees as array of gitlab_user
	                        use parse_gitlab_user,
	 "milestone"         => use parse_gitlab_issue_milestone,
	 "web_url"           => web_url as string);

parser gitlab_issues is array of struct gcli_issue use parse_gitlab_issue;