{"action":"created","comment":{"url":"https://api.github.com/repos/platanus/froggo/pulls/comments/182070228","pull_request_review_id":112806631,"id":182070228,"diff_hunk":"@@ -0,0 +1,16 @@\n+class OrganizationSyncJob < ApplicationJob\n+  def perform(org_sync, token)\n+    org_sync.execute!\n+    org_sync.update! start_time: DateTime.now","path":"app/jobs/organization_sync_job.rb","position":4,"original_position":4,"commit_id":"c8e98434ad43cd010af7807af3b4bccc0f688ae1","original_commit_id":"c8e98434ad43cd010af7807af3b4bccc0f688ae1","user":{"login":"poxvirus","id":2238663,"avatar_url":"https://avatars0.githubusercontent.com/u/2238663?v=4","gravatar_id":"","url":"https://api.github.com/users/poxvirus","html_url":"https://github.com/poxvirus","followers_url":"https://api.github.com/users/poxvirus/followers","following_url":"https://api.github.com/users/poxvirus/following{/other_user}","gists_url":"https://api.github.com/users/poxvirus/gists{/gist_id}","starred_url":"https://api.github.com/users/poxvirus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poxvirus/subscriptions","organizations_url":"https://api.github.com/users/poxvirus/orgs","repos_url":"https://api.github.com/users/poxvirus/repos","events_url":"https://api.github.com/users/poxvirus/events{/privacy}","received_events_url":"https://api.github.com/users/poxvirus/received_events","type":"User","site_admin":false},"body":"Esto debería estar dentro del modelo, ya que siempre se debe guardar la hora actual en start_time al ejecutarse `execute`. Se puede agregar un método en la transición con `event execute, after: :update_start_time` o llamar directo la expresión (sin método aparte) con `Proc.new { update(start_time: DateTime.current)`. Las dos formas las puedes ver en la página de [github de aasm](https://github.com/aasm/aasm#callbacks) o en [picparks](https://github.com/platanus/pic-parks/blob/27773604ccae7e0f1c12399d906559a278c78c59/app/models/payment.rb#L14) lo ocupé.","created_at":"2018-04-17T13:23:51Z","updated_at":"2018-04-17T13:30:04Z","html_url":"https://github.com/platanus/froggo/pull/110#discussion_r182070228","pull_request_url":"https://api.github.com/repos/platanus/froggo/pulls/110","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/platanus/froggo/pulls/comments/182070228"},"html":{"href":"https://github.com/platanus/froggo/pull/110#discussion_r182070228"},"pull_request":{"href":"https://api.github.com/repos/platanus/froggo/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/platanus/froggo/pulls/110","id":180723071,"html_url":"https://github.com/platanus/froggo/pull/110","diff_url":"https://github.com/platanus/froggo/pull/110.diff","patch_url":"https://github.com/platanus/froggo/pull/110.patch","issue_url":"https://api.github.com/repos/platanus/froggo/issues/110","number":110,"state":"open","locked":false,"title":"Feat/reload repo","user":{"login":"mf222","id":5504289,"avatar_url":"https://avatars2.githubusercontent.com/u/5504289?v=4","gravatar_id":"","url":"https://api.github.com/users/mf222","html_url":"https://github.com/mf222","followers_url":"https://api.github.com/users/mf222/followers","following_url":"https://api.github.com/users/mf222/following{/other_user}","gists_url":"https://api.github.com/users/mf222/gists{/gist_id}","starred_url":"https://api.github.com/users/mf222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mf222/subscriptions","organizations_url":"https://api.github.com/users/mf222/orgs","repos_url":"https://api.github.com/users/mf222/repos","events_url":"https://api.github.com/users/mf222/events{/privacy}","received_events_url":"https://api.github.com/users/mf222/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-10T20:47:44Z","updated_at":"2018-04-17T13:30:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b01a1eaded68eb356b0c196f7927d289d67d2708","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/platanus/froggo/pulls/110/commits","review_comments_url":"https://api.github.com/repos/platanus/froggo/pulls/110/comments","review_comment_url":"https://api.github.com/repos/platanus/froggo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/platanus/froggo/issues/110/comments","statuses_url":"https://api.github.com/repos/platanus/froggo/statuses/c8e98434ad43cd010af7807af3b4bccc0f688ae1","head":{"label":"platanus:feat/reload-repo","ref":"feat/reload-repo","sha":"c8e98434ad43cd010af7807af3b4bccc0f688ae1","user":{"login":"platanus","id":1158740,"avatar_url":"https://avatars3.githubusercontent.com/u/1158740?v=4","gravatar_id":"","url":"https://api.github.com/users/platanus","html_url":"https://github.com/platanus","followers_url":"https://api.github.com/users/platanus/followers","following_url":"https://api.github.com/users/platanus/following{/other_user}","gists_url":"https://api.github.com/users/platanus/gists{/gist_id}","starred_url":"https://api.github.com/users/platanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platanus/subscriptions","organizations_url":"https://api.github.com/users/platanus/orgs","repos_url":"https://api.github.com/users/platanus/repos","events_url":"https://api.github.com/users/platanus/events{/privacy}","received_events_url":"https://api.github.com/users/platanus/received_events","type":"Organization","site_admin":false},"repo":{"id":113467395,"name":"froggo","full_name":"platanus/froggo","owner":{"login":"platanus","id":1158740,"avatar_url":"https://avatars3.githubusercontent.com/u/1158740?v=4","gravatar_id":"","url":"https://api.github.com/users/platanus","html_url":"https://github.com/platanus","followers_url":"https://api.github.com/users/platanus/followers","following_url":"https://api.github.com/users/platanus/following{/other_user}","gists_url":"https://api.github.com/users/platanus/gists{/gist_id}","starred_url":"https://api.github.com/users/platanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platanus/subscriptions","organizations_url":"https://api.github.com/users/platanus/orgs","repos_url":"https://api.github.com/users/platanus/repos","events_url":"https://api.github.com/users/platanus/events{/privacy}","received_events_url":"https://api.github.com/users/platanus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/platanus/froggo","description":null,"fork":false,"url":"https://api.github.com/repos/platanus/froggo","forks_url":"https://api.github.com/repos/platanus/froggo/forks","keys_url":"https://api.github.com/repos/platanus/froggo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/platanus/froggo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/platanus/froggo/teams","hooks_url":"https://api.github.com/repos/platanus/froggo/hooks","issue_events_url":"https://api.github.com/repos/platanus/froggo/issues/events{/number}","events_url":"https://api.github.com/repos/platanus/froggo/events","assignees_url":"https://api.github.com/repos/platanus/froggo/assignees{/user}","branches_url":"https://api.github.com/repos/platanus/froggo/branches{/branch}","tags_url":"https://api.github.com/repos/platanus/froggo/tags","blobs_url":"https://api.github.com/repos/platanus/froggo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/platanus/froggo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/platanus/froggo/git/refs{/sha}","trees_url":"https://api.github.com/repos/platanus/froggo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/platanus/froggo/statuses/{sha}","languages_url":"https://api.github.com/repos/platanus/froggo/languages","stargazers_url":"https://api.github.com/repos/platanus/froggo/stargazers","contributors_url":"https://api.github.com/repos/platanus/froggo/contributors","subscribers_url":"https://api.github.com/repos/platanus/froggo/subscribers","subscription_url":"https://api.github.com/repos/platanus/froggo/subscription","commits_url":"https://api.github.com/repos/platanus/froggo/commits{/sha}","git_commits_url":"https://api.github.com/repos/platanus/froggo/git/commits{/sha}","comments_url":"https://api.github.com/repos/platanus/froggo/comments{/number}","issue_comment_url":"https://api.github.com/repos/platanus/froggo/issues/comments{/number}","contents_url":"https://api.github.com/repos/platanus/froggo/contents/{+path}","compare_url":"https://api.github.com/repos/platanus/froggo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/platanus/froggo/merges","archive_url":"https://api.github.com/repos/platanus/froggo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/platanus/froggo/downloads","issues_url":"https://api.github.com/repos/platanus/froggo/issues{/number}","pulls_url":"https://api.github.com/repos/platanus/froggo/pulls{/number}","milestones_url":"https://api.github.com/repos/platanus/froggo/milestones{/number}","notifications_url":"https://api.github.com/repos/platanus/froggo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/platanus/froggo/labels{/name}","releases_url":"https://api.github.com/repos/platanus/froggo/releases{/id}","deployments_url":"https://api.github.com/repos/platanus/froggo/deployments","created_at":"2017-12-07T15:28:02Z","updated_at":"2018-04-12T20:14:18Z","pushed_at":"2018-04-17T13:03:51Z","git_url":"git://github.com/platanus/froggo.git","ssh_url":"git@github.com:platanus/froggo.git","clone_url":"https://github.com/platanus/froggo.git","svn_url":"https://github.com/platanus/froggo","homepage":null,"size":1256,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"platanus:master","ref":"master","sha":"b786150e0ab4593416b6dd9f750b7e83b6177775","user":{"login":"platanus","id":1158740,"avatar_url":"https://avatars3.githubusercontent.com/u/1158740?v=4","gravatar_id":"","url":"https://api.github.com/users/platanus","html_url":"https://github.com/platanus","followers_url":"https://api.github.com/users/platanus/followers","following_url":"https://api.github.com/users/platanus/following{/other_user}","gists_url":"https://api.github.com/users/platanus/gists{/gist_id}","starred_url":"https://api.github.com/users/platanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platanus/subscriptions","organizations_url":"https://api.github.com/users/platanus/orgs","repos_url":"https://api.github.com/users/platanus/repos","events_url":"https://api.github.com/users/platanus/events{/privacy}","received_events_url":"https://api.github.com/users/platanus/received_events","type":"Organization","site_admin":false},"repo":{"id":113467395,"name":"froggo","full_name":"platanus/froggo","owner":{"login":"platanus","id":1158740,"avatar_url":"https://avatars3.githubusercontent.com/u/1158740?v=4","gravatar_id":"","url":"https://api.github.com/users/platanus","html_url":"https://github.com/platanus","followers_url":"https://api.github.com/users/platanus/followers","following_url":"https://api.github.com/users/platanus/following{/other_user}","gists_url":"https://api.github.com/users/platanus/gists{/gist_id}","starred_url":"https://api.github.com/users/platanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platanus/subscriptions","organizations_url":"https://api.github.com/users/platanus/orgs","repos_url":"https://api.github.com/users/platanus/repos","events_url":"https://api.github.com/users/platanus/events{/privacy}","received_events_url":"https://api.github.com/users/platanus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/platanus/froggo","description":null,"fork":false,"url":"https://api.github.com/repos/platanus/froggo","forks_url":"https://api.github.com/repos/platanus/froggo/forks","keys_url":"https://api.github.com/repos/platanus/froggo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/platanus/froggo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/platanus/froggo/teams","hooks_url":"https://api.github.com/repos/platanus/froggo/hooks","issue_events_url":"https://api.github.com/repos/platanus/froggo/issues/events{/number}","events_url":"https://api.github.com/repos/platanus/froggo/events","assignees_url":"https://api.github.com/repos/platanus/froggo/assignees{/user}","branches_url":"https://api.github.com/repos/platanus/froggo/branches{/branch}","tags_url":"https://api.github.com/repos/platanus/froggo/tags","blobs_url":"https://api.github.com/repos/platanus/froggo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/platanus/froggo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/platanus/froggo/git/refs{/sha}","trees_url":"https://api.github.com/repos/platanus/froggo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/platanus/froggo/statuses/{sha}","languages_url":"https://api.github.com/repos/platanus/froggo/languages","stargazers_url":"https://api.github.com/repos/platanus/froggo/stargazers","contributors_url":"https://api.github.com/repos/platanus/froggo/contributors","subscribers_url":"https://api.github.com/repos/platanus/froggo/subscribers","subscription_url":"https://api.github.com/repos/platanus/froggo/subscription","commits_url":"https://api.github.com/repos/platanus/froggo/commits{/sha}","git_commits_url":"https://api.github.com/repos/platanus/froggo/git/commits{/sha}","comments_url":"https://api.github.com/repos/platanus/froggo/comments{/number}","issue_comment_url":"https://api.github.com/repos/platanus/froggo/issues/comments{/number}","contents_url":"https://api.github.com/repos/platanus/froggo/contents/{+path}","compare_url":"https://api.github.com/repos/platanus/froggo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/platanus/froggo/merges","archive_url":"https://api.github.com/repos/platanus/froggo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/platanus/froggo/downloads","issues_url":"https://api.github.com/repos/platanus/froggo/issues{/number}","pulls_url":"https://api.github.com/repos/platanus/froggo/pulls{/number}","milestones_url":"https://api.github.com/repos/platanus/froggo/milestones{/number}","notifications_url":"https://api.github.com/repos/platanus/froggo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/platanus/froggo/labels{/name}","releases_url":"https://api.github.com/repos/platanus/froggo/releases{/id}","deployments_url":"https://api.github.com/repos/platanus/froggo/deployments","created_at":"2017-12-07T15:28:02Z","updated_at":"2018-04-12T20:14:18Z","pushed_at":"2018-04-17T13:03:51Z","git_url":"git://github.com/platanus/froggo.git","ssh_url":"git@github.com:platanus/froggo.git","clone_url":"https://github.com/platanus/froggo.git","svn_url":"https://github.com/platanus/froggo","homepage":null,"size":1256,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/platanus/froggo/pulls/110"},"html":{"href":"https://github.com/platanus/froggo/pull/110"},"issue":{"href":"https://api.github.com/repos/platanus/froggo/issues/110"},"comments":{"href":"https://api.github.com/repos/platanus/froggo/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/platanus/froggo/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/platanus/froggo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/platanus/froggo/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/platanus/froggo/statuses/c8e98434ad43cd010af7807af3b4bccc0f688ae1"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"poxvirus"}}