diff options
author | Yuchen Pei <hi@ypei.me> | 2023-03-24 00:08:42 +1100 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2023-03-24 00:08:42 +1100 |
commit | 94172a6c655ea4aefe2960aa5db9fec77130e87d (patch) | |
tree | 59b27daaf1f553d5e282799941af27c01aeadfaa /buildbot-client.el | |
parent | 7cc017ccc12921e38d0ace50400e096a4f6ddd2b (diff) |
Adding step mode. Also refactoring
Diffstat (limited to 'buildbot-client.el')
-rw-r--r-- | buildbot-client.el | 5 |
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))) |