export_mutation.go

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