GitSwarm 2016.3-2 Documentation


Webhooks

Add a webhook for ALL projects:

# package installations
sudo gitswarm-rake gitswarm:web_hook:add URL="http://example.com/hook"
# source installations
bundle exec rake gitswarm:web_hook:add URL="http://example.com/hook" RAILS_ENV=production

Add a webhook for projects in a given NAMESPACE:

# package installations
sudo gitswarm-rake gitswarm:web_hook:add URL="http://example.com/hook" NAMESPACE=acme
# source installations
bundle exec rake gitswarm:web_hook:add URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production

Remove a webhook from ALL projects using:

# package installations
sudo gitswarm-rake gitswarm:web_hook:rm URL="http://example.com/hook"
# source installations
bundle exec rake gitswarm:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production

Remove a webhook from projects in a given NAMESPACE:

# package installations
sudo gitswarm-rake gitswarm:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme
# source installations
bundle exec rake gitswarm:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production

List ALL webhooks:

# package installations
sudo gitswarm-rake gitswarm:web_hook:list
# source installations
bundle exec rake gitswarm:web_hook:list RAILS_ENV=production

List the webhooks from projects in a given NAMESPACE:

# package installations
sudo gitswarm-rake gitswarm:web_hook:list NAMESPACE=/
# source installations
bundle exec rake gitswarm:web_hook:list NAMESPACE=/ RAILS_ENV=production

Note: / is the global namespace.