add broken warning

closes #27
This commit is contained in:
Ryan Mulligan 2018-03-22 17:19:22 -07:00
parent aeb31b1d91
commit f867437f7d

8
up.sh
View File

@ -213,7 +213,13 @@ function push() {
}
push || push || push
PR_MESSAGE="$COMMIT_MESSAGE$MAINTAINERS"
BROKEN_WARNING=
if [ "$(nix eval -f . '(let pkgs = import ./. {}; in pkgs.'"${ATTR_PATH}"'.meta.broken or false)')" == "true" ]
then
BROKEN_WARNING="- WARNING: Package has meta.broken=true; Please manually test this package update and remove the broken attribute."
fi
PR_MESSAGE="$COMMIT_MESSAGE$BROKEN_WARNING$MAINTAINERS"
if [[ -v DRY_RUN ]]
then