From: Christopher Baines <mail@cbaines.net>
To: guix-devel@gnu.org
Subject: [PATCH] web: Include merged_with in graphql <issue>.
Date: Tue, 26 Sep 2023 09:59:25 +0100 [thread overview]
Message-ID: <20230926085925.12732-1-mail@cbaines.net> (raw)
* 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
next reply other threads:[~2023-09-26 9:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 8:59 Christopher Baines [this message]
2023-10-11 20:36 ` [PATCH] web: Include merged_with in graphql <issue> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230926085925.12732-1-mail@cbaines.net \
--to=mail@cbaines.net \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).