GitHub PullRequestEvent at 2014-03-25 07:14:03
Repository: discourse
Actor: dreamr
Payload: {"action":"opened","number":2176,"pull_request":{"url":"https://api.github.com/repos/discourse/discourse/pulls/2176","id":13939370,"html_url":"https://github.com/discourse/discourse/pull/2176","diff_url":"https://github.com/discourse/discourse/pull/2176.diff","patch_url":"https://github.com/discourse/discourse/pull/2176.patch","issue_url":"https://api.github.com/repos/discourse/discourse/issues/2176","number":2176,"state":"open","title":"[refactor] Topics#set_auto_close","user":{"login":"dreamr","id":156253,"avatar_url":"https://avatars.githubusercontent.com/u/156253?","gravatar_id":"01f6930ba7f3594f862206e5cd49ff10","url":"https://api.github.com/users/dreamr","html_url":"https://github.com/dreamr","followers_url":"https://api.github.com/users/dreamr/followers","following_url":"https://api.github.com/users/dreamr/following{/other_user}","gists_url":"https://api.github.com/users/dreamr/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamr/subscriptions","organizations_url":"https://api.github.com/users/dreamr/orgs","repos_url":"https://api.github.com/users/dreamr/repos","events_url":"https://api.github.com/users/dreamr/events{/privacy}","received_events_url":"https://api.github.com/users/dreamr/received_events","type":"User","site_admin":false},"body":"The large complicated conditional block has been refactored away\r\nusing an object that returns a lambda with the correct behavior\r\nto update the topic auto close date.\r\n\r\nTopics::AutoCloser.get_closer_method(arg).call(self)\r\n\r\n* arg:  The arg is a date string of various formats or nil\r\n* self: The object with the auto_close fields\r\n\r\nThis will improve your code climate score and remove an eye-sore\r\nconditional mess.","created_at":"2014-03-25T07:14:02Z","updated_at":"2014-03-25T07:14:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/discourse/discourse/pulls/2176/commits","review_comments_url":"https://api.github.com/repos/discourse/discourse/pulls/2176/comments","review_comment_url":"https://api.github.com/repos/discourse/discourse/pulls/comments/{number}","comments_url":"https://api.github.com/repos/discourse/discourse/issues/2176/comments","statuses_url":"https://api.github.com/repos/discourse/discourse/statuses/07c18190c4a88edb68ccc3a581ce69d1bc94899b","head":{"label":"dreamr:dreamr/refactor_topic_set_auto_close","ref":"dreamr/refactor_topic_set_auto_close","sha":"07c18190c4a88edb68ccc3a581ce69d1bc94899b","user":{"login":"dreamr","id":156253,"avatar_url":"https://avatars.githubusercontent.com/u/156253?","gravatar_id":"01f6930ba7f3594f862206e5cd49ff10","url":"https://api.github.com/users/dreamr","html_url":"https://github.com/dreamr","followers_url":"https://api.github.com/users/dreamr/followers","following_url":"https://api.github.com/users/dreamr/following{/other_user}","gists_url":"https://api.github.com/users/dreamr/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamr/subscriptions","organizations_url":"https://api.github.com/users/dreamr/orgs","repos_url":"https://api.github.com/users/dreamr/repos","events_url":"https://api.github.com/users/dreamr/events{/privacy}","received_events_url":"https://api.github.com/users/dreamr/received_events","type":"User","site_admin":false},"repo":{"id":14151185,"name":"discourse","full_name":"dreamr/discourse","owner":{"login":"dreamr","id":156253,"avatar_url":"https://avatars.githubusercontent.com/u/156253?","gravatar_id":"01f6930ba7f3594f862206e5cd49ff10","url":"https://api.github.com/users/dreamr","html_url":"https://github.com/dreamr","followers_url":"https://api.github.com/users/dreamr/followers","following_url":"https://api.github.com/users/dreamr/following{/other_user}","gists_url":"https://api.github.com/users/dreamr/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamr/subscriptions","organizations_url":"https://api.github.com/users/dreamr/orgs","repos_url":"https://api.github.com/users/dreamr/repos","events_url":"https://api.github.com/users/dreamr/events{/privacy}","received_events_url":"https://api.github.com/users/dreamr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dreamr/discourse","description":"A platform for community discussion. Free, open, simple.","fork":true,"url":"https://api.github.com/repos/dreamr/discourse","forks_url":"https://api.github.com/repos/dreamr/discourse/forks","keys_url":"https://api.github.com/repos/dreamr/discourse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dreamr/discourse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dreamr/discourse/teams","hooks_url":"https://api.github.com/repos/dreamr/discourse/hooks","issue_events_url":"https://api.github.com/repos/dreamr/discourse/issues/events{/number}","events_url":"https://api.github.com/repos/dreamr/discourse/events","assignees_url":"https://api.github.com/repos/dreamr/discourse/assignees{/user}","branches_url":"https://api.github.com/repos/dreamr/discourse/branches{/branch}","tags_url":"https://api.github.com/repos/dreamr/discourse/tags","blobs_url":"https://api.github.com/repos/dreamr/discourse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dreamr/discourse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dreamr/discourse/git/refs{/sha}","trees_url":"https://api.github.com/repos/dreamr/discourse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dreamr/discourse/statuses/{sha}","languages_url":"https://api.github.com/repos/dreamr/discourse/languages","stargazers_url":"https://api.github.com/repos/dreamr/discourse/stargazers","contributors_url":"https://api.github.com/repos/dreamr/discourse/contributors","subscribers_url":"https://api.github.com/repos/dreamr/discourse/subscribers","subscription_url":"https://api.github.com/repos/dreamr/discourse/subscription","commits_url":"https://api.github.com/repos/dreamr/discourse/commits{/sha}","git_commits_url":"https://api.github.com/repos/dreamr/discourse/git/commits{/sha}","comments_url":"https://api.github.com/repos/dreamr/discourse/comments{/number}","issue_comment_url":"https://api.github.com/repos/dreamr/discourse/issues/comments/{number}","contents_url":"https://api.github.com/repos/dreamr/discourse/contents/{+path}","compare_url":"https://api.github.com/repos/dreamr/discourse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dreamr/discourse/merges","archive_url":"https://api.github.com/repos/dreamr/discourse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dreamr/discourse/downloads","issues_url":"https://api.github.com/repos/dreamr/discourse/issues{/number}","pulls_url":"https://api.github.com/repos/dreamr/discourse/pulls{/number}","milestones_url":"https://api.github.com/repos/dreamr/discourse/milestones{/number}","notifications_url":"https://api.github.com/repos/dreamr/discourse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dreamr/discourse/labels{/name}","releases_url":"https://api.github.com/repos/dreamr/discourse/releases{/id}","created_at":"2013-11-05T19:13:18Z","updated_at":"2014-03-25T07:14:02Z","pushed_at":"2014-03-25T07:09:47Z","git_url":"git://github.com/dreamr/discourse.git","ssh_url":"git@github.com:dreamr/discourse.git","clone_url":"https://github.com/dreamr/discourse.git","svn_url":"https://github.com/dreamr/discourse","homepage":"http://www.discourse.org","size":160,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"discourse:master","ref":"master","sha":"9cf23223eb19287b49596994e29d0d072e1b2589","user":{"login":"discourse","id":3220138,"avatar_url":"https://avatars.githubusercontent.com/u/3220138?","gravatar_id":"b30fff48d257cdd17c4437afac19fd30","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?","gravatar_id":"b30fff48d257cdd17c4437afac19fd30","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}","created_at":"2013-01-12T00:25:55Z","updated_at":"2014-03-25T07:02:41Z","pushed_at":"2014-03-25T07:02:41Z","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":84464,"stargazers_count":9939,"watchers_count":9939,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":2582,"mirror_url":null,"open_issues_count":18,"forks":2582,"open_issues":18,"watchers":9939,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/discourse/discourse/pulls/2176"},"html":{"href":"https://github.com/discourse/discourse/pull/2176"},"issue":{"href":"https://api.github.com/repos/discourse/discourse/issues/2176"},"comments":{"href":"https://api.github.com/repos/discourse/discourse/issues/2176/comments"},"review_comments":{"href":"https://api.github.com/repos/discourse/discourse/pulls/2176/comments"},"review_comment":{"href":"https://api.github.com/repos/discourse/discourse/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/discourse/discourse/pulls/2176/commits"},"statuses":{"href":"https://api.github.com/repos/discourse/discourse/statuses/07c18190c4a88edb68ccc3a581ce69d1bc94899b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":89,"deletions":26,"changed_files":2}}