export_query.go

 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	UpdateIssueComment struct {
36		IssueComment struct {
37			ID  string `graphql:"id"`
38			URL string `graphql:"url"`
39		} `graphql:"issueComment"`
40	} `graphql:"updateIssueComment(input:$input)"`
41}
42
43type removeLabelsFromLabelableMutation struct {
44	AddLabels struct {
45		Labelable struct {
46			Typename string `graphql:"__typename"`
47		}
48	} `graphql:"removeLabelsFromLabelable(input:$input)"`
49}
50
51type addLabelsToLabelableMutation struct {
52	RemoveLabels struct {
53		Labelable struct {
54			Typename string `graphql:"__typename"`
55		}
56	} `graphql:"addLabelsToLabelable(input:$input)"`
57}
58
59type createLabelMutation struct {
60	CreateLabel struct {
61		Label struct {
62			ID string `graphql:"id"`
63		} `graphql:"label"`
64	} `graphql:"createLabel(input: $input)"`
65}
66
67type createLabelInput struct {
68	Color        githubv4.String  `json:"color"`
69	Description  *githubv4.String `json:"description,omitempty"`
70	Name         githubv4.String  `json:"name"`
71	RepositoryID githubv4.ID      `json:"repositoryId"`
72
73	ClientMutationID *githubv4.String `json:"clientMutationId,omitempty"`
74}