pub fn check_push(remote: &str, url: &str, input: &str) -> i32
The publish guard’s part of pre-push <remote> <url>: 0 to go on, anything else refuses the push.
pre-push <remote> <url>