gitlab-org--gitlab-foss/doc/raketasks/web_hooks.md

46 lines
1.6 KiB
Markdown
Raw Normal View History

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:
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook"
# source installations or cookbook
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" RAILS_ENV=production
2014-04-24 18:48:22 -04:00
## 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
# source installations or cookbook
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
2014-04-24 18:48:22 -04:00
## Remove a web hook from **ALL** projects using:
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook"
# source installations or cookbook
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production
2014-04-24 18:48:22 -04:00
## 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
# source installations or cookbook
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
2014-04-24 18:48:22 -04:00
## List **ALL** web hooks:
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:list
# source installations or cookbook
bundle exec rake gitlab:web_hook:list RAILS_ENV=production
2014-04-24 18:48:22 -04:00
## List the web hooks from projects in a given **NAMESPACE**:
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:list NAMESPACE=/
# source installations or cookbook
bundle exec rake gitlab:web_hook:list NAMESPACE=/ RAILS_ENV=production
> Note: `/` is the global namespace.