Use pre-receive hooks to enforce workflow standards within your organization. Pre-receive hooks require code to pass a pre-defined set of quality checks before the push is accepted into the repository.
Pre-receive hooks are scripts that run on the GitHub Enterprise server that you can use to implement quality checks.
To execute pre-receive hooks, use either the default pre-receive environment, or create a custom environment.
Use pre-receive hook scripts to create requirements for accepting or rejecting a push based on the contents.
Configure how people will use pre-receive hooks within their GitHub Enterprise appliance.