From cbef46e68280b6603f2fb51c9551c882d724f510 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 22 Jan 2022 17:18:05 +0000 Subject: [PATCH] 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)