diff options
author | Christopher Baines <mail@cbaines.net> | 2022-01-22 17:18:05 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2022-01-22 17:18:05 +0000 |
commit | cbef46e68280b6603f2fb51c9551c882d724f510 (patch) | |
tree | 078126292d2b86dcea42acbfc3fa755235a551e5 /guix-data-service/web/revision | |
parent | a7c9daab6ace33858be1dcde60f147c3c84afa81 (diff) | |
download | data-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.scm | 3 |
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) |