{"action":"created","issue":{"url":"https://api.github.com/repos/JamesIves/github-pages-deploy-action/issues/41","repository_url":"https://api.github.com/repos/JamesIves/github-pages-deploy-action","labels_url":"https://api.github.com/repos/JamesIves/github-pages-deploy-action/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/JamesIves/github-pages-deploy-action/issues/41/comments","events_url":"https://api.github.com/repos/JamesIves/github-pages-deploy-action/issues/41/events","html_url":"https://github.com/JamesIves/github-pages-deploy-action/issues/41","id":509686538,"node_id":"MDU6SXNzdWU1MDk2ODY1Mzg=","number":41,"title":"Allow pushing/deploying to protected branches","user":{"login":"BryceMehring","id":2982422,"node_id":"MDQ6VXNlcjI5ODI0MjI=","avatar_url":"https://avatars1.githubusercontent.com/u/2982422?v=4","gravatar_id":"","url":"https://api.github.com/users/BryceMehring","html_url":"https://github.com/BryceMehring","followers_url":"https://api.github.com/users/BryceMehring/followers","following_url":"https://api.github.com/users/BryceMehring/following{/other_user}","gists_url":"https://api.github.com/users/BryceMehring/gists{/gist_id}","starred_url":"https://api.github.com/users/BryceMehring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryceMehring/subscriptions","organizations_url":"https://api.github.com/users/BryceMehring/orgs","repos_url":"https://api.github.com/users/BryceMehring/repos","events_url":"https://api.github.com/users/BryceMehring/events{/privacy}","received_events_url":"https://api.github.com/users/BryceMehring/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-10-21T01:35:44Z","updated_at":"2019-10-21T17:34:27Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\n\r\nIf the deploy branch is protected, the deploy fails with the following error: `remote: error: Cannot force-push to a protected branch `.\r\n\r\nCan we allow pushing to protected branches?\r\n"},"comment":{"url":"https://api.github.com/repos/JamesIves/github-pages-deploy-action/issues/comments/544623684","html_url":"https://github.com/JamesIves/github-pages-deploy-action/issues/41#issuecomment-544623684","issue_url":"https://api.github.com/repos/JamesIves/github-pages-deploy-action/issues/41","id":544623684,"node_id":"MDEyOklzc3VlQ29tbWVudDU0NDYyMzY4NA==","user":{"login":"BryceMehring","id":2982422,"node_id":"MDQ6VXNlcjI5ODI0MjI=","avatar_url":"https://avatars1.githubusercontent.com/u/2982422?v=4","gravatar_id":"","url":"https://api.github.com/users/BryceMehring","html_url":"https://github.com/BryceMehring","followers_url":"https://api.github.com/users/BryceMehring/followers","following_url":"https://api.github.com/users/BryceMehring/following{/other_user}","gists_url":"https://api.github.com/users/BryceMehring/gists{/gist_id}","starred_url":"https://api.github.com/users/BryceMehring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryceMehring/subscriptions","organizations_url":"https://api.github.com/users/BryceMehring/orgs","repos_url":"https://api.github.com/users/BryceMehring/repos","events_url":"https://api.github.com/users/BryceMehring/events{/privacy}","received_events_url":"https://api.github.com/users/BryceMehring/received_events","type":"User","site_admin":false},"created_at":"2019-10-21T17:34:27Z","updated_at":"2019-10-21T17:34:27Z","author_association":"NONE","body":"I've enabled branch protection only to prevent force pushing which this\nproject utilizes. There are other forms of branch protection which I'm not\nusing which I agree is overkill for an automated deployment.\n\n\n\nOn Mon, Oct 21, 2019, 8:18 AM James Ives <notifications@github.com> wrote:\n\n> I don't think this is possible as protected branches have specific rules\n> that need to be followed before pushing is allowed. If the deployment step\n> is automatically pushing to the branch does it need to be protected to\n> begin with?\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/JamesIves/github-pages-deploy-action/issues/41?email_source=notifications&email_token=AAWYEFSLXRB3OJWCFPTYJI3QPWT3BA5CNFSM4JCXB3OKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB2JECI#issuecomment-544510473>,\n> or unsubscribe\n> <https://github.com/notifications/unsubscribe-auth/AAWYEFRB753U5DKEMYDPGHLQPWT3BANCNFSM4JCXB3OA>\n> .\n>\n"}}
{"actor":{"display_login":"BryceMehring"}}