How to create a GitLab website?

I read that GitLab is able to send messages to other servers via "web hooks," but I cannot find where it could be created.

Can someone point me in the right direction?

+26
git gitlab webhooks
Jun 17 '13 at 22:33
source share
5 answers

All the answers I found in the official documentation and the "Stack Overflow" for finding web hooks are incorrect. The admin area > hooks page does not contain web hooks. It contains system hooks that fire when creating / deleting projects and users and the like. This is not what you want.

To find your web hooks, go to the specific project > settings > web hooks (on sidebar in GitLab 6.1.0) page specific project > settings > web hooks (on sidebar in GitLab 6.1.0) . They will work after reception within the framework of the project in question. You can use a service such as RequestBin to see how useful information looks and make sure that you are debugging it correctly for debugging purposes.

+50
Sep 19 '13 at 17:41
source share

You can see an example of the GitLab system hook with web_hook.rb in this GitHub project .

In gitlab, as admin, go to the " Hooks " tab, create a hook like: http://your.ip.goes.here:8000

or change the port in line 175 of the script.

For web interceptors, see Jamey for a more accurate answer .

You can check the result of the webhook using a service like RequestBin .
Another example of webhook interpretation: this question .

Remember there are a few questions left with gitlab webhook:

+4
Jun 18 '13 at 6:54 on
source share

With version 8.16.1, I found web hooks under

 specific project > settings > integrations 

enter image description here

+3
Jan 25 '17 at 20:25
source share

For group level hooks:

visit: https://gitlab.com/groups/<yourgroup>/hooks

For group level hooks:

visit: https://gitlab.com/yourgroup/yourproject/hooks

+2
Oct. 20 '16 at 19:24
source share

I recommend using GitLabForm - the configuration as a code tool for GitLab - to configure webhooks with code as follows:

 project_settings: my_group/my_project: hooks: hooks: 'http://127.0.0.1:5000/hooks/my-hook-endpoint': push_events: false # this is set to true by GitLab API by default merge_requests_events: true token: some_secret_auth_token 

Disclosure: I wrote this tool, and my company opened it.

+2
Aug 21 '17 at 20:00
source share



All Articles