{"action":"opened","issue":{"url":"https://api.github.com/repos/pabloh/pathway/issues/6","repository_url":"https://api.github.com/repos/pabloh/pathway","labels_url":"https://api.github.com/repos/pabloh/pathway/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/pabloh/pathway/issues/6/comments","events_url":"https://api.github.com/repos/pabloh/pathway/issues/6/events","html_url":"https://github.com/pabloh/pathway/issues/6","id":250716532,"number":6,"title":"Allow to defining an after_commit block inside the process block.","user":{"login":"pabloh","id":134495,"avatar_url":"https://avatars1.githubusercontent.com/u/134495?v=4","gravatar_id":"","url":"https://api.github.com/users/pabloh","html_url":"https://github.com/pabloh","followers_url":"https://api.github.com/users/pabloh/followers","following_url":"https://api.github.com/users/pabloh/following{/other_user}","gists_url":"https://api.github.com/users/pabloh/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloh/subscriptions","organizations_url":"https://api.github.com/users/pabloh/orgs","repos_url":"https://api.github.com/users/pabloh/repos","events_url":"https://api.github.com/users/pabloh/events{/privacy}","received_events_url":"https://api.github.com/users/pabloh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pabloh","id":134495,"avatar_url":"https://avatars1.githubusercontent.com/u/134495?v=4","gravatar_id":"","url":"https://api.github.com/users/pabloh","html_url":"https://github.com/pabloh","followers_url":"https://api.github.com/users/pabloh/followers","following_url":"https://api.github.com/users/pabloh/following{/other_user}","gists_url":"https://api.github.com/users/pabloh/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloh/subscriptions","organizations_url":"https://api.github.com/users/pabloh/orgs","repos_url":"https://api.github.com/users/pabloh/repos","events_url":"https://api.github.com/users/pabloh/events{/privacy}","received_events_url":"https://api.github.com/users/pabloh/received_events","type":"User","site_admin":false},"assignees":[{"login":"pabloh","id":134495,"avatar_url":"https://avatars1.githubusercontent.com/u/134495?v=4","gravatar_id":"","url":"https://api.github.com/users/pabloh","html_url":"https://github.com/pabloh","followers_url":"https://api.github.com/users/pabloh/followers","following_url":"https://api.github.com/users/pabloh/following{/other_user}","gists_url":"https://api.github.com/users/pabloh/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloh/subscriptions","organizations_url":"https://api.github.com/users/pabloh/orgs","repos_url":"https://api.github.com/users/pabloh/repos","events_url":"https://api.github.com/users/pabloh/events{/privacy}","received_events_url":"https://api.github.com/users/pabloh/received_events","type":"User","site_admin":false},{"login":"roupen","id":2273113,"avatar_url":"https://avatars0.githubusercontent.com/u/2273113?v=4","gravatar_id":"","url":"https://api.github.com/users/roupen","html_url":"https://github.com/roupen","followers_url":"https://api.github.com/users/roupen/followers","following_url":"https://api.github.com/users/roupen/following{/other_user}","gists_url":"https://api.github.com/users/roupen/gists{/gist_id}","starred_url":"https://api.github.com/users/roupen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roupen/subscriptions","organizations_url":"https://api.github.com/users/roupen/orgs","repos_url":"https://api.github.com/users/roupen/repos","events_url":"https://api.github.com/users/roupen/events{/privacy}","received_events_url":"https://api.github.com/users/roupen/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-08-16T18:23:00Z","updated_at":"2017-08-16T18:23:00Z","closed_at":null,"body":"When using a transaction allow to define steps to run under an `after_commit` `Sequel` block:\r\n\r\n```ruby\r\n # ...\r\n  process do\r\n    step :validate\r\n    step :fetch_model\r\n    transaction do\r\n      step :save_model\r\n      after_commit do\r\n        step :send_emails\r\n        step :notify\r\n      end\r\n    end\r\n  end\r\n # ...\r\n```"}}
{"actor":{"display_login":"pabloh"}}