blob: 006d251126588cc7996b0996de47e8e511834499 (
plain) (
blame)
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
|
package github
import "github.com/shurcooL/githubv4"
type createIssueMutation struct {
CreateIssue struct {
Issue struct {
ID string `graphql:"id"`
URL string `graphql:"url"`
}
} `graphql:"createIssue(input:$input)"`
}
type updateIssueMutation struct {
UpdateIssue struct {
Issue struct {
ID string `graphql:"id"`
URL string `graphql:"url"`
}
} `graphql:"updateIssue(input:$input)"`
}
type addCommentToIssueMutation struct {
AddComment struct {
CommentEdge struct {
Node struct {
ID string `graphql:"id"`
URL string `graphql:"url"`
}
}
} `graphql:"addComment(input:$input)"`
}
type updateIssueCommentMutation struct {
IssueComment struct {
ID string `graphql:"id"`
URL string `graphql:"url"`
} `graphql:"updateIssueComment(input:$input)"`
}
type createLabelMutation struct {
CreateLabel struct {
Label struct {
ID string `graphql:"id"`
} `graphql:"label"`
} `graphql:"createLabel(input:{repositoryId: $repositoryId, name: $name, color: $color})"`
}
type removeLabelsFromLabelableMutation struct {
AddLabels struct{} `graphql:"removeLabelsFromLabelable(input:$input)"`
}
type addLabelsToLabelableMutation struct {
RemoveLabels struct{} `graphql:"addLabelsToLabelable(input:$input)"`
}
type createLabelInput struct {
Color githubv4.String `json:"color"`
Description *githubv4.String `json:"description"`
Name githubv4.String `json:"name"`
RepositoryID githubv4.ID `json:"repositoryId"`
}
|