aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/web/controller.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-09-01 18:26:46 +0100
committerChristopher Baines <mail@cbaines.net>2019-09-01 18:32:09 +0100
commitd3254dddb68980c26edc35539346dcf455e01fba (patch)
tree73a00daab700f7fa0599009d86935dcc04e9f6ff /guix-data-service/web/controller.scm
parent514933db473b60db8fdd9eb5e5d3f94ce94ac715 (diff)
downloaddata-service-d3254dddb68980c26edc35539346dcf455e01fba.tar
data-service-d3254dddb68980c26edc35539346dcf455e01fba.tar.gz
Add lint warnings to the package page
Diffstat (limited to 'guix-data-service/web/controller.scm')
-rw-r--r--guix-data-service/web/controller.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/guix-data-service/web/controller.scm b/guix-data-service/web/controller.scm
index 8712121..b305823 100644
--- a/guix-data-service/web/controller.scm
+++ b/guix-data-service/web/controller.scm
@@ -301,7 +301,13 @@
version))
(git-repositories
(git-repositories-containing-commit conn
- commit-hash)))
+ commit-hash))
+ (lint-warnings
+ (select-lint-warnings-by-revision-package-name-and-version
+ conn
+ commit-hash
+ name
+ version)))
(case (most-appropriate-mime-type
'(application/json text/html)
mime-types)
@@ -330,6 +336,7 @@
metadata
derivations
git-repositories
+ lint-warnings
#:header-text header-text
#:header-link header-link)
#:extra-headers http-headers-for-unchanging-content)))))