diff options
author | Michael Muré <batolettre@gmail.com> | 2019-07-06 16:32:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-06 16:32:57 +0200 |
commit | f4d4b2f41326d08fdfa574cd4732e950fa9532d8 (patch) | |
tree | 04cdd9508bf8c2fd1f3b928dd419a15cdb9709d0 /bridge/github/import_query.go | |
parent | aa4464dbba0b1e0ce39ae53e35971e6924d404d3 (diff) | |
parent | 9e611ee66787b9f005540395da2ea10b3320362c (diff) | |
download | git-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.go | 11 |
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)"` +} |