{"action":"created","issue":{"url":"https://api.github.com/repos/feross/standard/issues/267","labels_url":"https://api.github.com/repos/feross/standard/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/feross/standard/issues/267/comments","events_url":"https://api.github.com/repos/feross/standard/issues/267/events","html_url":"https://github.com/feross/standard/issues/267","id":107460405,"number":267,"title":"Protected branches","user":{"login":"dcousens","id":413395,"avatar_url":"https://avatars.githubusercontent.com/u/413395?v=3","gravatar_id":"","url":"https://api.github.com/users/dcousens","html_url":"https://github.com/dcousens","followers_url":"https://api.github.com/users/dcousens/followers","following_url":"https://api.github.com/users/dcousens/following{/other_user}","gists_url":"https://api.github.com/users/dcousens/gists{/gist_id}","starred_url":"https://api.github.com/users/dcousens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcousens/subscriptions","organizations_url":"https://api.github.com/users/dcousens/orgs","repos_url":"https://api.github.com/users/dcousens/repos","events_url":"https://api.github.com/users/dcousens/events{/privacy}","received_events_url":"https://api.github.com/users/dcousens/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/feross/standard/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-21T07:50:05Z","updated_at":"2015-09-21T17:18:25Z","closed_at":"2015-09-21T13:48:38Z","body":"@feross any chance we could protect master such that PRs are still the norm?\r\nI'd rather not keep up with the commit log directly if possible."},"comment":{"url":"https://api.github.com/repos/feross/standard/issues/comments/142047420","html_url":"https://github.com/feross/standard/issues/267#issuecomment-142047420","issue_url":"https://api.github.com/repos/feross/standard/issues/267","id":142047420,"user":{"login":"feross","id":121766,"avatar_url":"https://avatars.githubusercontent.com/u/121766?v=3","gravatar_id":"","url":"https://api.github.com/users/feross","html_url":"https://github.com/feross","followers_url":"https://api.github.com/users/feross/followers","following_url":"https://api.github.com/users/feross/following{/other_user}","gists_url":"https://api.github.com/users/feross/gists{/gist_id}","starred_url":"https://api.github.com/users/feross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feross/subscriptions","organizations_url":"https://api.github.com/users/feross/orgs","repos_url":"https://api.github.com/users/feross/repos","events_url":"https://api.github.com/users/feross/events{/privacy}","received_events_url":"https://api.github.com/users/feross/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T17:18:24Z","updated_at":"2015-09-21T17:18:24Z","body":"Yep, seems that this does what @dcousens wants.\r\n\r\n```\r\nremote: error: GH006: Protected branch update failed for refs/heads/master.\r\nremote: error: Required status check \"continuous-integration/travis-ci\" is expected\r\nTo git@github.com:feross/standard.git\r\n ! [remote rejected] master -> master (protected branch hook declined)\r\nerror: failed to push some refs to 'git@github.com:feross/standard.git'\r\n```\r\n\r\nHappy to try it out for a while. I like the idea that it increases visibility of changes by making it impossible to sneak in commits without people getting email notifications."}}