aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/export_mutation.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-07-06 16:32:57 +0200
committerGitHub <noreply@github.com>2019-07-06 16:32:57 +0200
commitf4d4b2f41326d08fdfa574cd4732e950fa9532d8 (patch)
tree04cdd9508bf8c2fd1f3b928dd419a15cdb9709d0 /bridge/github/export_mutation.go
parentaa4464dbba0b1e0ce39ae53e35971e6924d404d3 (diff)
parent9e611ee66787b9f005540395da2ea10b3320362c (diff)
downloadgit-bug-f4d4b2f41326d08fdfa574cd4732e950fa9532d8.tar.gz
Merge pull request #166 from MichaelMure/github-exporter
[Bridge] GitHub exporter
Diffstat (limited to 'bridge/github/export_mutation.go')
-rw-r--r--bridge/github/export_mutation.go74
1 files changed, 74 insertions, 0 deletions
diff --git a/bridge/github/export_mutation.go b/bridge/github/export_mutation.go
new file mode 100644
index 00000000..cf77f344
--- /dev/null
+++ b/bridge/github/export_mutation.go
@@ -0,0 +1,74 @@
+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"`
+}
+*/