diff options
author | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-06-21 13:28:50 +0200 |
---|---|---|
committer | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-06-21 13:28:50 +0200 |
commit | 24ad2f4f0d9e8ebfd8133a572f29e52b74cd7dd5 (patch) | |
tree | 056c6dc55069e322db64875a1d16a65293a10ed8 /doc/administration/raketasks/web_hooks.md | |
parent | 0d287b06a6fa7a373df03378f9f1a048e5890a4f (diff) | |
download | gitlab-ce-documentation_restructure.tar.gz |
Restructure documentationdocumentation_restructure
The big plan in motion, see https://gitlab.com/gitlab-org/gitlab-ce/issues/3349
Diffstat (limited to 'doc/administration/raketasks/web_hooks.md')
-rw-r--r-- | doc/administration/raketasks/web_hooks.md | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/administration/raketasks/web_hooks.md b/doc/administration/raketasks/web_hooks.md new file mode 100644 index 00000000000..2ebf7c48f4e --- /dev/null +++ b/doc/administration/raketasks/web_hooks.md @@ -0,0 +1,45 @@ +# Webhooks + +## Add a webhook for **ALL** projects: + + # omnibus-gitlab + sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" + # source installations + bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" RAILS_ENV=production + +## Add a webhook for projects in a given **NAMESPACE**: + + # omnibus-gitlab + sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme + # source installations + bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production + +## Remove a webhook from **ALL** projects using: + + # omnibus-gitlab + sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" + # source installations + bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production + +## Remove a webhook from projects in a given **NAMESPACE**: + + # omnibus-gitlab + sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme + # source installations + bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production + +## List **ALL** webhooks: + + # omnibus-gitlab + sudo gitlab-rake gitlab:web_hook:list + # source installations + bundle exec rake gitlab:web_hook:list RAILS_ENV=production + +## List the webhooks from projects in a given **NAMESPACE**: + + # omnibus-gitlab + sudo gitlab-rake gitlab:web_hook:list NAMESPACE=/ + # source installations + bundle exec rake gitlab:web_hook:list NAMESPACE=/ RAILS_ENV=production + +> Note: `/` is the global namespace. |