{"action":"opened","number":409,"pull_request":{"url":"https://api.github.com/repos/larvalabs/pullup/pulls/409","id":64877525,"html_url":"https://github.com/larvalabs/pullup/pull/409","diff_url":"https://github.com/larvalabs/pullup/pull/409.diff","patch_url":"https://github.com/larvalabs/pullup/pull/409.patch","issue_url":"https://api.github.com/repos/larvalabs/pullup/issues/409","number":409,"state":"open","locked":false,"title":"Add ability to edit comments under an hour old","user":{"login":"rickhanlonii","id":2440089,"avatar_url":"https://avatars.githubusercontent.com/u/2440089?v=3","gravatar_id":"","url":"https://api.github.com/users/rickhanlonii","html_url":"https://github.com/rickhanlonii","followers_url":"https://api.github.com/users/rickhanlonii/followers","following_url":"https://api.github.com/users/rickhanlonii/following{/other_user}","gists_url":"https://api.github.com/users/rickhanlonii/gists{/gist_id}","starred_url":"https://api.github.com/users/rickhanlonii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickhanlonii/subscriptions","organizations_url":"https://api.github.com/users/rickhanlonii/orgs","repos_url":"https://api.github.com/users/rickhanlonii/repos","events_url":"https://api.github.com/users/rickhanlonii/events{/privacy}","received_events_url":"https://api.github.com/users/rickhanlonii/received_events","type":"User","site_admin":false},"body":"## Overview\r\n\r\nThis PR adds the ability to link directly to comments and edit your own comments that are under 1 hour old.\r\n\r\nCloses https://github.com/larvalabs/pullup/issues/208.\r\n\r\n## Details\r\n- Adds a link to each comment by clicking the timeago time\r\n- Adds a link to the news item by clicking the timeago time on the news item\r\n- Adds an edit link on comments for the logged in user less than an hour old\r\n- Adds routes for comment links and editing comment\r\n- Adds routes for updating a comment when editing\r\n- Refactors the comment related code into separate controller and view packages\r\n\r\n## Gifs\r\n#### Linked comment and posts\r\n![](http://dp.hanlon.io/1d2b28180t2v/Screen%20Recording%202016-03-31%20at%2007.51%20PM.gif)\r\n\r\n#### Editing comments\r\n![](http://dp.hanlon.io/3C0z1C2E1N2N/Screen%20Recording%202016-03-31%20at%2007.52%20PM.gif)","created_at":"2016-03-31T23:54:30Z","updated_at":"2016-03-31T23:54:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/larvalabs/pullup/pulls/409/commits","review_comments_url":"https://api.github.com/repos/larvalabs/pullup/pulls/409/comments","review_comment_url":"https://api.github.com/repos/larvalabs/pullup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/larvalabs/pullup/issues/409/comments","statuses_url":"https://api.github.com/repos/larvalabs/pullup/statuses/048a18dbabac038ffa225e13e34378bd49123c9a","head":{"label":"rickhanlonii:rh-edit-comments","ref":"rh-edit-comments","sha":"048a18dbabac038ffa225e13e34378bd49123c9a","user":{"login":"rickhanlonii","id":2440089,"avatar_url":"https://avatars.githubusercontent.com/u/2440089?v=3","gravatar_id":"","url":"https://api.github.com/users/rickhanlonii","html_url":"https://github.com/rickhanlonii","followers_url":"https://api.github.com/users/rickhanlonii/followers","following_url":"https://api.github.com/users/rickhanlonii/following{/other_user}","gists_url":"https://api.github.com/users/rickhanlonii/gists{/gist_id}","starred_url":"https://api.github.com/users/rickhanlonii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickhanlonii/subscriptions","organizations_url":"https://api.github.com/users/rickhanlonii/orgs","repos_url":"https://api.github.com/users/rickhanlonii/repos","events_url":"https://api.github.com/users/rickhanlonii/events{/privacy}","received_events_url":"https://api.github.com/users/rickhanlonii/received_events","type":"User","site_admin":false},"repo":{"id":17445200,"name":"pullup","full_name":"rickhanlonii/pullup","owner":{"login":"rickhanlonii","id":2440089,"avatar_url":"https://avatars.githubusercontent.com/u/2440089?v=3","gravatar_id":"","url":"https://api.github.com/users/rickhanlonii","html_url":"https://github.com/rickhanlonii","followers_url":"https://api.github.com/users/rickhanlonii/followers","following_url":"https://api.github.com/users/rickhanlonii/following{/other_user}","gists_url":"https://api.github.com/users/rickhanlonii/gists{/gist_id}","starred_url":"https://api.github.com/users/rickhanlonii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickhanlonii/subscriptions","organizations_url":"https://api.github.com/users/rickhanlonii/orgs","repos_url":"https://api.github.com/users/rickhanlonii/repos","events_url":"https://api.github.com/users/rickhanlonii/events{/privacy}","received_events_url":"https://api.github.com/users/rickhanlonii/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rickhanlonii/pullup","description":"A website you join via pull request.","fork":true,"url":"https://api.github.com/repos/rickhanlonii/pullup","forks_url":"https://api.github.com/repos/rickhanlonii/pullup/forks","keys_url":"https://api.github.com/repos/rickhanlonii/pullup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rickhanlonii/pullup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rickhanlonii/pullup/teams","hooks_url":"https://api.github.com/repos/rickhanlonii/pullup/hooks","issue_events_url":"https://api.github.com/repos/rickhanlonii/pullup/issues/events{/number}","events_url":"https://api.github.com/repos/rickhanlonii/pullup/events","assignees_url":"https://api.github.com/repos/rickhanlonii/pullup/assignees{/user}","branches_url":"https://api.github.com/repos/rickhanlonii/pullup/branches{/branch}","tags_url":"https://api.github.com/repos/rickhanlonii/pullup/tags","blobs_url":"https://api.github.com/repos/rickhanlonii/pullup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rickhanlonii/pullup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rickhanlonii/pullup/git/refs{/sha}","trees_url":"https://api.github.com/repos/rickhanlonii/pullup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rickhanlonii/pullup/statuses/{sha}","languages_url":"https://api.github.com/repos/rickhanlonii/pullup/languages","stargazers_url":"https://api.github.com/repos/rickhanlonii/pullup/stargazers","contributors_url":"https://api.github.com/repos/rickhanlonii/pullup/contributors","subscribers_url":"https://api.github.com/repos/rickhanlonii/pullup/subscribers","subscription_url":"https://api.github.com/repos/rickhanlonii/pullup/subscription","commits_url":"https://api.github.com/repos/rickhanlonii/pullup/commits{/sha}","git_commits_url":"https://api.github.com/repos/rickhanlonii/pullup/git/commits{/sha}","comments_url":"https://api.github.com/repos/rickhanlonii/pullup/comments{/number}","issue_comment_url":"https://api.github.com/repos/rickhanlonii/pullup/issues/comments{/number}","contents_url":"https://api.github.com/repos/rickhanlonii/pullup/contents/{+path}","compare_url":"https://api.github.com/repos/rickhanlonii/pullup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rickhanlonii/pullup/merges","archive_url":"https://api.github.com/repos/rickhanlonii/pullup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rickhanlonii/pullup/downloads","issues_url":"https://api.github.com/repos/rickhanlonii/pullup/issues{/number}","pulls_url":"https://api.github.com/repos/rickhanlonii/pullup/pulls{/number}","milestones_url":"https://api.github.com/repos/rickhanlonii/pullup/milestones{/number}","notifications_url":"https://api.github.com/repos/rickhanlonii/pullup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rickhanlonii/pullup/labels{/name}","releases_url":"https://api.github.com/repos/rickhanlonii/pullup/releases{/id}","deployments_url":"https://api.github.com/repos/rickhanlonii/pullup/deployments","created_at":"2014-03-05T15:32:23Z","updated_at":"2016-03-02T18:09:00Z","pushed_at":"2016-03-31T23:44:45Z","git_url":"git://github.com/rickhanlonii/pullup.git","ssh_url":"git@github.com:rickhanlonii/pullup.git","clone_url":"https://github.com/rickhanlonii/pullup.git","svn_url":"https://github.com/rickhanlonii/pullup","homepage":"http://pullup.io","size":4922,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"larvalabs:master","ref":"master","sha":"b3b1d4d854a7c48294cebfed1955c31a89ec97a9","user":{"login":"larvalabs","id":3613281,"avatar_url":"https://avatars.githubusercontent.com/u/3613281?v=3","gravatar_id":"","url":"https://api.github.com/users/larvalabs","html_url":"https://github.com/larvalabs","followers_url":"https://api.github.com/users/larvalabs/followers","following_url":"https://api.github.com/users/larvalabs/following{/other_user}","gists_url":"https://api.github.com/users/larvalabs/gists{/gist_id}","starred_url":"https://api.github.com/users/larvalabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larvalabs/subscriptions","organizations_url":"https://api.github.com/users/larvalabs/orgs","repos_url":"https://api.github.com/users/larvalabs/repos","events_url":"https://api.github.com/users/larvalabs/events{/privacy}","received_events_url":"https://api.github.com/users/larvalabs/received_events","type":"Organization","site_admin":false},"repo":{"id":16526574,"name":"pullup","full_name":"larvalabs/pullup","owner":{"login":"larvalabs","id":3613281,"avatar_url":"https://avatars.githubusercontent.com/u/3613281?v=3","gravatar_id":"","url":"https://api.github.com/users/larvalabs","html_url":"https://github.com/larvalabs","followers_url":"https://api.github.com/users/larvalabs/followers","following_url":"https://api.github.com/users/larvalabs/following{/other_user}","gists_url":"https://api.github.com/users/larvalabs/gists{/gist_id}","starred_url":"https://api.github.com/users/larvalabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larvalabs/subscriptions","organizations_url":"https://api.github.com/users/larvalabs/orgs","repos_url":"https://api.github.com/users/larvalabs/repos","events_url":"https://api.github.com/users/larvalabs/events{/privacy}","received_events_url":"https://api.github.com/users/larvalabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/larvalabs/pullup","description":"A website you join via pull request.","fork":false,"url":"https://api.github.com/repos/larvalabs/pullup","forks_url":"https://api.github.com/repos/larvalabs/pullup/forks","keys_url":"https://api.github.com/repos/larvalabs/pullup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/larvalabs/pullup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/larvalabs/pullup/teams","hooks_url":"https://api.github.com/repos/larvalabs/pullup/hooks","issue_events_url":"https://api.github.com/repos/larvalabs/pullup/issues/events{/number}","events_url":"https://api.github.com/repos/larvalabs/pullup/events","assignees_url":"https://api.github.com/repos/larvalabs/pullup/assignees{/user}","branches_url":"https://api.github.com/repos/larvalabs/pullup/branches{/branch}","tags_url":"https://api.github.com/repos/larvalabs/pullup/tags","blobs_url":"https://api.github.com/repos/larvalabs/pullup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/larvalabs/pullup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/larvalabs/pullup/git/refs{/sha}","trees_url":"https://api.github.com/repos/larvalabs/pullup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/larvalabs/pullup/statuses/{sha}","languages_url":"https://api.github.com/repos/larvalabs/pullup/languages","stargazers_url":"https://api.github.com/repos/larvalabs/pullup/stargazers","contributors_url":"https://api.github.com/repos/larvalabs/pullup/contributors","subscribers_url":"https://api.github.com/repos/larvalabs/pullup/subscribers","subscription_url":"https://api.github.com/repos/larvalabs/pullup/subscription","commits_url":"https://api.github.com/repos/larvalabs/pullup/commits{/sha}","git_commits_url":"https://api.github.com/repos/larvalabs/pullup/git/commits{/sha}","comments_url":"https://api.github.com/repos/larvalabs/pullup/comments{/number}","issue_comment_url":"https://api.github.com/repos/larvalabs/pullup/issues/comments{/number}","contents_url":"https://api.github.com/repos/larvalabs/pullup/contents/{+path}","compare_url":"https://api.github.com/repos/larvalabs/pullup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/larvalabs/pullup/merges","archive_url":"https://api.github.com/repos/larvalabs/pullup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/larvalabs/pullup/downloads","issues_url":"https://api.github.com/repos/larvalabs/pullup/issues{/number}","pulls_url":"https://api.github.com/repos/larvalabs/pullup/pulls{/number}","milestones_url":"https://api.github.com/repos/larvalabs/pullup/milestones{/number}","notifications_url":"https://api.github.com/repos/larvalabs/pullup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/larvalabs/pullup/labels{/name}","releases_url":"https://api.github.com/repos/larvalabs/pullup/releases{/id}","deployments_url":"https://api.github.com/repos/larvalabs/pullup/deployments","created_at":"2014-02-04T21:42:04Z","updated_at":"2016-03-04T20:54:04Z","pushed_at":"2016-03-31T23:54:31Z","git_url":"git://github.com/larvalabs/pullup.git","ssh_url":"git@github.com:larvalabs/pullup.git","clone_url":"https://github.com/larvalabs/pullup.git","svn_url":"https://github.com/larvalabs/pullup","homepage":"http://pullup.io","size":5044,"stargazers_count":315,"watchers_count":315,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":271,"mirror_url":null,"open_issues_count":28,"forks":271,"open_issues":28,"watchers":315,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/larvalabs/pullup/pulls/409"},"html":{"href":"https://github.com/larvalabs/pullup/pull/409"},"issue":{"href":"https://api.github.com/repos/larvalabs/pullup/issues/409"},"comments":{"href":"https://api.github.com/repos/larvalabs/pullup/issues/409/comments"},"review_comments":{"href":"https://api.github.com/repos/larvalabs/pullup/pulls/409/comments"},"review_comment":{"href":"https://api.github.com/repos/larvalabs/pullup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/larvalabs/pullup/pulls/409/commits"},"statuses":{"href":"https://api.github.com/repos/larvalabs/pullup/statuses/048a18dbabac038ffa225e13e34378bd49123c9a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":11,"additions":429,"deletions":241,"changed_files":11}}