You can configure a pre receive hook or a pipeline...
# voxpupuli
v
You can configure a pre receive hook or a pipeline job