From 94172a6c655ea4aefe2960aa5db9fec77130e87d Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 24 Mar 2023 00:08:42 +1100 Subject: Adding step mode. Also refactoring --- buildbot-client.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'buildbot-client.el') diff --git a/buildbot-client.el b/buildbot-client.el index afc1a69..e979368 100644 --- a/buildbot-client.el +++ b/buildbot-client.el @@ -10,7 +10,7 @@ (defun buildbot-api-logs (stepid) (buildbot-url-fetch-json (format - "%s/api/v2/steps/%s/logs" + "%s/api/v2/steps/%d/logs" buildbot-host stepid))) (defun buildbot-api-builders () @@ -46,6 +46,9 @@ (= (alist-get 'builderid builder) builderid)) buildbot-builders)) +(defun buildbot-get-logs-by-stepid (stepid) + (alist-get 'logs (buildbot-api-logs stepid))) + (defun buildbot-get-builder-name-by-id (id) (alist-get 'name (buildbot-builder-by-id id))) -- cgit v1.2.3