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.
This commit is contained in:
Christopher Baines 2022-01-22 17:18:05 +00:00
parent a7c9daab6a
commit cbef46e682

View file

@ -477,7 +477,8 @@
mime-types) mime-types)
((application/json) ((application/json)
(render-json (render-json
`((packages_count . ,(caar packages-count)) `((revision . ((commit . ,commit-hash)))
(packages_count . ,(caar packages-count))
(derivations_counts . ,(list->vector (derivations_counts . ,(list->vector
(map (match-lambda (map (match-lambda
((system target derivation_count) ((system target derivation_count)