{"action":"created","issue":{"url":"https://api.github.com/repos/alexellis/derek/issues/47","repository_url":"https://api.github.com/repos/alexellis/derek","labels_url":"https://api.github.com/repos/alexellis/derek/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/alexellis/derek/issues/47/comments","events_url":"https://api.github.com/repos/alexellis/derek/issues/47/events","html_url":"https://github.com/alexellis/derek/pull/47","id":310355087,"number":47,"title":"[WIP] Add PR branch validation","user":{"login":"iyovcheva","id":4160133,"avatar_url":"https://avatars3.githubusercontent.com/u/4160133?v=4","gravatar_id":"","url":"https://api.github.com/users/iyovcheva","html_url":"https://github.com/iyovcheva","followers_url":"https://api.github.com/users/iyovcheva/followers","following_url":"https://api.github.com/users/iyovcheva/following{/other_user}","gists_url":"https://api.github.com/users/iyovcheva/gists{/gist_id}","starred_url":"https://api.github.com/users/iyovcheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iyovcheva/subscriptions","organizations_url":"https://api.github.com/users/iyovcheva/orgs","repos_url":"https://api.github.com/users/iyovcheva/repos","events_url":"https://api.github.com/users/iyovcheva/events{/privacy}","received_events_url":"https://api.github.com/users/iyovcheva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-01T21:22:09Z","updated_at":"2018-04-02T08:11:05Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/alexellis/derek/pulls/47","html_url":"https://github.com/alexellis/derek/pull/47","diff_url":"https://github.com/alexellis/derek/pull/47.diff","patch_url":"https://github.com/alexellis/derek/pull/47.patch"},"body":"This checks if the branch a pull request is raised from is non-master.\r\nValidates, as well, if a pull request is raised against the default(master) branch.\r\n\r\nSigned-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>\r\n\r\nRaised in issue [#17](https://github.com/alexellis/derek/issues/17)\r\n\r\nTODOs:\r\n* Add tests\r\n* Check how to update pull status with go-github"},"comment":{"url":"https://api.github.com/repos/alexellis/derek/issues/comments/377881119","html_url":"https://github.com/alexellis/derek/pull/47#issuecomment-377881119","issue_url":"https://api.github.com/repos/alexellis/derek/issues/47","id":377881119,"user":{"login":"alexellis","id":6358735,"avatar_url":"https://avatars1.githubusercontent.com/u/6358735?v=4","gravatar_id":"","url":"https://api.github.com/users/alexellis","html_url":"https://github.com/alexellis","followers_url":"https://api.github.com/users/alexellis/followers","following_url":"https://api.github.com/users/alexellis/following{/other_user}","gists_url":"https://api.github.com/users/alexellis/gists{/gist_id}","starred_url":"https://api.github.com/users/alexellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexellis/subscriptions","organizations_url":"https://api.github.com/users/alexellis/orgs","repos_url":"https://api.github.com/users/alexellis/repos","events_url":"https://api.github.com/users/alexellis/events{/privacy}","received_events_url":"https://api.github.com/users/alexellis/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T08:11:05Z","updated_at":"2018-04-02T08:11:05Z","author_association":"OWNER","body":"> Check how to update pull status with go-github\r\n\r\nThis scenario cannot be recovered without raising a new PR from a different remote branch so I'd suggest not using the status API and instead using a label.\r\n\r\nVia @rgee0 in the issue description:\r\n\r\n> Upon submission of a PR Derek should check the originating branch name, and if he finds master the PR closed with a message advising the user that they should re-submit from a non-master branch. Also, check that pull request is against master / default.\r\n"}}
{"actor":{"display_login":"alexellis"}}