diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-06-22 17:10:23 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-06-24 21:32:11 +0200 |
commit | f70c279c1e8dc7f73e08679f8789c35c1dfdd59d (patch) | |
tree | 829aefab46f5f9d3b6cdf282ef776e901071cf02 /bridge/github/import_query.go | |
parent | e511f3d885e5e7f15d3b7f8e500380f0c63bc377 (diff) | |
download | git-bug-f70c279c1e8dc7f73e08679f8789c35c1dfdd59d.tar.gz |
[bridge/github] exporter: Improve error handling
[bridge/github] queries: use api v4 for getLabel / createLabel
[bridge/github] add comments to getIdentityClient
Diffstat (limited to 'bridge/github/import_query.go')
-rw-r--r-- | bridge/github/import_query.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bridge/github/import_query.go b/bridge/github/import_query.go index 4d5886f6..6c0db5e1 100644 --- a/bridge/github/import_query.go +++ b/bridge/github/import_query.go @@ -168,3 +168,11 @@ type userQuery struct { Email githubv4.String } `graphql:"user(login: $login)"` } + +type labelQuery struct { + Repository struct { + Label struct { + ID string `graphql:"id"` + } `graphql:"label(name: $name)"` + } `graphql:"repository(owner: $owner, name: $name)"` +} |