{"action":"created","comment":{"url":"https://api.github.com/repos/discourse/discourse/pulls/comments/69552894","id":69552894,"diff_hunk":"@@ -0,0 +1,98 @@\n+import RestModel from 'discourse/models/rest';\n+import { default as computed, observes } from 'ember-addons/ember-computed-decorators';\n+\n+export default RestModel.extend({\n+  // a better way to sideload the list?\n+  WILDCARD_EVENT: {\n+    id: 1,\n+    name: 'wildcard'\n+  },\n+  EVENTS: Em.A([{\n+    id: 2,\n+    name: 'topic'\n+  }, {\n+    id: 3,\n+    name: 'post'\n+  }, {\n+    id: 4,\n+    name: 'user'\n+  }]),\n+\n+  contentTypes: Em.A([{\n+    id: 1,\n+    name: 'application/json'\n+  }, {\n+    id: 2,\n+    name: 'application/x-www-form-urlencoded'\n+  }]),\n+  content_type: 1, // prefer json,\n+  web_hook_event_types: Em.A([{ // default event type\n+    id: 3,\n+    name: 'post'\n+  }]),\n+  categoryFilters: Em.A(),\n+\n+  // FIXME: When enter event details from list, this observes are not used\n+  // which results in an empty input box\n+  @observes('category_ids')\n+  updateCategoryFilters() {\n+    this.set(\"categoryFilters\", Discourse.Category.findByIds(this.get('category_ids')));","path":"app/assets/javascripts/admin/models/web-hook.js.es6","position":39,"original_position":39,"commit_id":"4daed3b6f3bb2e008e21c39e40ed6e8c3ddf068a","original_commit_id":"4daed3b6f3bb2e008e21c39e40ed6e8c3ddf068a","user":{"login":"tgxworld","id":4335742,"avatar_url":"https://avatars.githubusercontent.com/u/4335742?v=3","gravatar_id":"","url":"https://api.github.com/users/tgxworld","html_url":"https://github.com/tgxworld","followers_url":"https://api.github.com/users/tgxworld/followers","following_url":"https://api.github.com/users/tgxworld/following{/other_user}","gists_url":"https://api.github.com/users/tgxworld/gists{/gist_id}","starred_url":"https://api.github.com/users/tgxworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgxworld/subscriptions","organizations_url":"https://api.github.com/users/tgxworld/orgs","repos_url":"https://api.github.com/users/tgxworld/repos","events_url":"https://api.github.com/users/tgxworld/events{/privacy}","received_events_url":"https://api.github.com/users/tgxworld/received_events","type":"User","site_admin":false},"body":"`import Category from ...` instead of using `Discourse.Category`","created_at":"2016-07-05T12:21:30Z","updated_at":"2016-07-05T12:21:30Z","html_url":"https://github.com/discourse/discourse/pull/4256#discussion_r69552894","pull_request_url":"https://api.github.com/repos/discourse/discourse/pulls/4256","_links":{"self":{"href":"https://api.github.com/repos/discourse/discourse/pulls/comments/69552894"},"html":{"href":"https://github.com/discourse/discourse/pull/4256#discussion_r69552894"},"pull_request":{"href":"https://api.github.com/repos/discourse/discourse/pulls/4256"}}},"pull_request":{"url":"https://api.github.com/repos/discourse/discourse/pulls/4256","id":73165464,"html_url":"https://github.com/discourse/discourse/pull/4256","diff_url":"https://github.com/discourse/discourse/pull/4256.diff","patch_url":"https://github.com/discourse/discourse/pull/4256.patch","issue_url":"https://api.github.com/repos/discourse/discourse/issues/4256","number":4256,"state":"open","locked":false,"title":"Webhooks Milestone1","user":{"login":"fantasticfears","id":297343,"avatar_url":"https://avatars.githubusercontent.com/u/297343?v=3","gravatar_id":"","url":"https://api.github.com/users/fantasticfears","html_url":"https://github.com/fantasticfears","followers_url":"https://api.github.com/users/fantasticfears/followers","following_url":"https://api.github.com/users/fantasticfears/following{/other_user}","gists_url":"https://api.github.com/users/fantasticfears/gists{/gist_id}","starred_url":"https://api.github.com/users/fantasticfears/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantasticfears/subscriptions","organizations_url":"https://api.github.com/users/fantasticfears/orgs","repos_url":"https://api.github.com/users/fantasticfears/repos","events_url":"https://api.github.com/users/fantasticfears/events{/privacy}","received_events_url":"https://api.github.com/users/fantasticfears/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-09T06:57:11Z","updated_at":"2016-07-05T12:21:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abcd7ad2f5ca2a43c5ab75e8c9535008c85dbd62","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/discourse/discourse/pulls/4256/commits","review_comments_url":"https://api.github.com/repos/discourse/discourse/pulls/4256/comments","review_comment_url":"https://api.github.com/repos/discourse/discourse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/discourse/discourse/issues/4256/comments","statuses_url":"https://api.github.com/repos/discourse/discourse/statuses/4daed3b6f3bb2e008e21c39e40ed6e8c3ddf068a","head":{"label":"fantasticfears:webhooks","ref":"webhooks","sha":"4daed3b6f3bb2e008e21c39e40ed6e8c3ddf068a","user":{"login":"fantasticfears","id":297343,"avatar_url":"https://avatars.githubusercontent.com/u/297343?v=3","gravatar_id":"","url":"https://api.github.com/users/fantasticfears","html_url":"https://github.com/fantasticfears","followers_url":"https://api.github.com/users/fantasticfears/followers","following_url":"https://api.github.com/users/fantasticfears/following{/other_user}","gists_url":"https://api.github.com/users/fantasticfears/gists{/gist_id}","starred_url":"https://api.github.com/users/fantasticfears/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantasticfears/subscriptions","organizations_url":"https://api.github.com/users/fantasticfears/orgs","repos_url":"https://api.github.com/users/fantasticfears/repos","events_url":"https://api.github.com/users/fantasticfears/events{/privacy}","received_events_url":"https://api.github.com/users/fantasticfears/received_events","type":"User","site_admin":false},"repo":{"id":17177048,"name":"discourse","full_name":"fantasticfears/discourse","owner":{"login":"fantasticfears","id":297343,"avatar_url":"https://avatars.githubusercontent.com/u/297343?v=3","gravatar_id":"","url":"https://api.github.com/users/fantasticfears","html_url":"https://github.com/fantasticfears","followers_url":"https://api.github.com/users/fantasticfears/followers","following_url":"https://api.github.com/users/fantasticfears/following{/other_user}","gists_url":"https://api.github.com/users/fantasticfears/gists{/gist_id}","starred_url":"https://api.github.com/users/fantasticfears/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantasticfears/subscriptions","organizations_url":"https://api.github.com/users/fantasticfears/orgs","repos_url":"https://api.github.com/users/fantasticfears/repos","events_url":"https://api.github.com/users/fantasticfears/events{/privacy}","received_events_url":"https://api.github.com/users/fantasticfears/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fantasticfears/discourse","description":"A platform for community discussion. Free, open, simple.","fork":true,"url":"https://api.github.com/repos/fantasticfears/discourse","forks_url":"https://api.github.com/repos/fantasticfears/discourse/forks","keys_url":"https://api.github.com/repos/fantasticfears/discourse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fantasticfears/discourse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fantasticfears/discourse/teams","hooks_url":"https://api.github.com/repos/fantasticfears/discourse/hooks","issue_events_url":"https://api.github.com/repos/fantasticfears/discourse/issues/events{/number}","events_url":"https://api.github.com/repos/fantasticfears/discourse/events","assignees_url":"https://api.github.com/repos/fantasticfears/discourse/assignees{/user}","branches_url":"https://api.github.com/repos/fantasticfears/discourse/branches{/branch}","tags_url":"https://api.github.com/repos/fantasticfears/discourse/tags","blobs_url":"https://api.github.com/repos/fantasticfears/discourse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fantasticfears/discourse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fantasticfears/discourse/git/refs{/sha}","trees_url":"https://api.github.com/repos/fantasticfears/discourse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fantasticfears/discourse/statuses/{sha}","languages_url":"https://api.github.com/repos/fantasticfears/discourse/languages","stargazers_url":"https://api.github.com/repos/fantasticfears/discourse/stargazers","contributors_url":"https://api.github.com/repos/fantasticfears/discourse/contributors","subscribers_url":"https://api.github.com/repos/fantasticfears/discourse/subscribers","subscription_url":"https://api.github.com/repos/fantasticfears/discourse/subscription","commits_url":"https://api.github.com/repos/fantasticfears/discourse/commits{/sha}","git_commits_url":"https://api.github.com/repos/fantasticfears/discourse/git/commits{/sha}","comments_url":"https://api.github.com/repos/fantasticfears/discourse/comments{/number}","issue_comment_url":"https://api.github.com/repos/fantasticfears/discourse/issues/comments{/number}","contents_url":"https://api.github.com/repos/fantasticfears/discourse/contents/{+path}","compare_url":"https://api.github.com/repos/fantasticfears/discourse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fantasticfears/discourse/merges","archive_url":"https://api.github.com/repos/fantasticfears/discourse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fantasticfears/discourse/downloads","issues_url":"https://api.github.com/repos/fantasticfears/discourse/issues{/number}","pulls_url":"https://api.github.com/repos/fantasticfears/discourse/pulls{/number}","milestones_url":"https://api.github.com/repos/fantasticfears/discourse/milestones{/number}","notifications_url":"https://api.github.com/repos/fantasticfears/discourse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fantasticfears/discourse/labels{/name}","releases_url":"https://api.github.com/repos/fantasticfears/discourse/releases{/id}","deployments_url":"https://api.github.com/repos/fantasticfears/discourse/deployments","created_at":"2014-02-25T15:10:17Z","updated_at":"2015-03-19T07:14:31Z","pushed_at":"2016-07-04T12:12:03Z","git_url":"git://github.com/fantasticfears/discourse.git","ssh_url":"git@github.com:fantasticfears/discourse.git","clone_url":"https://github.com/fantasticfears/discourse.git","svn_url":"https://github.com/fantasticfears/discourse","homepage":"http://www.discourse.org","size":132533,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"discourse:master","ref":"master","sha":"8053bde1a2aa1df1371075781267d952c5a9c8f5","user":{"login":"discourse","id":3220138,"avatar_url":"https://avatars.githubusercontent.com/u/3220138?v=3","gravatar_id":"","url":"https://api.github.com/users/discourse","html_url":"https://github.com/discourse","followers_url":"https://api.github.com/users/discourse/followers","following_url":"https://api.github.com/users/discourse/following{/other_user}","gists_url":"https://api.github.com/users/discourse/gists{/gist_id}","starred_url":"https://api.github.com/users/discourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discourse/subscriptions","organizations_url":"https://api.github.com/users/discourse/orgs","repos_url":"https://api.github.com/users/discourse/repos","events_url":"https://api.github.com/users/discourse/events{/privacy}","received_events_url":"https://api.github.com/users/discourse/received_events","type":"Organization","site_admin":false},"repo":{"id":7569578,"name":"discourse","full_name":"discourse/discourse","owner":{"login":"discourse","id":3220138,"avatar_url":"https://avatars.githubusercontent.com/u/3220138?v=3","gravatar_id":"","url":"https://api.github.com/users/discourse","html_url":"https://github.com/discourse","followers_url":"https://api.github.com/users/discourse/followers","following_url":"https://api.github.com/users/discourse/following{/other_user}","gists_url":"https://api.github.com/users/discourse/gists{/gist_id}","starred_url":"https://api.github.com/users/discourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discourse/subscriptions","organizations_url":"https://api.github.com/users/discourse/orgs","repos_url":"https://api.github.com/users/discourse/repos","events_url":"https://api.github.com/users/discourse/events{/privacy}","received_events_url":"https://api.github.com/users/discourse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/discourse/discourse","description":"A platform for community discussion. Free, open, simple.","fork":false,"url":"https://api.github.com/repos/discourse/discourse","forks_url":"https://api.github.com/repos/discourse/discourse/forks","keys_url":"https://api.github.com/repos/discourse/discourse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/discourse/discourse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/discourse/discourse/teams","hooks_url":"https://api.github.com/repos/discourse/discourse/hooks","issue_events_url":"https://api.github.com/repos/discourse/discourse/issues/events{/number}","events_url":"https://api.github.com/repos/discourse/discourse/events","assignees_url":"https://api.github.com/repos/discourse/discourse/assignees{/user}","branches_url":"https://api.github.com/repos/discourse/discourse/branches{/branch}","tags_url":"https://api.github.com/repos/discourse/discourse/tags","blobs_url":"https://api.github.com/repos/discourse/discourse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/discourse/discourse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/discourse/discourse/git/refs{/sha}","trees_url":"https://api.github.com/repos/discourse/discourse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/discourse/discourse/statuses/{sha}","languages_url":"https://api.github.com/repos/discourse/discourse/languages","stargazers_url":"https://api.github.com/repos/discourse/discourse/stargazers","contributors_url":"https://api.github.com/repos/discourse/discourse/contributors","subscribers_url":"https://api.github.com/repos/discourse/discourse/subscribers","subscription_url":"https://api.github.com/repos/discourse/discourse/subscription","commits_url":"https://api.github.com/repos/discourse/discourse/commits{/sha}","git_commits_url":"https://api.github.com/repos/discourse/discourse/git/commits{/sha}","comments_url":"https://api.github.com/repos/discourse/discourse/comments{/number}","issue_comment_url":"https://api.github.com/repos/discourse/discourse/issues/comments{/number}","contents_url":"https://api.github.com/repos/discourse/discourse/contents/{+path}","compare_url":"https://api.github.com/repos/discourse/discourse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/discourse/discourse/merges","archive_url":"https://api.github.com/repos/discourse/discourse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/discourse/discourse/downloads","issues_url":"https://api.github.com/repos/discourse/discourse/issues{/number}","pulls_url":"https://api.github.com/repos/discourse/discourse/pulls{/number}","milestones_url":"https://api.github.com/repos/discourse/discourse/milestones{/number}","notifications_url":"https://api.github.com/repos/discourse/discourse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/discourse/discourse/labels{/name}","releases_url":"https://api.github.com/repos/discourse/discourse/releases{/id}","deployments_url":"https://api.github.com/repos/discourse/discourse/deployments","created_at":"2013-01-12T00:25:55Z","updated_at":"2016-07-05T11:15:16Z","pushed_at":"2016-07-05T12:14:06Z","git_url":"git://github.com/discourse/discourse.git","ssh_url":"git@github.com:discourse/discourse.git","clone_url":"https://github.com/discourse/discourse.git","svn_url":"https://github.com/discourse/discourse","homepage":"http://www.discourse.org","size":192565,"stargazers_count":18657,"watchers_count":18657,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4951,"mirror_url":null,"open_issues_count":12,"forks":4951,"open_issues":12,"watchers":18657,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/discourse/discourse/pulls/4256"},"html":{"href":"https://github.com/discourse/discourse/pull/4256"},"issue":{"href":"https://api.github.com/repos/discourse/discourse/issues/4256"},"comments":{"href":"https://api.github.com/repos/discourse/discourse/issues/4256/comments"},"review_comments":{"href":"https://api.github.com/repos/discourse/discourse/pulls/4256/comments"},"review_comment":{"href":"https://api.github.com/repos/discourse/discourse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/discourse/discourse/pulls/4256/commits"},"statuses":{"href":"https://api.github.com/repos/discourse/discourse/statuses/4daed3b6f3bb2e008e21c39e40ed6e8c3ddf068a"}}}}
{"actor":{"display_login":"tgxworld"}}