Debian Codegraph @

.github/scripts/dragon-bureaucrat

raw
1 #!/usr/bin/env bash
2
3 # This script invokes the forbidden power of an ancient evil in order to defend
4 # the one thing we hold most dear: bureaucratic norms
5
6 # Many thanks to Phabricator (and Evan) for the vintage ASCII art (Apache 2.0)
7 # <https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/scripts/repository/commit_hook.php#L203>
8
9 rejection_reason=${1:-"No reason provided. The Dragons have spoken."}
10
11 cat >&2 <<'EOF'
12 +---------------------------------------------------------------+
13 | * * * PUSH REJECTED BY EVIL DRAGON BUREAUCRATS * * * |
14 +---------------------------------------------------------------+
15 \
16 \ ^ /^
17 \ / \ // \
18 \ |\___/| / \// .\
19 \ /V V \__ / // | \ \ *----*
20 / / \/_/ // | \ \ \ |
21 @___@` \/_ // | \ \ \/\ \
22 0/0/| \/_ // | \ \ \ \
23 0/0/0/0/| \/// | \ \ | |
24 0/0/0/0/0/_|_ / ( // | \ _\ | /
25 0/0/0/0/0/0/`/,_ _ _/ ) ; -. | _ _\.-~ / /
26 ,-} _ *-.|.-~-. .~ ~
27 * \__/ `/\ / ~-. _ .-~ /
28 \____(Oo) *. } { /
29 ( (..) .----~-.\ \-` .~
30 //___\\\\ \ DENIED! ///.----..< \ _ -~
31 // \\\\ ///-._ _ _ _ _ _ _{^ - - - - ~
32
33 EOF
34 cat >&2 <<EOF
35 $rejection_reason
36
37 EOF
38
39 exit 1