This operator can be used to create webhook on GitHub from a kubernetes object.
helm repo add operator-github-webhook https://camptocamp.github.io/operator-github-webhook/
helm install my-release operator-github-webhook
With the following k8s object to create a webhook on this repository.
Install the pre-commit hooks:
pip install pre-commit
pre-commit install --allow-missing-config