{"action":"opened","number":1290,"pull_request":{"url":"https://api.github.com/repos/redux-saga/redux-saga/pulls/1290","id":157417068,"html_url":"https://github.com/redux-saga/redux-saga/pull/1290","diff_url":"https://github.com/redux-saga/redux-saga/pull/1290.diff","patch_url":"https://github.com/redux-saga/redux-saga/pull/1290.patch","issue_url":"https://api.github.com/repos/redux-saga/redux-saga/issues/1290","number":1290,"state":"open","locked":false,"title":"Modify publication script so gh-pages can be protected","user":{"login":"lukePeavey","id":8286271,"avatar_url":"https://avatars1.githubusercontent.com/u/8286271?v=4","gravatar_id":"","url":"https://api.github.com/users/lukePeavey","html_url":"https://github.com/lukePeavey","followers_url":"https://api.github.com/users/lukePeavey/followers","following_url":"https://api.github.com/users/lukePeavey/following{/other_user}","gists_url":"https://api.github.com/users/lukePeavey/gists{/gist_id}","starred_url":"https://api.github.com/users/lukePeavey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukePeavey/subscriptions","organizations_url":"https://api.github.com/users/lukePeavey/orgs","repos_url":"https://api.github.com/users/lukePeavey/repos","events_url":"https://api.github.com/users/lukePeavey/events{/privacy}","received_events_url":"https://api.github.com/users/lukePeavey/received_events","type":"User","site_admin":false},"body":"Possible solution for #1252\r\n\r\nI modified the publication script to use the [gh-pages](https://github.com/tschaub/gh-pages) package to deploy the documentation site. It performs the same task as the current script but doesn't force push to gh-pages. Instead, a new commit will be added each time the script is run. \r\n\r\nI've tested this and it seems to be working fine. The branch generated by the new script is identical to the current one. \r\n\r\nThere is one caveat...  if the gh-pages branch is deleted from the remote repository, you need to run `gh-pages-clean` to clear the package's cache before running the publish script again. Otherwise you'll get an error. (see [this issue](https://github.com/tschaub/gh-pages/issues/17)).\r\n\r\nThis can be run manually if needed `node_modules/.bin/gh-pages-clean`\r\n\r\nAnother possibility would be to add it to the `docs:clean` script so it runs automatically before each publish. This makes the script a bit slower (because `gh-pages` will create a temporary clone of the repo each time instead of using the cached one). \r\n\r\nLet me know if you questions/thoughts. Im happy to provide additional info or update the PR. \r\n\r\n","created_at":"2017-12-10T04:56:39Z","updated_at":"2017-12-10T04:56:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/redux-saga/redux-saga/pulls/1290/commits","review_comments_url":"https://api.github.com/repos/redux-saga/redux-saga/pulls/1290/comments","review_comment_url":"https://api.github.com/repos/redux-saga/redux-saga/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redux-saga/redux-saga/issues/1290/comments","statuses_url":"https://api.github.com/repos/redux-saga/redux-saga/statuses/0b27636276af3374e1dcff1a96ae366881eb1ac4","head":{"label":"lukePeavey:modify-publication-script","ref":"modify-publication-script","sha":"0b27636276af3374e1dcff1a96ae366881eb1ac4","user":{"login":"lukePeavey","id":8286271,"avatar_url":"https://avatars1.githubusercontent.com/u/8286271?v=4","gravatar_id":"","url":"https://api.github.com/users/lukePeavey","html_url":"https://github.com/lukePeavey","followers_url":"https://api.github.com/users/lukePeavey/followers","following_url":"https://api.github.com/users/lukePeavey/following{/other_user}","gists_url":"https://api.github.com/users/lukePeavey/gists{/gist_id}","starred_url":"https://api.github.com/users/lukePeavey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukePeavey/subscriptions","organizations_url":"https://api.github.com/users/lukePeavey/orgs","repos_url":"https://api.github.com/users/lukePeavey/repos","events_url":"https://api.github.com/users/lukePeavey/events{/privacy}","received_events_url":"https://api.github.com/users/lukePeavey/received_events","type":"User","site_admin":false},"repo":{"id":111757908,"name":"redux-saga","full_name":"lukePeavey/redux-saga","owner":{"login":"lukePeavey","id":8286271,"avatar_url":"https://avatars1.githubusercontent.com/u/8286271?v=4","gravatar_id":"","url":"https://api.github.com/users/lukePeavey","html_url":"https://github.com/lukePeavey","followers_url":"https://api.github.com/users/lukePeavey/followers","following_url":"https://api.github.com/users/lukePeavey/following{/other_user}","gists_url":"https://api.github.com/users/lukePeavey/gists{/gist_id}","starred_url":"https://api.github.com/users/lukePeavey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukePeavey/subscriptions","organizations_url":"https://api.github.com/users/lukePeavey/orgs","repos_url":"https://api.github.com/users/lukePeavey/repos","events_url":"https://api.github.com/users/lukePeavey/events{/privacy}","received_events_url":"https://api.github.com/users/lukePeavey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukePeavey/redux-saga","description":"An alternative side effect model for Redux apps","fork":true,"url":"https://api.github.com/repos/lukePeavey/redux-saga","forks_url":"https://api.github.com/repos/lukePeavey/redux-saga/forks","keys_url":"https://api.github.com/repos/lukePeavey/redux-saga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukePeavey/redux-saga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukePeavey/redux-saga/teams","hooks_url":"https://api.github.com/repos/lukePeavey/redux-saga/hooks","issue_events_url":"https://api.github.com/repos/lukePeavey/redux-saga/issues/events{/number}","events_url":"https://api.github.com/repos/lukePeavey/redux-saga/events","assignees_url":"https://api.github.com/repos/lukePeavey/redux-saga/assignees{/user}","branches_url":"https://api.github.com/repos/lukePeavey/redux-saga/branches{/branch}","tags_url":"https://api.github.com/repos/lukePeavey/redux-saga/tags","blobs_url":"https://api.github.com/repos/lukePeavey/redux-saga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukePeavey/redux-saga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukePeavey/redux-saga/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukePeavey/redux-saga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukePeavey/redux-saga/statuses/{sha}","languages_url":"https://api.github.com/repos/lukePeavey/redux-saga/languages","stargazers_url":"https://api.github.com/repos/lukePeavey/redux-saga/stargazers","contributors_url":"https://api.github.com/repos/lukePeavey/redux-saga/contributors","subscribers_url":"https://api.github.com/repos/lukePeavey/redux-saga/subscribers","subscription_url":"https://api.github.com/repos/lukePeavey/redux-saga/subscription","commits_url":"https://api.github.com/repos/lukePeavey/redux-saga/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukePeavey/redux-saga/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukePeavey/redux-saga/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukePeavey/redux-saga/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukePeavey/redux-saga/contents/{+path}","compare_url":"https://api.github.com/repos/lukePeavey/redux-saga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukePeavey/redux-saga/merges","archive_url":"https://api.github.com/repos/lukePeavey/redux-saga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukePeavey/redux-saga/downloads","issues_url":"https://api.github.com/repos/lukePeavey/redux-saga/issues{/number}","pulls_url":"https://api.github.com/repos/lukePeavey/redux-saga/pulls{/number}","milestones_url":"https://api.github.com/repos/lukePeavey/redux-saga/milestones{/number}","notifications_url":"https://api.github.com/repos/lukePeavey/redux-saga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukePeavey/redux-saga/labels{/name}","releases_url":"https://api.github.com/repos/lukePeavey/redux-saga/releases{/id}","deployments_url":"https://api.github.com/repos/lukePeavey/redux-saga/deployments","created_at":"2017-11-23T03:18:04Z","updated_at":"2017-11-23T03:18:07Z","pushed_at":"2017-12-08T08:15:29Z","git_url":"git://github.com/lukePeavey/redux-saga.git","ssh_url":"git@github.com:lukePeavey/redux-saga.git","clone_url":"https://github.com/lukePeavey/redux-saga.git","svn_url":"https://github.com/lukePeavey/redux-saga","homepage":"https://redux-saga.js.org/","size":5935,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"redux-saga:master","ref":"master","sha":"60f4787871c56cb37028270ee39e4192d7b55a3f","user":{"login":"redux-saga","id":24776643,"avatar_url":"https://avatars2.githubusercontent.com/u/24776643?v=4","gravatar_id":"","url":"https://api.github.com/users/redux-saga","html_url":"https://github.com/redux-saga","followers_url":"https://api.github.com/users/redux-saga/followers","following_url":"https://api.github.com/users/redux-saga/following{/other_user}","gists_url":"https://api.github.com/users/redux-saga/gists{/gist_id}","starred_url":"https://api.github.com/users/redux-saga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redux-saga/subscriptions","organizations_url":"https://api.github.com/users/redux-saga/orgs","repos_url":"https://api.github.com/users/redux-saga/repos","events_url":"https://api.github.com/users/redux-saga/events{/privacy}","received_events_url":"https://api.github.com/users/redux-saga/received_events","type":"Organization","site_admin":false},"repo":{"id":47071941,"name":"redux-saga","full_name":"redux-saga/redux-saga","owner":{"login":"redux-saga","id":24776643,"avatar_url":"https://avatars2.githubusercontent.com/u/24776643?v=4","gravatar_id":"","url":"https://api.github.com/users/redux-saga","html_url":"https://github.com/redux-saga","followers_url":"https://api.github.com/users/redux-saga/followers","following_url":"https://api.github.com/users/redux-saga/following{/other_user}","gists_url":"https://api.github.com/users/redux-saga/gists{/gist_id}","starred_url":"https://api.github.com/users/redux-saga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redux-saga/subscriptions","organizations_url":"https://api.github.com/users/redux-saga/orgs","repos_url":"https://api.github.com/users/redux-saga/repos","events_url":"https://api.github.com/users/redux-saga/events{/privacy}","received_events_url":"https://api.github.com/users/redux-saga/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redux-saga/redux-saga","description":"An alternative side effect model for Redux apps","fork":false,"url":"https://api.github.com/repos/redux-saga/redux-saga","forks_url":"https://api.github.com/repos/redux-saga/redux-saga/forks","keys_url":"https://api.github.com/repos/redux-saga/redux-saga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redux-saga/redux-saga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redux-saga/redux-saga/teams","hooks_url":"https://api.github.com/repos/redux-saga/redux-saga/hooks","issue_events_url":"https://api.github.com/repos/redux-saga/redux-saga/issues/events{/number}","events_url":"https://api.github.com/repos/redux-saga/redux-saga/events","assignees_url":"https://api.github.com/repos/redux-saga/redux-saga/assignees{/user}","branches_url":"https://api.github.com/repos/redux-saga/redux-saga/branches{/branch}","tags_url":"https://api.github.com/repos/redux-saga/redux-saga/tags","blobs_url":"https://api.github.com/repos/redux-saga/redux-saga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redux-saga/redux-saga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redux-saga/redux-saga/git/refs{/sha}","trees_url":"https://api.github.com/repos/redux-saga/redux-saga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redux-saga/redux-saga/statuses/{sha}","languages_url":"https://api.github.com/repos/redux-saga/redux-saga/languages","stargazers_url":"https://api.github.com/repos/redux-saga/redux-saga/stargazers","contributors_url":"https://api.github.com/repos/redux-saga/redux-saga/contributors","subscribers_url":"https://api.github.com/repos/redux-saga/redux-saga/subscribers","subscription_url":"https://api.github.com/repos/redux-saga/redux-saga/subscription","commits_url":"https://api.github.com/repos/redux-saga/redux-saga/commits{/sha}","git_commits_url":"https://api.github.com/repos/redux-saga/redux-saga/git/commits{/sha}","comments_url":"https://api.github.com/repos/redux-saga/redux-saga/comments{/number}","issue_comment_url":"https://api.github.com/repos/redux-saga/redux-saga/issues/comments{/number}","contents_url":"https://api.github.com/repos/redux-saga/redux-saga/contents/{+path}","compare_url":"https://api.github.com/repos/redux-saga/redux-saga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redux-saga/redux-saga/merges","archive_url":"https://api.github.com/repos/redux-saga/redux-saga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redux-saga/redux-saga/downloads","issues_url":"https://api.github.com/repos/redux-saga/redux-saga/issues{/number}","pulls_url":"https://api.github.com/repos/redux-saga/redux-saga/pulls{/number}","milestones_url":"https://api.github.com/repos/redux-saga/redux-saga/milestones{/number}","notifications_url":"https://api.github.com/repos/redux-saga/redux-saga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redux-saga/redux-saga/labels{/name}","releases_url":"https://api.github.com/repos/redux-saga/redux-saga/releases{/id}","deployments_url":"https://api.github.com/repos/redux-saga/redux-saga/deployments","created_at":"2015-11-29T16:58:12Z","updated_at":"2017-12-10T04:07:44Z","pushed_at":"2017-12-09T22:40:06Z","git_url":"git://github.com/redux-saga/redux-saga.git","ssh_url":"git@github.com:redux-saga/redux-saga.git","clone_url":"https://github.com/redux-saga/redux-saga.git","svn_url":"https://github.com/redux-saga/redux-saga","homepage":"https://redux-saga.js.org/","size":5919,"stargazers_count":10974,"watchers_count":10974,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":873,"mirror_url":null,"archived":false,"open_issues_count":72,"license":null,"forks":873,"open_issues":72,"watchers":10974,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redux-saga/redux-saga/pulls/1290"},"html":{"href":"https://github.com/redux-saga/redux-saga/pull/1290"},"issue":{"href":"https://api.github.com/repos/redux-saga/redux-saga/issues/1290"},"comments":{"href":"https://api.github.com/repos/redux-saga/redux-saga/issues/1290/comments"},"review_comments":{"href":"https://api.github.com/repos/redux-saga/redux-saga/pulls/1290/comments"},"review_comment":{"href":"https://api.github.com/repos/redux-saga/redux-saga/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redux-saga/redux-saga/pulls/1290/commits"},"statuses":{"href":"https://api.github.com/repos/redux-saga/redux-saga/statuses/0b27636276af3374e1dcff1a96ae366881eb1ac4"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":2,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"lukePeavey"}}