1package github
2
3import "github.com/shurcooL/githubv4"
4
5type createIssueMutation struct {
6 CreateIssue struct {
7 Issue struct {
8 ID string `graphql:"id"`
9 URL string `graphql:"url"`
10 }
11 } `graphql:"createIssue(input:$input)"`
12}
13
14type updateIssueMutation struct {
15 UpdateIssue struct {
16 Issue struct {
17 ID string `graphql:"id"`
18 URL string `graphql:"url"`
19 }
20 } `graphql:"updateIssue(input:$input)"`
21}
22
23type addCommentToIssueMutation struct {
24 AddComment struct {
25 CommentEdge struct {
26 Node struct {
27 ID string `graphql:"id"`
28 URL string `graphql:"url"`
29 }
30 }
31 } `graphql:"addComment(input:$input)"`
32}
33
34type updateIssueCommentMutation struct {
35 IssueComment struct {
36 ID string `graphql:"id"`
37 URL string `graphql:"url"`
38 } `graphql:"updateIssueComment(input:$input)"`
39}
40
41type createLabelMutation struct {
42 CreateLabel struct {
43 Label struct {
44 ID string `graphql:"id"`
45 } `graphql:"label"`
46 } `graphql:"createLabel(input:{repositoryId: $repositoryId, name: $name, color: $color})"`
47}
48
49type removeLabelsFromLabelableMutation struct {
50 AddLabels struct{} `graphql:"removeLabelsFromLabelable(input:$input)"`
51}
52
53type addLabelsToLabelableMutation struct {
54 RemoveLabels struct{} `graphql:"addLabelsToLabelable(input:$input)"`
55}
56
57type createLabelInput struct {
58 Color githubv4.String `json:"color"`
59 Description *githubv4.String `json:"description"`
60 Name githubv4.String `json:"name"`
61 RepositoryID githubv4.ID `json:"repositoryId"`
62}