{"action":"created","issue":{"url":"https://api.github.com/repos/zerocracy/farm/issues/719","repository_url":"https://api.github.com/repos/zerocracy/farm","labels_url":"https://api.github.com/repos/zerocracy/farm/issues/719/labels{/name}","comments_url":"https://api.github.com/repos/zerocracy/farm/issues/719/comments","events_url":"https://api.github.com/repos/zerocracy/farm/issues/719/events","html_url":"https://github.com/zerocracy/farm/pull/719","id":302094926,"number":719,"title":"#229 assign_role fails if user is not on Github","user":{"login":"amihaiemil","id":6305156,"avatar_url":"https://avatars0.githubusercontent.com/u/6305156?v=4","gravatar_id":"","url":"https://api.github.com/users/amihaiemil","html_url":"https://github.com/amihaiemil","followers_url":"https://api.github.com/users/amihaiemil/followers","following_url":"https://api.github.com/users/amihaiemil/following{/other_user}","gists_url":"https://api.github.com/users/amihaiemil/gists{/gist_id}","starred_url":"https://api.github.com/users/amihaiemil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amihaiemil/subscriptions","organizations_url":"https://api.github.com/users/amihaiemil/orgs","repos_url":"https://api.github.com/users/amihaiemil/repos","events_url":"https://api.github.com/users/amihaiemil/events{/privacy}","received_events_url":"https://api.github.com/users/amihaiemil/received_events","type":"User","site_admin":false},"labels":[{"id":817441668,"url":"https://api.github.com/repos/zerocracy/farm/labels/scope","name":"scope","color":"3a6622","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-03-04T15:32:44Z","updated_at":"2018-03-08T07:26:50Z","closed_at":"2018-03-06T15:40:30Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/zerocracy/farm/pulls/719","html_url":"https://github.com/zerocracy/farm/pull/719","diff_url":"https://github.com/zerocracy/farm/pull/719.diff","patch_url":"https://github.com/zerocracy/farm/pull/719.patch"},"body":"Pr for #229 \r\n\r\nThe code is rather ugly and it cannot easily be tested because MkUser does not behave the same as RtUser -- MkUser.json() simply returns ``{login: username}`` for any login input. In order to properly test this scenario, we would need another mock implementation of User, decorate the test Github instance somehow (its Users, to be more precise, they should return another version of MkUser). \r\n\r\nFurthermore, the user ``Github`` instance is wraped inside ``ExtGithub`` scalar and cannot be changed at all -- that class should be refactored."},"comment":{"url":"https://api.github.com/repos/zerocracy/farm/issues/comments/371403260","html_url":"https://github.com/zerocracy/farm/pull/719#issuecomment-371403260","issue_url":"https://api.github.com/repos/zerocracy/farm/issues/719","id":371403260,"user":{"login":"yegor256","id":526301,"avatar_url":"https://avatars3.githubusercontent.com/u/526301?v=4","gravatar_id":"","url":"https://api.github.com/users/yegor256","html_url":"https://github.com/yegor256","followers_url":"https://api.github.com/users/yegor256/followers","following_url":"https://api.github.com/users/yegor256/following{/other_user}","gists_url":"https://api.github.com/users/yegor256/gists{/gist_id}","starred_url":"https://api.github.com/users/yegor256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegor256/subscriptions","organizations_url":"https://api.github.com/users/yegor256/orgs","repos_url":"https://api.github.com/users/yegor256/repos","events_url":"https://api.github.com/users/yegor256/events{/privacy}","received_events_url":"https://api.github.com/users/yegor256/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T07:26:50Z","updated_at":"2018-03-08T07:26:50Z","author_association":"OWNER","body":"@0crat pay 15min @carlosmiranda "}}
{"actor":{"display_login":"yegor256"}}