aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/web/revision
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-01-22 17:18:05 +0000
committerChristopher Baines <mail@cbaines.net>2022-01-22 17:18:05 +0000
commitcbef46e68280b6603f2fb51c9551c882d724f510 (patch)
tree078126292d2b86dcea42acbfc3fa755235a551e5 /guix-data-service/web/revision
parenta7c9daab6ace33858be1dcde60f147c3c84afa81 (diff)
downloaddata-service-cbef46e68280b6603f2fb51c9551c882d724f510.tar
data-service-cbef46e68280b6603f2fb51c9551c882d724f510.tar.gz
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.
Diffstat (limited to 'guix-data-service/web/revision')
-rw-r--r--guix-data-service/web/revision/controller.scm3
1 files changed, 2 insertions, 1 deletions
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)