aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/export_query.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/github/export_query.go')
-rw-r--r--bridge/github/export_query.go40
1 files changed, 40 insertions, 0 deletions
diff --git a/bridge/github/export_query.go b/bridge/github/export_query.go
new file mode 100644
index 00000000..ff03df34
--- /dev/null
+++ b/bridge/github/export_query.go
@@ -0,0 +1,40 @@
+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 {
+ IssueComment struct {
+ ID string `graphql:"id"`
+ URL string `graphql:"url"`
+ } `graphql:"addComment(input:$input)"`
+}
+
+type removeLabelsMutation struct {
+}