2014-09-02 18:07:02 +05:30
|
|
|
# Web hooks
|
|
|
|
|
|
|
|
## Add a web hook for **ALL** projects:
|
|
|
|
|
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook"
|
2015-04-26 12:48:37 +05:30
|
|
|
# source installations
|
2014-09-02 18:07:02 +05:30
|
|
|
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" RAILS_ENV=production
|
|
|
|
|
|
|
|
## Add a web hook for projects in a given **NAMESPACE**:
|
|
|
|
|
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme
|
2015-04-26 12:48:37 +05:30
|
|
|
# source installations
|
2014-09-02 18:07:02 +05:30
|
|
|
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
|
|
|
|
|
|
|
|
## Remove a web hook from **ALL** projects using:
|
|
|
|
|
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook"
|
2015-04-26 12:48:37 +05:30
|
|
|
# source installations
|
2014-09-02 18:07:02 +05:30
|
|
|
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production
|
|
|
|
|
|
|
|
## Remove a web hook from projects in a given **NAMESPACE**:
|
|
|
|
|
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme
|
2015-04-26 12:48:37 +05:30
|
|
|
# source installations
|
2014-09-02 18:07:02 +05:30
|
|
|
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
|
|
|
|
|
|
|
|
## List **ALL** web hooks:
|
|
|
|
|
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:list
|
2015-04-26 12:48:37 +05:30
|
|
|
# source installations
|
2014-09-02 18:07:02 +05:30
|
|
|
bundle exec rake gitlab:web_hook:list RAILS_ENV=production
|
|
|
|
|
|
|
|
## List the web hooks from projects in a given **NAMESPACE**:
|
|
|
|
|
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:list NAMESPACE=/
|
2015-04-26 12:48:37 +05:30
|
|
|
# source installations
|
2014-09-02 18:07:02 +05:30
|
|
|
bundle exec rake gitlab:web_hook:list NAMESPACE=/ RAILS_ENV=production
|
|
|
|
|
|
|
|
> Note: `/` is the global namespace.
|