git-bug/bridge/github/export_mutation.go
Amine Hilaly 570ae5f75e
[bug] add snapshot.GetCreateMetadata method
[bug] add snapshot.HasParticipant(id string)
[bug] add snapshot.HasAnyParticipant(ids ...string)
[bug] add snapshot.HasActor(id string)
[bug] add snapshot.HasAnyActor(ids ...string)
[bridge/github] improve comments
[bridge/github] exporter tests: register deleteRepository in cleaner
[bridge/github] tests rebase
2019-06-30 15:33:27 +02:00

75 lines
1.6 KiB
Go

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 {
UpdateIssueComment struct {
IssueComment struct {
ID string `graphql:"id"`
URL string `graphql:"url"`
} `graphql:"issueComment"`
} `graphql:"updateIssueComment(input:$input)"`
}
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)"`
}
/**
type createLabelMutation struct {
CreateLabel struct {
Label struct {
ID string `graphql:"id"`
} `graphql:"label"`
} `graphql:"createLabel(input: $input)"`
}
type createLabelInput struct {
Color githubv4.String `json:"color"`
Description *githubv4.String `json:"description,omitempty"`
Name githubv4.String `json:"name"`
RepositoryID githubv4.ID `json:"repositoryId"`
ClientMutationID *githubv4.String `json:"clientMutationId,omitempty"`
}
*/