{"action":"created","issue":{"url":"https://api.github.com/repos/eventespresso/eea-wait-lists/issues/1","repository_url":"https://api.github.com/repos/eventespresso/eea-wait-lists","labels_url":"https://api.github.com/repos/eventespresso/eea-wait-lists/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/eventespresso/eea-wait-lists/issues/1/comments","events_url":"https://api.github.com/repos/eventespresso/eea-wait-lists/issues/1/events","html_url":"https://github.com/eventespresso/eea-wait-lists/issues/1","id":302468510,"number":1,"title":"How to trigger the autopromote functionality?","user":{"login":"individualae","id":864875,"avatar_url":"https://avatars0.githubusercontent.com/u/864875?v=4","gravatar_id":"","url":"https://api.github.com/users/individualae","html_url":"https://github.com/individualae","followers_url":"https://api.github.com/users/individualae/followers","following_url":"https://api.github.com/users/individualae/following{/other_user}","gists_url":"https://api.github.com/users/individualae/gists{/gist_id}","starred_url":"https://api.github.com/users/individualae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/individualae/subscriptions","organizations_url":"https://api.github.com/users/individualae/orgs","repos_url":"https://api.github.com/users/individualae/repos","events_url":"https://api.github.com/users/individualae/events{/privacy}","received_events_url":"https://api.github.com/users/individualae/received_events","type":"User","site_admin":false},"labels":[{"id":589691430,"url":"https://api.github.com/repos/eventespresso/eea-wait-lists/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"tn3rb","id":1751030,"avatar_url":"https://avatars1.githubusercontent.com/u/1751030?v=4","gravatar_id":"","url":"https://api.github.com/users/tn3rb","html_url":"https://github.com/tn3rb","followers_url":"https://api.github.com/users/tn3rb/followers","following_url":"https://api.github.com/users/tn3rb/following{/other_user}","gists_url":"https://api.github.com/users/tn3rb/gists{/gist_id}","starred_url":"https://api.github.com/users/tn3rb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tn3rb/subscriptions","organizations_url":"https://api.github.com/users/tn3rb/orgs","repos_url":"https://api.github.com/users/tn3rb/repos","events_url":"https://api.github.com/users/tn3rb/events{/privacy}","received_events_url":"https://api.github.com/users/tn3rb/received_events","type":"User","site_admin":false},"assignees":[{"login":"tn3rb","id":1751030,"avatar_url":"https://avatars1.githubusercontent.com/u/1751030?v=4","gravatar_id":"","url":"https://api.github.com/users/tn3rb","html_url":"https://github.com/tn3rb","followers_url":"https://api.github.com/users/tn3rb/followers","following_url":"https://api.github.com/users/tn3rb/following{/other_user}","gists_url":"https://api.github.com/users/tn3rb/gists{/gist_id}","starred_url":"https://api.github.com/users/tn3rb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tn3rb/subscriptions","organizations_url":"https://api.github.com/users/tn3rb/orgs","repos_url":"https://api.github.com/users/tn3rb/repos","events_url":"https://api.github.com/users/tn3rb/events{/privacy}","received_events_url":"https://api.github.com/users/tn3rb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-05T21:23:54Z","updated_at":"2018-03-12T03:40:28Z","closed_at":null,"author_association":"NONE","body":"How can I tap into the autopromote functionality? Now it's triggered when an event is updated. How can I access that functionality?"},"comment":{"url":"https://api.github.com/repos/eventespresso/eea-wait-lists/issues/comments/372185767","html_url":"https://github.com/eventespresso/eea-wait-lists/issues/1#issuecomment-372185767","issue_url":"https://api.github.com/repos/eventespresso/eea-wait-lists/issues/1","id":372185767,"user":{"login":"tn3rb","id":1751030,"avatar_url":"https://avatars1.githubusercontent.com/u/1751030?v=4","gravatar_id":"","url":"https://api.github.com/users/tn3rb","html_url":"https://github.com/tn3rb","followers_url":"https://api.github.com/users/tn3rb/followers","following_url":"https://api.github.com/users/tn3rb/following{/other_user}","gists_url":"https://api.github.com/users/tn3rb/gists{/gist_id}","starred_url":"https://api.github.com/users/tn3rb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tn3rb/subscriptions","organizations_url":"https://api.github.com/users/tn3rb/orgs","repos_url":"https://api.github.com/users/tn3rb/repos","events_url":"https://api.github.com/users/tn3rb/events{/privacy}","received_events_url":"https://api.github.com/users/tn3rb/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T03:40:28Z","updated_at":"2018-03-12T03:40:28Z","author_association":"MEMBER","body":"Not sure exactly what you want to do since your question is somewhat vague...\r\nbut everything related  to auto-promotion happens in `EventEspresso\\WaitList\\domain\\services\\commands\\PromoteWaitListRegistrantsCommandHandler::autoPromoteRegistrations()`.\r\n\r\nThere is an action  hook at the end of that method that you could use to \"tap into\" that process:\r\n\r\n`'AHEE__EventEspresso_WaitList_domain_services_commands_PromoteWaitListRegistrantsCommandHandler__autoPromoteRegistrations'`\r\n\r\nHope that helps"}}
{"actor":{"display_login":"tn3rb"}}