{"action":"opened","number":180,"pull_request":{"url":"https://api.github.com/repos/gocardless/statesman/pulls/180","id":42302360,"html_url":"https://github.com/gocardless/statesman/pull/180","diff_url":"https://github.com/gocardless/statesman/pull/180.diff","patch_url":"https://github.com/gocardless/statesman/pull/180.patch","issue_url":"https://api.github.com/repos/gocardless/statesman/issues/180","number":180,"state":"open","locked":false,"title":"Update most-recent after transition destroy","user":{"login":"greysteil","id":1144873,"avatar_url":"https://avatars.githubusercontent.com/u/1144873?v=3","gravatar_id":"","url":"https://api.github.com/users/greysteil","html_url":"https://github.com/greysteil","followers_url":"https://api.github.com/users/greysteil/followers","following_url":"https://api.github.com/users/greysteil/following{/other_user}","gists_url":"https://api.github.com/users/greysteil/gists{/gist_id}","starred_url":"https://api.github.com/users/greysteil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greysteil/subscriptions","organizations_url":"https://api.github.com/users/greysteil/orgs","repos_url":"https://api.github.com/users/greysteil/repos","events_url":"https://api.github.com/users/greysteil/events{/privacy}","received_events_url":"https://api.github.com/users/greysteil/received_events","type":"User","site_admin":false},"body":"This is a good pattern suggested in #179. Just affects the ActiveRecord transition model generator.","created_at":"2015-08-12T23:51:08Z","updated_at":"2015-08-12T23:51:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gocardless/statesman/pulls/180/commits","review_comments_url":"https://api.github.com/repos/gocardless/statesman/pulls/180/comments","review_comment_url":"https://api.github.com/repos/gocardless/statesman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gocardless/statesman/issues/180/comments","statuses_url":"https://api.github.com/repos/gocardless/statesman/statuses/8178ec1d036f4fdd0e9243059a620861057eadb7","head":{"label":"gocardless:update-most-recent-after-destroy","ref":"update-most-recent-after-destroy","sha":"8178ec1d036f4fdd0e9243059a620861057eadb7","user":{"login":"gocardless","id":790629,"avatar_url":"https://avatars.githubusercontent.com/u/790629?v=3","gravatar_id":"","url":"https://api.github.com/users/gocardless","html_url":"https://github.com/gocardless","followers_url":"https://api.github.com/users/gocardless/followers","following_url":"https://api.github.com/users/gocardless/following{/other_user}","gists_url":"https://api.github.com/users/gocardless/gists{/gist_id}","starred_url":"https://api.github.com/users/gocardless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocardless/subscriptions","organizations_url":"https://api.github.com/users/gocardless/orgs","repos_url":"https://api.github.com/users/gocardless/repos","events_url":"https://api.github.com/users/gocardless/events{/privacy}","received_events_url":"https://api.github.com/users/gocardless/received_events","type":"Organization","site_admin":false},"repo":{"id":12614368,"name":"statesman","full_name":"gocardless/statesman","owner":{"login":"gocardless","id":790629,"avatar_url":"https://avatars.githubusercontent.com/u/790629?v=3","gravatar_id":"","url":"https://api.github.com/users/gocardless","html_url":"https://github.com/gocardless","followers_url":"https://api.github.com/users/gocardless/followers","following_url":"https://api.github.com/users/gocardless/following{/other_user}","gists_url":"https://api.github.com/users/gocardless/gists{/gist_id}","starred_url":"https://api.github.com/users/gocardless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocardless/subscriptions","organizations_url":"https://api.github.com/users/gocardless/orgs","repos_url":"https://api.github.com/users/gocardless/repos","events_url":"https://api.github.com/users/gocardless/events{/privacy}","received_events_url":"https://api.github.com/users/gocardless/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gocardless/statesman","description":"A statesmanlike state machine library.","fork":false,"url":"https://api.github.com/repos/gocardless/statesman","forks_url":"https://api.github.com/repos/gocardless/statesman/forks","keys_url":"https://api.github.com/repos/gocardless/statesman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gocardless/statesman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gocardless/statesman/teams","hooks_url":"https://api.github.com/repos/gocardless/statesman/hooks","issue_events_url":"https://api.github.com/repos/gocardless/statesman/issues/events{/number}","events_url":"https://api.github.com/repos/gocardless/statesman/events","assignees_url":"https://api.github.com/repos/gocardless/statesman/assignees{/user}","branches_url":"https://api.github.com/repos/gocardless/statesman/branches{/branch}","tags_url":"https://api.github.com/repos/gocardless/statesman/tags","blobs_url":"https://api.github.com/repos/gocardless/statesman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gocardless/statesman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gocardless/statesman/git/refs{/sha}","trees_url":"https://api.github.com/repos/gocardless/statesman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gocardless/statesman/statuses/{sha}","languages_url":"https://api.github.com/repos/gocardless/statesman/languages","stargazers_url":"https://api.github.com/repos/gocardless/statesman/stargazers","contributors_url":"https://api.github.com/repos/gocardless/statesman/contributors","subscribers_url":"https://api.github.com/repos/gocardless/statesman/subscribers","subscription_url":"https://api.github.com/repos/gocardless/statesman/subscription","commits_url":"https://api.github.com/repos/gocardless/statesman/commits{/sha}","git_commits_url":"https://api.github.com/repos/gocardless/statesman/git/commits{/sha}","comments_url":"https://api.github.com/repos/gocardless/statesman/comments{/number}","issue_comment_url":"https://api.github.com/repos/gocardless/statesman/issues/comments{/number}","contents_url":"https://api.github.com/repos/gocardless/statesman/contents/{+path}","compare_url":"https://api.github.com/repos/gocardless/statesman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gocardless/statesman/merges","archive_url":"https://api.github.com/repos/gocardless/statesman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gocardless/statesman/downloads","issues_url":"https://api.github.com/repos/gocardless/statesman/issues{/number}","pulls_url":"https://api.github.com/repos/gocardless/statesman/pulls{/number}","milestones_url":"https://api.github.com/repos/gocardless/statesman/milestones{/number}","notifications_url":"https://api.github.com/repos/gocardless/statesman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gocardless/statesman/labels{/name}","releases_url":"https://api.github.com/repos/gocardless/statesman/releases{/id}","created_at":"2013-09-05T09:42:17Z","updated_at":"2015-08-12T21:20:58Z","pushed_at":"2015-08-12T23:50:00Z","git_url":"git://github.com/gocardless/statesman.git","ssh_url":"git@github.com:gocardless/statesman.git","clone_url":"https://github.com/gocardless/statesman.git","svn_url":"https://github.com/gocardless/statesman","homepage":"https://gocardless.com/blog/statesman/","size":2083,"stargazers_count":597,"watchers_count":597,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":8,"forks":62,"open_issues":8,"watchers":597,"default_branch":"master"}},"base":{"label":"gocardless:master","ref":"master","sha":"5f37b3174267847a906f730670159148377ebff8","user":{"login":"gocardless","id":790629,"avatar_url":"https://avatars.githubusercontent.com/u/790629?v=3","gravatar_id":"","url":"https://api.github.com/users/gocardless","html_url":"https://github.com/gocardless","followers_url":"https://api.github.com/users/gocardless/followers","following_url":"https://api.github.com/users/gocardless/following{/other_user}","gists_url":"https://api.github.com/users/gocardless/gists{/gist_id}","starred_url":"https://api.github.com/users/gocardless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocardless/subscriptions","organizations_url":"https://api.github.com/users/gocardless/orgs","repos_url":"https://api.github.com/users/gocardless/repos","events_url":"https://api.github.com/users/gocardless/events{/privacy}","received_events_url":"https://api.github.com/users/gocardless/received_events","type":"Organization","site_admin":false},"repo":{"id":12614368,"name":"statesman","full_name":"gocardless/statesman","owner":{"login":"gocardless","id":790629,"avatar_url":"https://avatars.githubusercontent.com/u/790629?v=3","gravatar_id":"","url":"https://api.github.com/users/gocardless","html_url":"https://github.com/gocardless","followers_url":"https://api.github.com/users/gocardless/followers","following_url":"https://api.github.com/users/gocardless/following{/other_user}","gists_url":"https://api.github.com/users/gocardless/gists{/gist_id}","starred_url":"https://api.github.com/users/gocardless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocardless/subscriptions","organizations_url":"https://api.github.com/users/gocardless/orgs","repos_url":"https://api.github.com/users/gocardless/repos","events_url":"https://api.github.com/users/gocardless/events{/privacy}","received_events_url":"https://api.github.com/users/gocardless/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gocardless/statesman","description":"A statesmanlike state machine library.","fork":false,"url":"https://api.github.com/repos/gocardless/statesman","forks_url":"https://api.github.com/repos/gocardless/statesman/forks","keys_url":"https://api.github.com/repos/gocardless/statesman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gocardless/statesman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gocardless/statesman/teams","hooks_url":"https://api.github.com/repos/gocardless/statesman/hooks","issue_events_url":"https://api.github.com/repos/gocardless/statesman/issues/events{/number}","events_url":"https://api.github.com/repos/gocardless/statesman/events","assignees_url":"https://api.github.com/repos/gocardless/statesman/assignees{/user}","branches_url":"https://api.github.com/repos/gocardless/statesman/branches{/branch}","tags_url":"https://api.github.com/repos/gocardless/statesman/tags","blobs_url":"https://api.github.com/repos/gocardless/statesman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gocardless/statesman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gocardless/statesman/git/refs{/sha}","trees_url":"https://api.github.com/repos/gocardless/statesman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gocardless/statesman/statuses/{sha}","languages_url":"https://api.github.com/repos/gocardless/statesman/languages","stargazers_url":"https://api.github.com/repos/gocardless/statesman/stargazers","contributors_url":"https://api.github.com/repos/gocardless/statesman/contributors","subscribers_url":"https://api.github.com/repos/gocardless/statesman/subscribers","subscription_url":"https://api.github.com/repos/gocardless/statesman/subscription","commits_url":"https://api.github.com/repos/gocardless/statesman/commits{/sha}","git_commits_url":"https://api.github.com/repos/gocardless/statesman/git/commits{/sha}","comments_url":"https://api.github.com/repos/gocardless/statesman/comments{/number}","issue_comment_url":"https://api.github.com/repos/gocardless/statesman/issues/comments{/number}","contents_url":"https://api.github.com/repos/gocardless/statesman/contents/{+path}","compare_url":"https://api.github.com/repos/gocardless/statesman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gocardless/statesman/merges","archive_url":"https://api.github.com/repos/gocardless/statesman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gocardless/statesman/downloads","issues_url":"https://api.github.com/repos/gocardless/statesman/issues{/number}","pulls_url":"https://api.github.com/repos/gocardless/statesman/pulls{/number}","milestones_url":"https://api.github.com/repos/gocardless/statesman/milestones{/number}","notifications_url":"https://api.github.com/repos/gocardless/statesman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gocardless/statesman/labels{/name}","releases_url":"https://api.github.com/repos/gocardless/statesman/releases{/id}","created_at":"2013-09-05T09:42:17Z","updated_at":"2015-08-12T21:20:58Z","pushed_at":"2015-08-12T23:50:00Z","git_url":"git://github.com/gocardless/statesman.git","ssh_url":"git@github.com:gocardless/statesman.git","clone_url":"https://github.com/gocardless/statesman.git","svn_url":"https://github.com/gocardless/statesman","homepage":"https://gocardless.com/blog/statesman/","size":2083,"stargazers_count":597,"watchers_count":597,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":8,"forks":62,"open_issues":8,"watchers":597,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gocardless/statesman/pulls/180"},"html":{"href":"https://github.com/gocardless/statesman/pull/180"},"issue":{"href":"https://api.github.com/repos/gocardless/statesman/issues/180"},"comments":{"href":"https://api.github.com/repos/gocardless/statesman/issues/180/comments"},"review_comments":{"href":"https://api.github.com/repos/gocardless/statesman/pulls/180/comments"},"review_comment":{"href":"https://api.github.com/repos/gocardless/statesman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gocardless/statesman/pulls/180/commits"},"statuses":{"href":"https://api.github.com/repos/gocardless/statesman/statuses/8178ec1d036f4fdd0e9243059a620861057eadb7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":0,"changed_files":1}}