2016-03-10 14:48:29 -05:00
|
|
|
# Webhooks
|
2014-05-27 08:12:15 -04:00
|
|
|
|
2016-03-10 14:48:29 -05:00
|
|
|
## Add a webhook for **ALL** projects:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
2014-06-23 05:06:25 -04:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook"
|
2015-01-28 01:50:31 -05:00
|
|
|
# source installations
|
2014-08-18 13:08:46 -04:00
|
|
|
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" RAILS_ENV=production
|
2013-06-05 10:32:22 -04:00
|
|
|
|
2016-03-10 14:48:29 -05:00
|
|
|
## Add a webhook for projects in a given **NAMESPACE**:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
2014-06-23 05:06:25 -04:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme
|
2015-01-28 01:50:31 -05:00
|
|
|
# source installations
|
2014-08-18 13:08:46 -04:00
|
|
|
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
|
2013-06-05 10:32:22 -04:00
|
|
|
|
2016-03-10 14:48:29 -05:00
|
|
|
## Remove a webhook from **ALL** projects using:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
2014-06-23 05:06:25 -04:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook"
|
2015-01-28 01:50:31 -05:00
|
|
|
# source installations
|
2014-08-18 13:08:46 -04:00
|
|
|
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production
|
2013-06-05 10:32:22 -04:00
|
|
|
|
2016-03-10 14:48:29 -05:00
|
|
|
## Remove a webhook from projects in a given **NAMESPACE**:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
2014-06-23 05:06:25 -04:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme
|
2015-01-28 01:50:31 -05:00
|
|
|
# source installations
|
2014-08-18 13:08:46 -04:00
|
|
|
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
|
2013-06-05 10:32:22 -04:00
|
|
|
|
2016-03-10 14:48:29 -05:00
|
|
|
## List **ALL** webhooks:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
2014-06-23 05:06:25 -04:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:list
|
2015-01-28 01:50:31 -05:00
|
|
|
# source installations
|
2014-08-18 13:08:46 -04:00
|
|
|
bundle exec rake gitlab:web_hook:list RAILS_ENV=production
|
2013-06-05 10:32:22 -04:00
|
|
|
|
2016-03-10 14:48:29 -05:00
|
|
|
## List the webhooks from projects in a given **NAMESPACE**:
|
2013-06-05 10:32:22 -04:00
|
|
|
|
2014-06-23 05:06:25 -04:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:list NAMESPACE=/
|
2015-01-28 01:50:31 -05:00
|
|
|
# source installations
|
2014-08-18 13:08:46 -04:00
|
|
|
bundle exec rake gitlab:web_hook:list NAMESPACE=/ RAILS_ENV=production
|
2013-06-05 10:32:22 -04:00
|
|
|
|
|
|
|
> Note: `/` is the global namespace.
|