gitgitlabwebhooks

Gitlab: webhook event on create branch


Is it possible to run a webhook when a branch is created?

If this is not possible then does a hook fire in git when a branch is created either via git branch or git checkout -b or any other way.

Regards John


Solution

  • You can simply use Gitlab's push hook and check if the commit-id of before is 0000000000000000000000000000000000000000