aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/export_query.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-06-14 20:28:53 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-06-24 21:24:04 +0200
commit2f620e65b8edeb761a161cea0dda11eb1cdf8fec (patch)
tree44690bd8a3e156c5ddba48528e4f52a732adcc05 /bridge/github/export_query.go
parent946c936c5c447fd1ef36fca0a17c6e6ec40c8054 (diff)
downloadgit-bug-2f620e65b8edeb761a161cea0dda11eb1cdf8fec.tar.gz
[bridge/github] exporter: add graphql functionalities
[bridge/github] graphql mutation objects [bridge/github] github create and get labels [bridge/github] repository node_id query [bridge/github] exporter: ignore old bugs and old operations [bridge/github] add update labels/status functionalities [bridge/github] exporter: cache labels while exporting
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 {
+}