{"action":"created","issue":{"url":"https://api.github.com/repos/applikatoni/applikatoni/issues/21","labels_url":"https://api.github.com/repos/applikatoni/applikatoni/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/applikatoni/applikatoni/issues/21/comments","events_url":"https://api.github.com/repos/applikatoni/applikatoni/issues/21/events","html_url":"https://github.com/applikatoni/applikatoni/issues/21","id":120444378,"number":21,"title":"Generic HTTP Webhooks","user":{"login":"fabrik42","id":223822,"avatar_url":"https://avatars.githubusercontent.com/u/223822?v=3","gravatar_id":"","url":"https://api.github.com/users/fabrik42","html_url":"https://github.com/fabrik42","followers_url":"https://api.github.com/users/fabrik42/followers","following_url":"https://api.github.com/users/fabrik42/following{/other_user}","gists_url":"https://api.github.com/users/fabrik42/gists{/gist_id}","starred_url":"https://api.github.com/users/fabrik42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabrik42/subscriptions","organizations_url":"https://api.github.com/users/fabrik42/orgs","repos_url":"https://api.github.com/users/fabrik42/repos","events_url":"https://api.github.com/users/fabrik42/events{/privacy}","received_events_url":"https://api.github.com/users/fabrik42/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/applikatoni/applikatoni/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/applikatoni/applikatoni/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-04T17:06:21Z","updated_at":"2015-12-06T23:46:05Z","closed_at":null,"body":"Hi,\r\n\r\nI think it would be a cool idea, if we could support generic HTTP webhooks, like e.g. Travis CI.\r\nThis way, you would not need to write your own plugin for simple notifiers.\r\n\r\nHow I imagine this:\r\n* You can add a list of URLs as webhooks to your config file.\r\n* Every time the state of a deployment changes (start, success fail), the webhooks will be triggered.\r\n* Triggered means: A POST request will be sent to the URLs, with payload containing information about the deploy.\r\n* The payload should be very \tcomprehensive, basically including all kind of information that is interesting in the context of the deploy, so we can cover a lot of use cases.\r\n\r\nWe could add another section in the [configuration file](https://github.com/applikatoni/applikatoni/blob/master/server/configuration_example.json) to provide a list URLs that should be triggered, when the status of a deployment changes. Example:\r\n\r\n```\r\n{\r\n  applications: [{\r\n    targets: [{\r\n      webhooks: [\r\n        \"https://example.org/notifyme\",\r\n        \"https://anotherservice.org/notifications\"\r\n      ]\r\n    }]\r\n  }]\r\n}\r\n```\r\n\r\nThe [Travis CI docs](https://docs.travis-ci.com/user/notifications/#Webhook-notification) could be helpful. [Here is an example payload](https://gist.github.com/svenfuchs/1225015)."},"comment":{"url":"https://api.github.com/repos/applikatoni/applikatoni/issues/comments/162372442","html_url":"https://github.com/applikatoni/applikatoni/issues/21#issuecomment-162372442","issue_url":"https://api.github.com/repos/applikatoni/applikatoni/issues/21","id":162372442,"user":{"login":"HParker","id":4482399,"avatar_url":"https://avatars.githubusercontent.com/u/4482399?v=3","gravatar_id":"","url":"https://api.github.com/users/HParker","html_url":"https://github.com/HParker","followers_url":"https://api.github.com/users/HParker/followers","following_url":"https://api.github.com/users/HParker/following{/other_user}","gists_url":"https://api.github.com/users/HParker/gists{/gist_id}","starred_url":"https://api.github.com/users/HParker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HParker/subscriptions","organizations_url":"https://api.github.com/users/HParker/orgs","repos_url":"https://api.github.com/users/HParker/repos","events_url":"https://api.github.com/users/HParker/events{/privacy}","received_events_url":"https://api.github.com/users/HParker/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T23:46:05Z","updated_at":"2015-12-06T23:46:05Z","body":"Yeah, I agree. Good to have an idea if a http notifier is helpful before assuming existing notifiers share concepts."}}