{"action":"created","comment":{"url":"https://api.github.com/repos/typesafehub/project-doc/pulls/comments/39802926","id":39802926,"diff_hunk":"@@ -73,31 +84,38 @@ class Application @Inject() (\n   private final val MacAlgorithm = \"HmacSHA1\"\n   private final val GitHubSignature = \"X-Hub-Signature\"\n \n-  private val docRenderers = Map(\"conductr\" -> conductrDocRenderer)\n+  private val docRenderers = Map(\n+    \"conductr\" -> Map(\n+      \"\" -> conductrDocRenderer,\n+      \"1.0.x\" -> conductrDocRenderer10,\n+      \"1.1.x\" -> conductrDocRenderer11)\n+  )\n \n   private val secret = new SecretKeySpec(settings.play.crypto.secret.getBytes, MacAlgorithm)\n \n+  private val webhookRef = (JsPath \\ \"ref\").read[String]","path":"app/controllers/Application.scala","position":118,"original_position":118,"commit_id":"70c6583668191141d5791fb5e4e159683cdb414a","original_commit_id":"70c6583668191141d5791fb5e4e159683cdb414a","user":{"login":"huntc","id":694893,"avatar_url":"https://avatars.githubusercontent.com/u/694893?v=3","gravatar_id":"","url":"https://api.github.com/users/huntc","html_url":"https://github.com/huntc","followers_url":"https://api.github.com/users/huntc/followers","following_url":"https://api.github.com/users/huntc/following{/other_user}","gists_url":"https://api.github.com/users/huntc/gists{/gist_id}","starred_url":"https://api.github.com/users/huntc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huntc/subscriptions","organizations_url":"https://api.github.com/users/huntc/orgs","repos_url":"https://api.github.com/users/huntc/repos","events_url":"https://api.github.com/users/huntc/events{/privacy}","received_events_url":"https://api.github.com/users/huntc/received_events","type":"User","site_admin":false},"body":"Will do. \n\n\n> On 18 Sep 2015, at 7:12 am, Markus Jura <notifications@github.com> wrote:\n> \n> In app/controllers/Application.scala:\n> \n> >  \n> >    private val secret = new SecretKeySpec(settings.play.crypto.secret.getBytes, MacAlgorithm)\n> >  \n> > +  private val webhookRef = (JsPath \\ \"ref\").read[String]\n> Would put secret and webhookRef close to the point where it is used. In this case above the update method. This is more readable when looking the first time on it.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n","created_at":"2015-09-17T21:43:44Z","updated_at":"2015-09-17T21:43:44Z","html_url":"https://github.com/typesafehub/project-doc/pull/42#discussion_r39802926","pull_request_url":"https://api.github.com/repos/typesafehub/project-doc/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/typesafehub/project-doc/pulls/comments/39802926"},"html":{"href":"https://github.com/typesafehub/project-doc/pull/42#discussion_r39802926"},"pull_request":{"href":"https://api.github.com/repos/typesafehub/project-doc/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/typesafehub/project-doc/pulls/42","id":45149238,"html_url":"https://github.com/typesafehub/project-doc/pull/42","diff_url":"https://github.com/typesafehub/project-doc/pull/42.diff","patch_url":"https://github.com/typesafehub/project-doc/pull/42.patch","issue_url":"https://api.github.com/repos/typesafehub/project-doc/issues/42","number":42,"state":"open","locked":false,"title":"WIP - DO NOT MERGE - Interpret a version from a ref","user":{"login":"huntc","id":694893,"avatar_url":"https://avatars.githubusercontent.com/u/694893?v=3","gravatar_id":"","url":"https://api.github.com/users/huntc","html_url":"https://github.com/huntc","followers_url":"https://api.github.com/users/huntc/followers","following_url":"https://api.github.com/users/huntc/following{/other_user}","gists_url":"https://api.github.com/users/huntc/gists{/gist_id}","starred_url":"https://api.github.com/users/huntc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huntc/subscriptions","organizations_url":"https://api.github.com/users/huntc/orgs","repos_url":"https://api.github.com/users/huntc/repos","events_url":"https://api.github.com/users/huntc/events{/privacy}","received_events_url":"https://api.github.com/users/huntc/received_events","type":"User","site_admin":false},"body":"Use the ref field of a web hook to determine a version number. The web hook conveys which branch should be updated.\r\n\r\nFixed up a failing test also.","created_at":"2015-09-16T09:29:21Z","updated_at":"2015-09-17T21:43:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"809642edcc3d8307dc6e645eb16a1cc0fd365804","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/typesafehub/project-doc/pulls/42/commits","review_comments_url":"https://api.github.com/repos/typesafehub/project-doc/pulls/42/comments","review_comment_url":"https://api.github.com/repos/typesafehub/project-doc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/typesafehub/project-doc/issues/42/comments","statuses_url":"https://api.github.com/repos/typesafehub/project-doc/statuses/70c6583668191141d5791fb5e4e159683cdb414a","head":{"label":"huntc:more-versions","ref":"more-versions","sha":"70c6583668191141d5791fb5e4e159683cdb414a","user":{"login":"huntc","id":694893,"avatar_url":"https://avatars.githubusercontent.com/u/694893?v=3","gravatar_id":"","url":"https://api.github.com/users/huntc","html_url":"https://github.com/huntc","followers_url":"https://api.github.com/users/huntc/followers","following_url":"https://api.github.com/users/huntc/following{/other_user}","gists_url":"https://api.github.com/users/huntc/gists{/gist_id}","starred_url":"https://api.github.com/users/huntc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huntc/subscriptions","organizations_url":"https://api.github.com/users/huntc/orgs","repos_url":"https://api.github.com/users/huntc/repos","events_url":"https://api.github.com/users/huntc/events{/privacy}","received_events_url":"https://api.github.com/users/huntc/received_events","type":"User","site_admin":false},"repo":{"id":32923864,"name":"project-doc","full_name":"huntc/project-doc","owner":{"login":"huntc","id":694893,"avatar_url":"https://avatars.githubusercontent.com/u/694893?v=3","gravatar_id":"","url":"https://api.github.com/users/huntc","html_url":"https://github.com/huntc","followers_url":"https://api.github.com/users/huntc/followers","following_url":"https://api.github.com/users/huntc/following{/other_user}","gists_url":"https://api.github.com/users/huntc/gists{/gist_id}","starred_url":"https://api.github.com/users/huntc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huntc/subscriptions","organizations_url":"https://api.github.com/users/huntc/orgs","repos_url":"https://api.github.com/users/huntc/repos","events_url":"https://api.github.com/users/huntc/events{/privacy}","received_events_url":"https://api.github.com/users/huntc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/huntc/project-doc","description":null,"fork":false,"url":"https://api.github.com/repos/huntc/project-doc","forks_url":"https://api.github.com/repos/huntc/project-doc/forks","keys_url":"https://api.github.com/repos/huntc/project-doc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huntc/project-doc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huntc/project-doc/teams","hooks_url":"https://api.github.com/repos/huntc/project-doc/hooks","issue_events_url":"https://api.github.com/repos/huntc/project-doc/issues/events{/number}","events_url":"https://api.github.com/repos/huntc/project-doc/events","assignees_url":"https://api.github.com/repos/huntc/project-doc/assignees{/user}","branches_url":"https://api.github.com/repos/huntc/project-doc/branches{/branch}","tags_url":"https://api.github.com/repos/huntc/project-doc/tags","blobs_url":"https://api.github.com/repos/huntc/project-doc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huntc/project-doc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huntc/project-doc/git/refs{/sha}","trees_url":"https://api.github.com/repos/huntc/project-doc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huntc/project-doc/statuses/{sha}","languages_url":"https://api.github.com/repos/huntc/project-doc/languages","stargazers_url":"https://api.github.com/repos/huntc/project-doc/stargazers","contributors_url":"https://api.github.com/repos/huntc/project-doc/contributors","subscribers_url":"https://api.github.com/repos/huntc/project-doc/subscribers","subscription_url":"https://api.github.com/repos/huntc/project-doc/subscription","commits_url":"https://api.github.com/repos/huntc/project-doc/commits{/sha}","git_commits_url":"https://api.github.com/repos/huntc/project-doc/git/commits{/sha}","comments_url":"https://api.github.com/repos/huntc/project-doc/comments{/number}","issue_comment_url":"https://api.github.com/repos/huntc/project-doc/issues/comments{/number}","contents_url":"https://api.github.com/repos/huntc/project-doc/contents/{+path}","compare_url":"https://api.github.com/repos/huntc/project-doc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huntc/project-doc/merges","archive_url":"https://api.github.com/repos/huntc/project-doc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huntc/project-doc/downloads","issues_url":"https://api.github.com/repos/huntc/project-doc/issues{/number}","pulls_url":"https://api.github.com/repos/huntc/project-doc/pulls{/number}","milestones_url":"https://api.github.com/repos/huntc/project-doc/milestones{/number}","notifications_url":"https://api.github.com/repos/huntc/project-doc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huntc/project-doc/labels{/name}","releases_url":"https://api.github.com/repos/huntc/project-doc/releases{/id}","created_at":"2015-03-26T11:37:55Z","updated_at":"2015-04-01T10:16:47Z","pushed_at":"2015-09-17T04:46:47Z","git_url":"git://github.com/huntc/project-doc.git","ssh_url":"git@github.com:huntc/project-doc.git","clone_url":"https://github.com/huntc/project-doc.git","svn_url":"https://github.com/huntc/project-doc","homepage":null,"size":973,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":0,"forks":5,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"typesafehub:master","ref":"master","sha":"7e6e93af6cbedd3f848123e58565cd38c1df8e2b","user":{"login":"typesafehub","id":784923,"avatar_url":"https://avatars.githubusercontent.com/u/784923?v=3","gravatar_id":"","url":"https://api.github.com/users/typesafehub","html_url":"https://github.com/typesafehub","followers_url":"https://api.github.com/users/typesafehub/followers","following_url":"https://api.github.com/users/typesafehub/following{/other_user}","gists_url":"https://api.github.com/users/typesafehub/gists{/gist_id}","starred_url":"https://api.github.com/users/typesafehub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typesafehub/subscriptions","organizations_url":"https://api.github.com/users/typesafehub/orgs","repos_url":"https://api.github.com/users/typesafehub/repos","events_url":"https://api.github.com/users/typesafehub/events{/privacy}","received_events_url":"https://api.github.com/users/typesafehub/received_events","type":"Organization","site_admin":false},"repo":{"id":33241154,"name":"project-doc","full_name":"typesafehub/project-doc","owner":{"login":"typesafehub","id":784923,"avatar_url":"https://avatars.githubusercontent.com/u/784923?v=3","gravatar_id":"","url":"https://api.github.com/users/typesafehub","html_url":"https://github.com/typesafehub","followers_url":"https://api.github.com/users/typesafehub/followers","following_url":"https://api.github.com/users/typesafehub/following{/other_user}","gists_url":"https://api.github.com/users/typesafehub/gists{/gist_id}","starred_url":"https://api.github.com/users/typesafehub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typesafehub/subscriptions","organizations_url":"https://api.github.com/users/typesafehub/orgs","repos_url":"https://api.github.com/users/typesafehub/repos","events_url":"https://api.github.com/users/typesafehub/events{/privacy}","received_events_url":"https://api.github.com/users/typesafehub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/typesafehub/project-doc","description":null,"fork":true,"url":"https://api.github.com/repos/typesafehub/project-doc","forks_url":"https://api.github.com/repos/typesafehub/project-doc/forks","keys_url":"https://api.github.com/repos/typesafehub/project-doc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/typesafehub/project-doc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/typesafehub/project-doc/teams","hooks_url":"https://api.github.com/repos/typesafehub/project-doc/hooks","issue_events_url":"https://api.github.com/repos/typesafehub/project-doc/issues/events{/number}","events_url":"https://api.github.com/repos/typesafehub/project-doc/events","assignees_url":"https://api.github.com/repos/typesafehub/project-doc/assignees{/user}","branches_url":"https://api.github.com/repos/typesafehub/project-doc/branches{/branch}","tags_url":"https://api.github.com/repos/typesafehub/project-doc/tags","blobs_url":"https://api.github.com/repos/typesafehub/project-doc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/typesafehub/project-doc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/typesafehub/project-doc/git/refs{/sha}","trees_url":"https://api.github.com/repos/typesafehub/project-doc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/typesafehub/project-doc/statuses/{sha}","languages_url":"https://api.github.com/repos/typesafehub/project-doc/languages","stargazers_url":"https://api.github.com/repos/typesafehub/project-doc/stargazers","contributors_url":"https://api.github.com/repos/typesafehub/project-doc/contributors","subscribers_url":"https://api.github.com/repos/typesafehub/project-doc/subscribers","subscription_url":"https://api.github.com/repos/typesafehub/project-doc/subscription","commits_url":"https://api.github.com/repos/typesafehub/project-doc/commits{/sha}","git_commits_url":"https://api.github.com/repos/typesafehub/project-doc/git/commits{/sha}","comments_url":"https://api.github.com/repos/typesafehub/project-doc/comments{/number}","issue_comment_url":"https://api.github.com/repos/typesafehub/project-doc/issues/comments{/number}","contents_url":"https://api.github.com/repos/typesafehub/project-doc/contents/{+path}","compare_url":"https://api.github.com/repos/typesafehub/project-doc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/typesafehub/project-doc/merges","archive_url":"https://api.github.com/repos/typesafehub/project-doc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/typesafehub/project-doc/downloads","issues_url":"https://api.github.com/repos/typesafehub/project-doc/issues{/number}","pulls_url":"https://api.github.com/repos/typesafehub/project-doc/pulls{/number}","milestones_url":"https://api.github.com/repos/typesafehub/project-doc/milestones{/number}","notifications_url":"https://api.github.com/repos/typesafehub/project-doc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/typesafehub/project-doc/labels{/name}","releases_url":"https://api.github.com/repos/typesafehub/project-doc/releases{/id}","created_at":"2015-04-01T10:17:48Z","updated_at":"2015-05-04T01:03:09Z","pushed_at":"2015-09-17T04:46:47Z","git_url":"git://github.com/typesafehub/project-doc.git","ssh_url":"git@github.com:typesafehub/project-doc.git","clone_url":"https://github.com/typesafehub/project-doc.git","svn_url":"https://github.com/typesafehub/project-doc","homepage":null,"size":1022,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":6,"forks":3,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/typesafehub/project-doc/pulls/42"},"html":{"href":"https://github.com/typesafehub/project-doc/pull/42"},"issue":{"href":"https://api.github.com/repos/typesafehub/project-doc/issues/42"},"comments":{"href":"https://api.github.com/repos/typesafehub/project-doc/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/typesafehub/project-doc/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/typesafehub/project-doc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/typesafehub/project-doc/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/typesafehub/project-doc/statuses/70c6583668191141d5791fb5e4e159683cdb414a"}}}}