blob: 4890051df4ce1937770f090865dc359a9d501913 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
EXIT_CODE=0
output=$(DANGER_LOCAL_BASE="origin/main" bundle exec rake danger_local)
echo "${output}"
[[ "${output}" =~ "The commit subject must" ]] && EXIT_CODE=1
exit "${EXIT_CODE}"
|