-
Notifications
You must be signed in to change notification settings - Fork 14
/
schema.graphql
90 lines (76 loc) · 1.07 KB
/
schema.graphql
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
type JobInfoMergeRequest {
iid: Int!
projectId: Int!
title: String!
webUrl: String!
authorId: Int!
}
type JobInfo {
mergeRequest: JobInfoMergeRequest!
}
enum JobPriority {
HIGH
NORMAL
}
enum WebHookHistoryStatus {
SKIPPED
SUCCESS
UNAUTHORIZED
INVALID_EVENT
}
enum JobStatus {
IN_PROGRESS
REBASING
CHECKING_MERGE_STATUS
WAITING
WAITING_FOR_CI
}
type Job {
priority: JobPriority!
status: JobStatus!
info: JobInfo!
}
type QueueInfo {
projectName: String!
}
type Queue {
name: String!
info: QueueInfo!
jobs: [Job!]!
}
type WebHookHistoryRequest {
id: String!
createdAt: Int!
status: WebHookHistoryStatus!
event: String
data: String
}
type User {
id: Int!
name: String!
username: String!
email: String!
webUrl: String!
avatarUrl: String!
}
input UserInput {
id: Int!
}
type Query {
me: User!
user(input: UserInput!): User
queues: [Queue!]!
}
type Subscription {
queues: [Queue!]!
webHookHistory: [WebHookHistoryRequest!]!
}
input UnassignInput {
projectId: Int!
mergeRequestIid: Int!
}
type Mutation {
unassign(
input: UnassignInput!
): Int
}