-
- Downloads
Added web hooks functionality
This commit includes: * Projects can have zero or more WebHooks. * The PostReceive job will ask a project to execute any web hooks defined for that project. * WebHook has a URL, we post Github-compatible JSON to that URL. * Failure to execute a WebHook will be silently ignored.
Showing
- Gemfile 2 additions, 0 deletionsGemfile
- Gemfile.lock 10 additions, 0 deletionsGemfile.lock
- app/models/project.rb 43 additions, 1 deletionapp/models/project.rb
- app/models/repository.rb 4 additions, 0 deletionsapp/models/repository.rb
- app/models/web_hook.rb 20 additions, 0 deletionsapp/models/web_hook.rb
- app/workers/post_receive.rb 4 additions, 1 deletionapp/workers/post_receive.rb
- db/migrate/20111214091851_create_web_hooks.rb 9 additions, 0 deletionsdb/migrate/20111214091851_create_web_hooks.rb
- db/schema.rb 15 additions, 1 deletiondb/schema.rb
- spec/factories.rb 4 additions, 0 deletionsspec/factories.rb
- spec/models/project_spec.rb 101 additions, 0 deletionsspec/models/project_spec.rb
- spec/models/web_hook_spec.rb 54 additions, 0 deletionsspec/models/web_hook_spec.rb
- spec/requests/projects_tree_perfomance_spec.rb 0 additions, 1 deletionspec/requests/projects_tree_perfomance_spec.rb
- spec/spec_helper.rb 3 additions, 0 deletionsspec/spec_helper.rb
- spec/workers/post_receive_spec.rb 26 additions, 0 deletionsspec/workers/post_receive_spec.rb
Loading
Please register or sign in to comment