From 6583303218c19c394eac34a792e4a326e1c19b0d Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sat, 15 Jul 2023 16:30:54 +1000 Subject: Adding support for more instances - Pass buildbot-host between buffers - Set buildbot-builders automatically - When the Changes API does not return builds, fetch the builds in a separate call This last change allows `buildbot-revision-open' to work with more instances, including python and buildbot. Also updated README with these changes, as well as ELPA installation info. --- buildbot-utils.el | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'buildbot-utils.el') diff --git a/buildbot-utils.el b/buildbot-utils.el index d016330..f28ab75 100644 --- a/buildbot-utils.el +++ b/buildbot-utils.el @@ -170,15 +170,17 @@ The changes should be of the same revision." (let* ((first-change (elt changes 0)) (revision-info (buildbot-get-revision-info-from-change first-change)) (changes-info - (mapcar (lambda (change) - (list - (assq 'branch change) - (assq 'builds change) - (cons 'build-stats - (buildbot-get-build-stats - (alist-get 'builds change))) - (assq 'revision first-change))) - changes))) + (mapcar + (lambda (change) + (append + (list + (assq 'branch change) + (assq 'builds change) + (assq 'revision first-change)) + (when-let ((builds (assq 'builds change))) + `((build-stats . ,(buildbot-get-build-stats + (cdr builds))))))) + changes))) `((revision-info . ,revision-info) (changes-info . ,changes-info)))) (provide 'buildbot-utils) -- cgit v1.2.3