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.
This commit is contained in:
parent
56fc53e8d8
commit
edab46e9fa
14 changed files with 295 additions and 4 deletions
|
@ -54,3 +54,7 @@ Factory.add(:key, Key) do |obj|
|
|||
obj.title = "Example key"
|
||||
obj.key = File.read(File.join(Rails.root, "db", "pkey.example"))
|
||||
end
|
||||
|
||||
Factory.add(:web_hook, WebHook) do |obj|
|
||||
obj.url = Faker::Internet.url
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue