send-email: check for repo before invoking hook