unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] web: Include merged_with in graphql <issue>.
@ 2023-09-26  8:59 Christopher Baines
  2023-10-11 20:36 ` Simon Tournier
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Baines @ 2023-09-26  8:59 UTC (permalink / raw)
  To: guix-devel

* mumi/web/graphql.scm (<issue>): Include merged_with.
---
 mumi/web/graphql.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/mumi/web/graphql.scm b/mumi/web/graphql.scm
index 6dcb8ce..2c7c676 100644
--- a/mumi/web/graphql.scm
+++ b/mumi/web/graphql.scm
@@ -69,7 +69,17 @@
               (issue-messages (bug-num parent))))
   (blocked_by (non-nullable-type (list-type <issue>))
               (lambda (parent . _)
-                (map bug-status (bug-blockedby parent)))))
+                (map bug-status (bug-blockedby parent))))
+  (merged_with (non-nullable-type (list-type <issue>))
+               (lambda (parent . _)
+                 (map
+                  bug-status
+                  (match (bug-mergedwith parent)
+                   ((? string? str)
+                    (string-split str #\space))
+                   ((? number? n)
+                    (list (number->string n)))
+                   (#f '()))))))
 
 (define-object-type <person>
   (name <string> (lambda (parent . _)
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-10-13 10:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-26  8:59 [PATCH] web: Include merged_with in graphql <issue> Christopher Baines
2023-10-11 20:36 ` Simon Tournier
2023-10-12  8:10   ` Christopher Baines
2023-10-12  9:35     ` Arun Isaac
2023-10-13  0:01       ` Arun Isaac
2023-10-13 10:12         ` Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).