aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import_query.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-10 01:29:51 +0100
committerGitHub <noreply@github.com>2020-02-10 01:29:51 +0100
commit9f3618d886d461ea806468a8c690a4a303d66d9b (patch)
tree9d941dd499a3bffbbba3295c58a6b77b5b6feeca /bridge/github/import_query.go
parent3caffeef4d2ed25d4eb5d4bfd262f4fc3b92561f (diff)
parentbd7b50bc8638d3b6c776dd974de32a1ea385c835 (diff)
downloadgit-bug-9f3618d886d461ea806468a8c690a4a303d66d9b.tar.gz
Merge pull request #317 from MichaelMure/bridges-improve
github/gitlab: many fixes and improvments at the config step
Diffstat (limited to 'bridge/github/import_query.go')
-rw-r--r--bridge/github/import_query.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/bridge/github/import_query.go b/bridge/github/import_query.go
index f5cad299..58f6d95e 100644
--- a/bridge/github/import_query.go
+++ b/bridge/github/import_query.go
@@ -168,14 +168,6 @@ type ghostQuery struct {
} `graphql:"user(login: $login)"`
}
-type labelQuery struct {
- Repository struct {
- Label struct {
- ID string `graphql:"id"`
- } `graphql:"label(name: $label)"`
- } `graphql:"repository(owner: $owner, name: $name)"`
-}
-
type labelsQuery struct {
Repository struct {
Labels struct {
@@ -189,3 +181,9 @@ type labelsQuery struct {
} `graphql:"labels(first: $first, after: $after)"`
} `graphql:"repository(owner: $owner, name: $name)"`
}
+
+type loginQuery struct {
+ Viewer struct {
+ Login string `graphql:"login"`
+ } `graphql:"viewer"`
+}