aboutsummaryrefslogtreecommitdiff
path: root/buildbot-client.el
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2023-03-24 00:08:42 +1100
committerYuchen Pei <hi@ypei.me>2023-03-24 00:08:42 +1100
commit94172a6c655ea4aefe2960aa5db9fec77130e87d (patch)
tree59b27daaf1f553d5e282799941af27c01aeadfaa /buildbot-client.el
parent7cc017ccc12921e38d0ace50400e096a4f6ddd2b (diff)
Adding step mode. Also refactoring
Diffstat (limited to 'buildbot-client.el')
-rw-r--r--buildbot-client.el5
1 files changed, 4 insertions, 1 deletions
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)))