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)
((application/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
(match-lambda
((commit tag title_text body_text change)