-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.js
104 lines (104 loc) · 4.04 KB
/
schema.js
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
WOQL.and(
WOQL.doctype("GitHubRepository")
.label("GitHub Repository")
.description("A GitHub repository of interest")
.property("gitHub_repository_full_name", "string")
.label("GitHub Repository Full Name")
.property("gitHub_repository_html_url", "xdd:url")
.label("GitHub Repository Url")
.property("gitHub_repository_star", "scm:GitHubStar")
.label("GitHub Repository Star")
.property("gitHub_repository_commit", "scm:GitHubCommit")
.label("GitHub Repository Commit")
.property("gitHub_repository_issue", "scm:GitHubIssue")
.label("GitHub Repository Issue")
.property("gitHub_repo_pull_request", "scm:GitHubPullRequest")
.label("GitHub Repository Pull Request")
.property("gitHub_repo_fork", "scm:GitHubFork")
.label("GitHub Repository Fork")
.property("gitHub_stargazers_count", "integer")
.label("GitHub Stargazers Count")
.property("gitHub_forks_count", "integer")
.label("GitHub Forks Count")
.property("gitHub_open_issues_count", "integer")
.label("GitHub Open Issues Count")
,
WOQL.doctype("GitHubUser")
.label("GitHub User")
.description("A GitHub User")
.property("gitHub_user_html_url", "xdd:url")
.label("GitHub User Url")
.property("gitHub_user_email", "xdd:email")
.label("GitHub User Email")
.property("gitHub_user_avatar", "xdd:url")
.label("GitHub User Avatar")
.property("gitHub_user_star", "scm:GitHubStar")
.label("GitHub User Star")
.property("gitHub_user_commit", "scm:GitHubCommit")
.label("GitHub User Commit")
.property("gitHub_user_issue", "scm:GitHubIssue")
.label("GitHub User Issue")
.property("gitHub_user_pull_request", "scm:GitHubPullRequest")
.label("GitHub User Pull Request")
.property("gitHub_user_fork", "scm:GitHubFork")
.label("GitHub User Fork")
,
WOQL.add_class("GitHubStar")
.label("GitHub Star")
.property("starred_at", "dateTime")
.label("Starred at")
.property("action", "string")
.label("Action"),
WOQL.add_class("GitHubCommit")
.label("GitHub Commit")
.property("gitHub_commit_ref", "string")
.label("GitHub Commit Ref")
.property("gitHub_commit_message", "string")
.label("GitHub Commit Message")
.property("gitHub_commit_at", "dateTime")
.label("GitHub Commit Created at")
.property("gitHub_commit_url", "xdd:url")
.label("GitHub Commit Url"),
WOQL.add_class("GitHubIssue")
.label("GitHub Issue")
.property("gitHub_issue_state", "string")
.label("GitHub Issue State")
.property("gitHub_issue_url", "xdd:url")
.label("GitHub Issue Url")
.property("gitHub_issue_title", "string")
.label("GitHub Issue Title")
.property("gitHub_issue_body", "string")
.label("GitHub Issue Body")
.property("gitHub_issue_created_at", "dateTime")
.label("GitHub Issue Created At")
.property("gitHub_issue_updated_at", "dateTime")
.label("GitHub Issue Updated At")
.property("gitHub_issue_closed_at", "dateTime")
.label("GitHub Issue Closed At"),
WOQL.add_class("GitHubPullRequest")
.label("GitHub Pull Request")
.property("gitHub_pull_request_state", "string")
.label("GitHub Pull Request State")
.property("gitHub_pull_request_url", "xdd:url")
.label("GitHub Pull Request Url")
.property("gitHub_pull_request_title", "string")
.label("GitHub Pull Request Title")
.property("gitHub_pull_request_body", "string")
.label("GitHub Pull Request Body")
.property("gitHub_pull_request_created_at", "dateTime")
.label("GitHub Pull Request Created At")
.property("gitHub_pull_request_updated_at", "dateTime")
.label("GitHub Pull Request Updated At")
.property("gitHub_pull_request_closed_at", "dateTime")
.label("GitHub Pull Request Closed At"),
WOQL.add_class("GitHubFork")
.label("GitHub Fork")
.property("gitHub_fork_url", "xdd:url")
.label("GitHub Fork Url")
.property("gitHub_fork_created_at", "dateTime")
.label("GitHub Fork Created At")
.property("gitHub_fork_updated_at", "dateTime")
.label("GitHub Fork Updated At")
.property("gitHub_fork_pushed_at", "dateTime")
.label("GitHub Fork Pushed At")
)