cbaines pushed a commit to branch master
in repository data-service.
commit cbef46e68280b6603f2fb51c9551c882d724f510
Author: Christopher Baines <[email protected]>
AuthorDate: Sat Jan 22 17:18:05 2022 +0000
Include the commit hash in the revision JSON response
For the latest processed revision, this is useful for looking up which is
the
latest processed revision.
---
guix-data-service/web/revision/controller.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/guix-data-service/web/revision/controller.scm
b/guix-data-service/web/revision/controller.scm
index 8f767f8..24d9188 100644
--- a/guix-data-service/web/revision/controller.scm
+++ b/guix-data-service/web/revision/controller.scm
@@ -477,7 +477,8 @@
mime-types)
((application/json)
(render-json
- `((packages_count . ,(caar packages-count))
+ `((revision . ((commit . ,commit-hash)))
+ (packages_count . ,(caar packages-count))
(derivations_counts . ,(list->vector
(map (match-lambda
((system target derivation_count)