'Github pre-receive hook with warning message on exit 0

I want to show a warning message on exit 0 for a brief period of time. How do I achieve this? At the moment the git UI doesn't show anything I echo in the script.

I'm trying to review the audit logs for a pre_receive_hook.warned_push documented below. I'm unable to trigger it.

https://docs.github.com/en/[email protected]/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise#pre_receive_hook-category-actions



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source