Fail CI/CD pipeline when any files are unowned
@@ -26,10 +26,7 @@ echo -e "--- :octocat::broken_heart: Finding 'unloved' files"
# Again, violations don't change the exit code
unloved=$(github-codeowners audit --only-git --unloved)
if [ -n "${unloved}" ]; then
+ echo "+++ :hurtrealbad: Found unowned files; please update .github/CODEOWNERS!"
echo "${unloved}"
- # TODO: Eventually, we will want to fail if there are unowned
- # files. Due to a bug (?) in the Buildkite docker plugin, it
- # doesn't appear that we can soft-fail on an exit status other
- # than 1. So, for now, we'll just let this pass
- # exit 2
+ exit 2
fi
