Include the base commit and target commit in the compare output

This makes it easier to make other requests with the response body.
This commit is contained in:
Christopher Baines 2020-10-09 19:35:38 +01:00
parent 3cb8ce51fc
commit 2fa9f151f6

View file

@ -228,7 +228,9 @@
mime-types) mime-types)
((application/json) ((application/json)
(render-json (render-json
`((channel-news . ,(list->vector `((base-commit . ,(assq-ref query-parameters 'base_commit))
(target-commit . ,(assq-ref query-parameters 'target_commit))
(channel-news . ,(list->vector
(map (map
(match-lambda (match-lambda
((commit tag title_text body_text change) ((commit tag title_text body_text change)