{"action":"created","issue":{"url":"https://api.github.com/repos/archlinuxcn/repo/issues/272","repository_url":"https://api.github.com/repos/archlinuxcn/repo","labels_url":"https://api.github.com/repos/archlinuxcn/repo/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/archlinuxcn/repo/issues/272/comments","events_url":"https://api.github.com/repos/archlinuxcn/repo/issues/272/events","html_url":"https://github.com/archlinuxcn/repo/issues/272","id":176403019,"number":272,"title":"使用webhooks做代码检查","user":{"login":"petronny","id":5357170,"avatar_url":"https://avatars.githubusercontent.com/u/5357170?v=3","gravatar_id":"","url":"https://api.github.com/users/petronny","html_url":"https://github.com/petronny","followers_url":"https://api.github.com/users/petronny/followers","following_url":"https://api.github.com/users/petronny/following{/other_user}","gists_url":"https://api.github.com/users/petronny/gists{/gist_id}","starred_url":"https://api.github.com/users/petronny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petronny/subscriptions","organizations_url":"https://api.github.com/users/petronny/orgs","repos_url":"https://api.github.com/users/petronny/repos","events_url":"https://api.github.com/users/petronny/events{/privacy}","received_events_url":"https://api.github.com/users/petronny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-12T15:16:45Z","updated_at":"2016-09-13T12:34:48Z","closed_at":null,"body":" 额。。我没接触过github webhooks\r\n不知道能不能实现pre-commit的功能呢..\r\n我看了一下[events list](https://developer.github.com/webhooks/#events)\r\n貌似是没有能pre-recieve的功能的？\r\n\r\n那么下面这个思路行不行？\r\n大家还是向master推，但是创建一个新分支lilac\r\nwebhook hook push，内容是\r\n服务器端pull新的提交，做代码检查，通过则merge进lilac分支\r\n不通过则不merge进lilac分支，然后通过某种方式通知提交者出错了\r\nbuild机的lilac则使用lilac分支来build包"},"comment":{"url":"https://api.github.com/repos/archlinuxcn/repo/issues/comments/246666845","html_url":"https://github.com/archlinuxcn/repo/issues/272#issuecomment-246666845","issue_url":"https://api.github.com/repos/archlinuxcn/repo/issues/272","id":246666845,"user":{"login":"lilydjwg","id":440661,"avatar_url":"https://avatars.githubusercontent.com/u/440661?v=3","gravatar_id":"","url":"https://api.github.com/users/lilydjwg","html_url":"https://github.com/lilydjwg","followers_url":"https://api.github.com/users/lilydjwg/followers","following_url":"https://api.github.com/users/lilydjwg/following{/other_user}","gists_url":"https://api.github.com/users/lilydjwg/gists{/gist_id}","starred_url":"https://api.github.com/users/lilydjwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilydjwg/subscriptions","organizations_url":"https://api.github.com/users/lilydjwg/orgs","repos_url":"https://api.github.com/users/lilydjwg/repos","events_url":"https://api.github.com/users/lilydjwg/events{/privacy}","received_events_url":"https://api.github.com/users/lilydjwg/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T12:34:48Z","updated_at":"2016-09-13T12:34:48Z","body":"@farseerfc 加呗。"}}
{"actor":{"display_login":"lilydjwg"}}