{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/degica/spree-garbage-cleaner/pulls/2","id":27076510,"html_url":"https://github.com/degica/spree-garbage-cleaner/pull/2","diff_url":"https://github.com/degica/spree-garbage-cleaner/pull/2.diff","patch_url":"https://github.com/degica/spree-garbage-cleaner/pull/2.patch","issue_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/issues/2","number":2,"state":"closed","locked":false,"title":"Incomplete orders with users attached are not garbage.","user":{"login":"shioyama","id":561827,"avatar_url":"https://avatars.githubusercontent.com/u/561827?v=3","gravatar_id":"","url":"https://api.github.com/users/shioyama","html_url":"https://github.com/shioyama","followers_url":"https://api.github.com/users/shioyama/followers","following_url":"https://api.github.com/users/shioyama/following{/other_user}","gists_url":"https://api.github.com/users/shioyama/gists{/gist_id}","starred_url":"https://api.github.com/users/shioyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shioyama/subscriptions","organizations_url":"https://api.github.com/users/shioyama/orgs","repos_url":"https://api.github.com/users/shioyama/repos","events_url":"https://api.github.com/users/shioyama/events{/privacy}","received_events_url":"https://api.github.com/users/shioyama/received_events","type":"User","site_admin":false},"body":"We need a way to distinguish between incomplete orders that we care about (e.g. payment issues) and those that we don't (orders that were just abandoned midway). The easiest way to do this is to redefine garbage as any order that is incomplete *and* has no user attached to it.","created_at":"2015-01-09T02:30:01Z","updated_at":"2015-01-09T06:07:02Z","closed_at":"2015-01-09T06:07:02Z","merged_at":"2015-01-09T06:07:02Z","merge_commit_sha":"fa8f27a579819e82b67ebc80b0fbf6c9f979c820","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/pulls/2/commits","review_comments_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/pulls/2/comments","review_comment_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/pulls/comments/{number}","comments_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/issues/2/comments","statuses_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/statuses/173ec342be002ae37d41a70acf3ea3b9bffbaf1e","head":{"label":"shioyama:only_clean_incomplete_orders_without_users","ref":"only_clean_incomplete_orders_without_users","sha":"173ec342be002ae37d41a70acf3ea3b9bffbaf1e","user":{"login":"shioyama","id":561827,"avatar_url":"https://avatars.githubusercontent.com/u/561827?v=3","gravatar_id":"","url":"https://api.github.com/users/shioyama","html_url":"https://github.com/shioyama","followers_url":"https://api.github.com/users/shioyama/followers","following_url":"https://api.github.com/users/shioyama/following{/other_user}","gists_url":"https://api.github.com/users/shioyama/gists{/gist_id}","starred_url":"https://api.github.com/users/shioyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shioyama/subscriptions","organizations_url":"https://api.github.com/users/shioyama/orgs","repos_url":"https://api.github.com/users/shioyama/repos","events_url":"https://api.github.com/users/shioyama/events{/privacy}","received_events_url":"https://api.github.com/users/shioyama/received_events","type":"User","site_admin":false},"repo":{"id":28995727,"name":"spree-garbage-cleaner","full_name":"shioyama/spree-garbage-cleaner","owner":{"login":"shioyama","id":561827,"avatar_url":"https://avatars.githubusercontent.com/u/561827?v=3","gravatar_id":"","url":"https://api.github.com/users/shioyama","html_url":"https://github.com/shioyama","followers_url":"https://api.github.com/users/shioyama/followers","following_url":"https://api.github.com/users/shioyama/following{/other_user}","gists_url":"https://api.github.com/users/shioyama/gists{/gist_id}","starred_url":"https://api.github.com/users/shioyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shioyama/subscriptions","organizations_url":"https://api.github.com/users/shioyama/orgs","repos_url":"https://api.github.com/users/shioyama/repos","events_url":"https://api.github.com/users/shioyama/events{/privacy}","received_events_url":"https://api.github.com/users/shioyama/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shioyama/spree-garbage-cleaner","description":"A little gem that helps you cleanup old, unneeded data from a Spree database.","fork":true,"url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner","forks_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/forks","keys_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/teams","hooks_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/hooks","issue_events_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/issues/events{/number}","events_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/events","assignees_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/assignees{/user}","branches_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/branches{/branch}","tags_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/tags","blobs_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/git/refs{/sha}","trees_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/statuses/{sha}","languages_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/languages","stargazers_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/stargazers","contributors_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/contributors","subscribers_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/subscribers","subscription_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/subscription","commits_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/commits{/sha}","git_commits_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/git/commits{/sha}","comments_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/comments{/number}","issue_comment_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/issues/comments/{number}","contents_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/contents/{+path}","compare_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/merges","archive_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/downloads","issues_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/issues{/number}","pulls_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/pulls{/number}","milestones_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/milestones{/number}","notifications_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/labels{/name}","releases_url":"https://api.github.com/repos/shioyama/spree-garbage-cleaner/releases{/id}","created_at":"2015-01-09T01:56:27Z","updated_at":"2015-01-09T01:56:27Z","pushed_at":"2015-01-09T02:27:53Z","git_url":"git://github.com/shioyama/spree-garbage-cleaner.git","ssh_url":"git@github.com:shioyama/spree-garbage-cleaner.git","clone_url":"https://github.com/shioyama/spree-garbage-cleaner.git","svn_url":"https://github.com/shioyama/spree-garbage-cleaner","homepage":null,"size":778,"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":"degica:1-3-stable","ref":"1-3-stable","sha":"7d18f76854fa26acfd17cb099f71b95feef3affe","user":{"login":"degica","id":1285497,"avatar_url":"https://avatars.githubusercontent.com/u/1285497?v=3","gravatar_id":"","url":"https://api.github.com/users/degica","html_url":"https://github.com/degica","followers_url":"https://api.github.com/users/degica/followers","following_url":"https://api.github.com/users/degica/following{/other_user}","gists_url":"https://api.github.com/users/degica/gists{/gist_id}","starred_url":"https://api.github.com/users/degica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/degica/subscriptions","organizations_url":"https://api.github.com/users/degica/orgs","repos_url":"https://api.github.com/users/degica/repos","events_url":"https://api.github.com/users/degica/events{/privacy}","received_events_url":"https://api.github.com/users/degica/received_events","type":"Organization","site_admin":false},"repo":{"id":28995548,"name":"spree-garbage-cleaner","full_name":"degica/spree-garbage-cleaner","owner":{"login":"degica","id":1285497,"avatar_url":"https://avatars.githubusercontent.com/u/1285497?v=3","gravatar_id":"","url":"https://api.github.com/users/degica","html_url":"https://github.com/degica","followers_url":"https://api.github.com/users/degica/followers","following_url":"https://api.github.com/users/degica/following{/other_user}","gists_url":"https://api.github.com/users/degica/gists{/gist_id}","starred_url":"https://api.github.com/users/degica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/degica/subscriptions","organizations_url":"https://api.github.com/users/degica/orgs","repos_url":"https://api.github.com/users/degica/repos","events_url":"https://api.github.com/users/degica/events{/privacy}","received_events_url":"https://api.github.com/users/degica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/degica/spree-garbage-cleaner","description":"A little gem that helps you cleanup old, unneeded data from a Spree database.","fork":true,"url":"https://api.github.com/repos/degica/spree-garbage-cleaner","forks_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/forks","keys_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/teams","hooks_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/hooks","issue_events_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/issues/events{/number}","events_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/events","assignees_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/assignees{/user}","branches_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/branches{/branch}","tags_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/tags","blobs_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/git/refs{/sha}","trees_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/statuses/{sha}","languages_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/languages","stargazers_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/stargazers","contributors_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/contributors","subscribers_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/subscribers","subscription_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/subscription","commits_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/commits{/sha}","git_commits_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/git/commits{/sha}","comments_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/comments{/number}","issue_comment_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/issues/comments/{number}","contents_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/contents/{+path}","compare_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/merges","archive_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/downloads","issues_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/issues{/number}","pulls_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/pulls{/number}","milestones_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/milestones{/number}","notifications_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/labels{/name}","releases_url":"https://api.github.com/repos/degica/spree-garbage-cleaner/releases{/id}","created_at":"2015-01-09T01:50:50Z","updated_at":"2015-01-09T01:50:50Z","pushed_at":"2015-01-09T06:07:03Z","git_url":"git://github.com/degica/spree-garbage-cleaner.git","ssh_url":"git@github.com:degica/spree-garbage-cleaner.git","clone_url":"https://github.com/degica/spree-garbage-cleaner.git","svn_url":"https://github.com/degica/spree-garbage-cleaner","homepage":null,"size":798,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/degica/spree-garbage-cleaner/pulls/2"},"html":{"href":"https://github.com/degica/spree-garbage-cleaner/pull/2"},"issue":{"href":"https://api.github.com/repos/degica/spree-garbage-cleaner/issues/2"},"comments":{"href":"https://api.github.com/repos/degica/spree-garbage-cleaner/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/degica/spree-garbage-cleaner/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/degica/spree-garbage-cleaner/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/degica/spree-garbage-cleaner/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/degica/spree-garbage-cleaner/statuses/173ec342be002ae37d41a70acf3ea3b9bffbaf1e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"shioyama","id":561827,"avatar_url":"https://avatars.githubusercontent.com/u/561827?v=3","gravatar_id":"","url":"https://api.github.com/users/shioyama","html_url":"https://github.com/shioyama","followers_url":"https://api.github.com/users/shioyama/followers","following_url":"https://api.github.com/users/shioyama/following{/other_user}","gists_url":"https://api.github.com/users/shioyama/gists{/gist_id}","starred_url":"https://api.github.com/users/shioyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shioyama/subscriptions","organizations_url":"https://api.github.com/users/shioyama/orgs","repos_url":"https://api.github.com/users/shioyama/repos","events_url":"https://api.github.com/users/shioyama/events{/privacy}","received_events_url":"https://api.github.com/users/shioyama/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":2}}