From d19b8e1a09858c0580f6b7a8939c5c59114ff7a0 Mon Sep 17 00:00:00 2001 From: Amine Hilaly Date: Mon, 5 Aug 2019 23:27:08 +0200 Subject: bridge/github: fix name case sensitivity in retrieving and creating labels using github graphql api --- bridge/github/import_query.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bridge/github/import_query.go') diff --git a/bridge/github/import_query.go b/bridge/github/import_query.go index 89d7859d..62d3227b 100644 --- a/bridge/github/import_query.go +++ b/bridge/github/import_query.go @@ -175,3 +175,17 @@ type labelQuery struct { } `graphql:"label(name: $label)"` } `graphql:"repository(owner: $owner, name: $name)"` } + +type labelsQuery struct { + Repository struct { + Labels struct { + Nodes []struct { + ID string `graphql:"id"` + Name string `graphql:"name"` + Color string `graphql:"color"` + Description string `graphql:"description"` + } + PageInfo pageInfo + } `graphql:"labels(first: $first, after: $after)"` + } `graphql:"repository(owner: $owner, name: $name)"` +} -- cgit