2014-05-27 08:12:15 -04:00
|
|
|
# Web hooks
|
|
|
|
|
2014-04-24 18:48:22 -04:00
|
|
|
## Add a web hook for **ALL** projects:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
|
|
|
RAILS_ENV=production bundle exec rake gitlab:web_hook:add URL="http://example.com/hook"
|
|
|
|
|
2014-04-24 18:48:22 -04:00
|
|
|
## Add a web hook for projects in a given **NAMESPACE**:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
|
|
|
RAILS_ENV=production bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme
|
|
|
|
|
2014-04-24 18:48:22 -04:00
|
|
|
## Remove a web hook from **ALL** projects using:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
|
|
|
RAILS_ENV=production bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook"
|
|
|
|
|
2014-04-24 18:48:22 -04:00
|
|
|
## Remove a web hook from projects in a given **NAMESPACE**:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
|
|
|
RAILS_ENV=production bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme
|
|
|
|
|
2014-04-24 18:48:22 -04:00
|
|
|
## List **ALL** web hooks:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
|
|
|
RAILS_ENV=production bundle exec rake gitlab:web_hook:list
|
|
|
|
|
2014-04-24 18:48:22 -04:00
|
|
|
## List the web hooks from projects in a given **NAMESPACE**:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
|
|
|
RAILS_ENV=production bundle exec rake gitlab:web_hook:list NAMESPACE=/
|
|
|
|
|
|
|
|
> Note: `/` is the global namespace.
|