aboutsummaryrefslogtreecommitdiff
path: root/guix-qa-frontpage/mumi.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-09-17 17:34:06 +0200
committerChristopher Baines <mail@cbaines.net>2022-09-17 17:34:06 +0200
commit926b07a3834d47d29fd83c3ffaae68634b3c3371 (patch)
treedaf468cc5fb2dcf84c30c9332c1bae6652800cd8 /guix-qa-frontpage/mumi.scm
parent6951e274de24997c8ca38bbf4a8eddf2a40bef1f (diff)
downloadqa-frontpage-926b07a3834d47d29fd83c3ffaae68634b3c3371.tar
qa-frontpage-926b07a3834d47d29fd83c3ffaae68634b3c3371.tar.gz
Add missing mumi.scm
Diffstat (limited to 'guix-qa-frontpage/mumi.scm')
-rw-r--r--guix-qa-frontpage/mumi.scm44
1 files changed, 44 insertions, 0 deletions
diff --git a/guix-qa-frontpage/mumi.scm b/guix-qa-frontpage/mumi.scm
new file mode 100644
index 0000000..2f6dd3c
--- /dev/null
+++ b/guix-qa-frontpage/mumi.scm
@@ -0,0 +1,44 @@
+;;; Guix QA Frontpage
+;;;
+;;; Copyright © 2022 Christopher Baines <mail@cbaines.net>
+;;;
+;;; This program is free software: you can redistribute it and/or
+;;; modify it under the terms of the GNU Affero General Public License
+;;; as published by the Free Software Foundation, either version 3 of
+;;; the License, or (at your option) any later version.
+;;;
+;;; This program is distributed in the hope that it will be useful,
+;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;; Affero General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU Affero General Public
+;;; License along with this program. If not, see
+;;; <http://www.gnu.org/licenses/>.
+
+(define-module (guix-qa-frontpage mumi)
+ #:use-module (srfi srfi-1)
+ #:use-module (kolam http)
+ #:export (mumi-issue-tags))
+
+(define (mumi-issue-tags number)
+ (let ((response
+ (graphql-http-get "https://issues.guix.gnu.org/graphql"
+ `(document (query (#(issue #:number ,number) tags))))))
+ (peek "RESPONSE" response)
+ (vector->list
+ (assoc-ref (cdr (first response))
+ "tags"))))
+
+
+
+
+
+
+
+
+
+
+
+
+(graphql-http-get "https://issues.guix.gnu.org/graphql" '(document (query (#(issue #:number 36924) title tags))))