{"action":"created","issue":{"url":"https://api.github.com/repos/support-project/knowledge/issues/69","labels_url":"https://api.github.com/repos/support-project/knowledge/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/support-project/knowledge/issues/69/comments","events_url":"https://api.github.com/repos/support-project/knowledge/issues/69/events","html_url":"https://github.com/support-project/knowledge/issues/69","id":94952950,"number":69,"title":"記事の投稿時・更新時などのイベント時に任意のスクリプトを実行したい","user":{"login":"griffin-stewie","id":22316,"avatar_url":"https://avatars.githubusercontent.com/u/22316?v=3","gravatar_id":"","url":"https://api.github.com/users/griffin-stewie","html_url":"https://github.com/griffin-stewie","followers_url":"https://api.github.com/users/griffin-stewie/followers","following_url":"https://api.github.com/users/griffin-stewie/following{/other_user}","gists_url":"https://api.github.com/users/griffin-stewie/gists{/gist_id}","starred_url":"https://api.github.com/users/griffin-stewie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griffin-stewie/subscriptions","organizations_url":"https://api.github.com/users/griffin-stewie/orgs","repos_url":"https://api.github.com/users/griffin-stewie/repos","events_url":"https://api.github.com/users/griffin-stewie/events{/privacy}","received_events_url":"https://api.github.com/users/griffin-stewie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/support-project/knowledge/labels/[%E5%88%86%E9%A1%9E]%201.%E6%A9%9F%E8%83%BD%E8%A6%81%E6%9C%9B","name":"[分類] 1.機能要望","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/support-project/knowledge/milestones/5","html_url":"https://github.com/support-project/knowledge/milestones/v0.7","labels_url":"https://api.github.com/repos/support-project/knowledge/milestones/5/labels","id":1364959,"number":5,"title":"v0.7","description":"- 0.7系の正式リリースまでに追加する機能とスケジュールを決める\r\n- 12月中旬くらいにリリース？","creator":{"login":"koda-masaru","id":10343517,"avatar_url":"https://avatars.githubusercontent.com/u/10343517?v=3","gravatar_id":"","url":"https://api.github.com/users/koda-masaru","html_url":"https://github.com/koda-masaru","followers_url":"https://api.github.com/users/koda-masaru/followers","following_url":"https://api.github.com/users/koda-masaru/following{/other_user}","gists_url":"https://api.github.com/users/koda-masaru/gists{/gist_id}","starred_url":"https://api.github.com/users/koda-masaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koda-masaru/subscriptions","organizations_url":"https://api.github.com/users/koda-masaru/orgs","repos_url":"https://api.github.com/users/koda-masaru/repos","events_url":"https://api.github.com/users/koda-masaru/events{/privacy}","received_events_url":"https://api.github.com/users/koda-masaru/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":0,"state":"open","created_at":"2015-10-19T21:41:59Z","updated_at":"2015-11-05T13:39:55Z","due_on":"2015-12-26T15:00:00Z","closed_at":null},"comments":3,"created_at":"2015-07-14T14:08:10Z","updated_at":"2015-11-11T02:34:45Z","closed_at":null,"body":"現在はメール通知が表題のようなイベント時に送信されるようになっているかと思います。\r\nメール以外にも各種のチャットサービスなどでも「こんな記事が投稿されましたよ」というような情報が通知できるといいなぁと感じています。\r\n\r\nknowledge 側に多数あるチャットサービスに対応させるというのは現実的ではないかと思っています。\r\nそこで、イベントをトリガーにスクリプトを実行できるような仕組みがあると、そのスクリプト内でユーザの好みに合わせた連携処理ができるのではないかと思いました。\r\n\r\nGitHub のような WebHook のような仕組みでもいいのかもしれません。\r\n\r\nご検討いただけるとありがたいです。"},"comment":{"url":"https://api.github.com/repos/support-project/knowledge/issues/comments/155638912","html_url":"https://github.com/support-project/knowledge/issues/69#issuecomment-155638912","issue_url":"https://api.github.com/repos/support-project/knowledge/issues/69","id":155638912,"user":{"login":"irgaly","id":1311446,"avatar_url":"https://avatars.githubusercontent.com/u/1311446?v=3","gravatar_id":"","url":"https://api.github.com/users/irgaly","html_url":"https://github.com/irgaly","followers_url":"https://api.github.com/users/irgaly/followers","following_url":"https://api.github.com/users/irgaly/following{/other_user}","gists_url":"https://api.github.com/users/irgaly/gists{/gist_id}","starred_url":"https://api.github.com/users/irgaly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irgaly/subscriptions","organizations_url":"https://api.github.com/users/irgaly/orgs","repos_url":"https://api.github.com/users/irgaly/repos","events_url":"https://api.github.com/users/irgaly/events{/privacy}","received_events_url":"https://api.github.com/users/irgaly/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T02:34:45Z","updated_at":"2015-11-11T02:34:45Z","body":"こちらのissueの通り、メール通知だけでなくWebHookできると嬉しいです。\r\n今のところ以下の対応策があるというところでしょうか。\r\n\r\n* Knowledgeが利用者の多いサービスそれぞれに個別に対応\r\n    * ChatWork/Slack... 設定は楽になるが、Knowledge側の機能維持が大変\r\n* Knowledgeから任意のスクリプトを実行できるようにする\r\n    * シェルスクリプトやrubyなど。自由度は高いが環境に依存することと、セキュリティに問題がないか気になります。\r\n* KnowledgeがWebHookの仕組みを用意する\r\n    * Knowldegeが任意のURLへデータを投げる仕組み。認証の仕組みは必要になる。\r\n"}}