aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import_query.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/import_query.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/import_query.go')
-rw-r--r--bridge/github/import_query.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/bridge/github/import_query.go b/bridge/github/import_query.go
index 4d5886f6..89d7859d 100644
--- a/bridge/github/import_query.go
+++ b/bridge/github/import_query.go
@@ -160,11 +160,18 @@ type commentEditQuery struct {
} `graphql:"repository(owner: $owner, name: $name)"`
}
-type userQuery struct {
+type ghostQuery struct {
User struct {
Login githubv4.String
AvatarUrl githubv4.String
Name *githubv4.String
- Email githubv4.String
} `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)"`
+}