2019-06-14 21:28:53 +03:00
|
|
|
package github
|
|
|
|
|
|
|
|
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 {
|
2019-06-22 23:28:04 +03:00
|
|
|
UpdateIssueComment struct {
|
|
|
|
IssueComment struct {
|
|
|
|
ID string `graphql:"id"`
|
|
|
|
URL string `graphql:"url"`
|
|
|
|
} `graphql:"issueComment"`
|
2019-06-15 03:50:09 +03:00
|
|
|
} `graphql:"updateIssueComment(input:$input)"`
|
|
|
|
}
|
|
|
|
|
2019-06-22 23:28:04 +03:00
|
|
|
type removeLabelsFromLabelableMutation struct {
|
|
|
|
AddLabels struct {
|
|
|
|
Labelable struct {
|
|
|
|
Typename string `graphql:"__typename"`
|
|
|
|
}
|
|
|
|
} `graphql:"removeLabelsFromLabelable(input:$input)"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type addLabelsToLabelableMutation struct {
|
|
|
|
RemoveLabels struct {
|
|
|
|
Labelable struct {
|
|
|
|
Typename string `graphql:"__typename"`
|
|
|
|
}
|
|
|
|
} `graphql:"addLabelsToLabelable(input:$input)"`
|
|
|
|
}
|
|
|
|
|
2019-06-23 20:20:10 +03:00
|
|
|
/**
|
2019-06-22 18:10:23 +03:00
|
|
|
type createLabelMutation struct {
|
|
|
|
CreateLabel struct {
|
|
|
|
Label struct {
|
|
|
|
ID string `graphql:"id"`
|
|
|
|
} `graphql:"label"`
|
2019-06-22 23:28:04 +03:00
|
|
|
} `graphql:"createLabel(input: $input)"`
|
2019-06-14 21:28:53 +03:00
|
|
|
}
|
2019-06-22 18:10:23 +03:00
|
|
|
|
|
|
|
type createLabelInput struct {
|
|
|
|
Color githubv4.String `json:"color"`
|
2019-06-22 23:28:04 +03:00
|
|
|
Description *githubv4.String `json:"description,omitempty"`
|
2019-06-22 18:10:23 +03:00
|
|
|
Name githubv4.String `json:"name"`
|
|
|
|
RepositoryID githubv4.ID `json:"repositoryId"`
|
2019-06-22 23:28:04 +03:00
|
|
|
|
|
|
|
ClientMutationID *githubv4.String `json:"clientMutationId,omitempty"`
|
2019-06-22 18:10:23 +03:00
|
|
|
}
|
2019-06-23 20:20:10 +03:00
|
|
|
*/
|