{"action":"opened","number":975,"pull_request":{"url":"https://api.github.com/repos/yeoman/generator/pulls/975","id":93035103,"html_url":"https://github.com/yeoman/generator/pull/975","diff_url":"https://github.com/yeoman/generator/pull/975.diff","patch_url":"https://github.com/yeoman/generator/pull/975.patch","issue_url":"https://api.github.com/repos/yeoman/generator/issues/975","number":975,"state":"open","locked":false,"title":"Prevent multiple commits of docs in gh-pages branch","user":{"login":"mischah","id":441011,"avatar_url":"https://avatars.githubusercontent.com/u/441011?v=3","gravatar_id":"","url":"https://api.github.com/users/mischah","html_url":"https://github.com/mischah","followers_url":"https://api.github.com/users/mischah/followers","following_url":"https://api.github.com/users/mischah/following{/other_user}","gists_url":"https://api.github.com/users/mischah/gists{/gist_id}","starred_url":"https://api.github.com/users/mischah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mischah/subscriptions","organizations_url":"https://api.github.com/users/mischah/orgs","repos_url":"https://api.github.com/users/mischah/repos","events_url":"https://api.github.com/users/mischah/events{/privacy}","received_events_url":"https://api.github.com/users/mischah/received_events","type":"User","site_admin":false},"body":"Post treatment of #971\r\n\r\nThe changes of this PR will prevent multiple commits of docs in gh-pages branch when pushing a new tag.\r\n\r\nIt could be easier. But Travis doesn’t offer something like a [single `after_success` callback after *all* builds](https://github.com/travis-ci/travis-ci/issues/929).\r\n\r\nSo I first checked if there are changes between commits: \r\nhttps://github.com/yeoman/generator/commit/f7df1d7daf064a2ae048c437d38a091c76dc8a05#diff-60254338249f657a0a83f98258a56bfeR51\r\n\r\nSadly this approach alone didn’t worked out. Because the default JSDoc template renders a timestamp into the footer.\r\nSee: https://github.com/yeoman/generator/commit/1475d16fc4fa34bd1334ae3764c67788c6a56e05\r\n\r\nSo I disabled the output of the date/time in the footer and configured JSDoc to render the package name and version number from the `package.json` to the homepage of the docs.\r\n\r\nI got it working in my test repo over here.\r\n","created_at":"2016-11-09T20:41:53Z","updated_at":"2016-11-09T20:41:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29cbf648bf63f9360c7ba686dcae6c0b98b629bf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/yeoman/generator/pulls/975/commits","review_comments_url":"https://api.github.com/repos/yeoman/generator/pulls/975/comments","review_comment_url":"https://api.github.com/repos/yeoman/generator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yeoman/generator/issues/975/comments","statuses_url":"https://api.github.com/repos/yeoman/generator/statuses/f7df1d7daf064a2ae048c437d38a091c76dc8a05","head":{"label":"mischah:prevent-multiple-commits","ref":"prevent-multiple-commits","sha":"f7df1d7daf064a2ae048c437d38a091c76dc8a05","user":{"login":"mischah","id":441011,"avatar_url":"https://avatars.githubusercontent.com/u/441011?v=3","gravatar_id":"","url":"https://api.github.com/users/mischah","html_url":"https://github.com/mischah","followers_url":"https://api.github.com/users/mischah/followers","following_url":"https://api.github.com/users/mischah/following{/other_user}","gists_url":"https://api.github.com/users/mischah/gists{/gist_id}","starred_url":"https://api.github.com/users/mischah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mischah/subscriptions","organizations_url":"https://api.github.com/users/mischah/orgs","repos_url":"https://api.github.com/users/mischah/repos","events_url":"https://api.github.com/users/mischah/events{/privacy}","received_events_url":"https://api.github.com/users/mischah/received_events","type":"User","site_admin":false},"repo":{"id":70279166,"name":"generator","full_name":"mischah/generator","owner":{"login":"mischah","id":441011,"avatar_url":"https://avatars.githubusercontent.com/u/441011?v=3","gravatar_id":"","url":"https://api.github.com/users/mischah","html_url":"https://github.com/mischah","followers_url":"https://api.github.com/users/mischah/followers","following_url":"https://api.github.com/users/mischah/following{/other_user}","gists_url":"https://api.github.com/users/mischah/gists{/gist_id}","starred_url":"https://api.github.com/users/mischah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mischah/subscriptions","organizations_url":"https://api.github.com/users/mischah/orgs","repos_url":"https://api.github.com/users/mischah/repos","events_url":"https://api.github.com/users/mischah/events{/privacy}","received_events_url":"https://api.github.com/users/mischah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mischah/generator","description":"Rails-inspired generator system that provides scaffolding for your apps","fork":true,"url":"https://api.github.com/repos/mischah/generator","forks_url":"https://api.github.com/repos/mischah/generator/forks","keys_url":"https://api.github.com/repos/mischah/generator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mischah/generator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mischah/generator/teams","hooks_url":"https://api.github.com/repos/mischah/generator/hooks","issue_events_url":"https://api.github.com/repos/mischah/generator/issues/events{/number}","events_url":"https://api.github.com/repos/mischah/generator/events","assignees_url":"https://api.github.com/repos/mischah/generator/assignees{/user}","branches_url":"https://api.github.com/repos/mischah/generator/branches{/branch}","tags_url":"https://api.github.com/repos/mischah/generator/tags","blobs_url":"https://api.github.com/repos/mischah/generator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mischah/generator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mischah/generator/git/refs{/sha}","trees_url":"https://api.github.com/repos/mischah/generator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mischah/generator/statuses/{sha}","languages_url":"https://api.github.com/repos/mischah/generator/languages","stargazers_url":"https://api.github.com/repos/mischah/generator/stargazers","contributors_url":"https://api.github.com/repos/mischah/generator/contributors","subscribers_url":"https://api.github.com/repos/mischah/generator/subscribers","subscription_url":"https://api.github.com/repos/mischah/generator/subscription","commits_url":"https://api.github.com/repos/mischah/generator/commits{/sha}","git_commits_url":"https://api.github.com/repos/mischah/generator/git/commits{/sha}","comments_url":"https://api.github.com/repos/mischah/generator/comments{/number}","issue_comment_url":"https://api.github.com/repos/mischah/generator/issues/comments{/number}","contents_url":"https://api.github.com/repos/mischah/generator/contents/{+path}","compare_url":"https://api.github.com/repos/mischah/generator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mischah/generator/merges","archive_url":"https://api.github.com/repos/mischah/generator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mischah/generator/downloads","issues_url":"https://api.github.com/repos/mischah/generator/issues{/number}","pulls_url":"https://api.github.com/repos/mischah/generator/pulls{/number}","milestones_url":"https://api.github.com/repos/mischah/generator/milestones{/number}","notifications_url":"https://api.github.com/repos/mischah/generator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mischah/generator/labels{/name}","releases_url":"https://api.github.com/repos/mischah/generator/releases{/id}","deployments_url":"https://api.github.com/repos/mischah/generator/deployments","created_at":"2016-10-07T20:07:24Z","updated_at":"2016-10-07T20:07:25Z","pushed_at":"2016-11-09T20:27:44Z","git_url":"git://github.com/mischah/generator.git","ssh_url":"git@github.com:mischah/generator.git","clone_url":"https://github.com/mischah/generator.git","svn_url":"https://github.com/mischah/generator","homepage":"http://yeoman.io","size":3196,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yeoman:master","ref":"master","sha":"2c34bdee6265839e0c285b1106395af464a2eb53","user":{"login":"yeoman","id":1714870,"avatar_url":"https://avatars.githubusercontent.com/u/1714870?v=3","gravatar_id":"","url":"https://api.github.com/users/yeoman","html_url":"https://github.com/yeoman","followers_url":"https://api.github.com/users/yeoman/followers","following_url":"https://api.github.com/users/yeoman/following{/other_user}","gists_url":"https://api.github.com/users/yeoman/gists{/gist_id}","starred_url":"https://api.github.com/users/yeoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeoman/subscriptions","organizations_url":"https://api.github.com/users/yeoman/orgs","repos_url":"https://api.github.com/users/yeoman/repos","events_url":"https://api.github.com/users/yeoman/events{/privacy}","received_events_url":"https://api.github.com/users/yeoman/received_events","type":"Organization","site_admin":false},"repo":{"id":5151909,"name":"generator","full_name":"yeoman/generator","owner":{"login":"yeoman","id":1714870,"avatar_url":"https://avatars.githubusercontent.com/u/1714870?v=3","gravatar_id":"","url":"https://api.github.com/users/yeoman","html_url":"https://github.com/yeoman","followers_url":"https://api.github.com/users/yeoman/followers","following_url":"https://api.github.com/users/yeoman/following{/other_user}","gists_url":"https://api.github.com/users/yeoman/gists{/gist_id}","starred_url":"https://api.github.com/users/yeoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeoman/subscriptions","organizations_url":"https://api.github.com/users/yeoman/orgs","repos_url":"https://api.github.com/users/yeoman/repos","events_url":"https://api.github.com/users/yeoman/events{/privacy}","received_events_url":"https://api.github.com/users/yeoman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yeoman/generator","description":"Rails-inspired generator system that provides scaffolding for your apps","fork":false,"url":"https://api.github.com/repos/yeoman/generator","forks_url":"https://api.github.com/repos/yeoman/generator/forks","keys_url":"https://api.github.com/repos/yeoman/generator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yeoman/generator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yeoman/generator/teams","hooks_url":"https://api.github.com/repos/yeoman/generator/hooks","issue_events_url":"https://api.github.com/repos/yeoman/generator/issues/events{/number}","events_url":"https://api.github.com/repos/yeoman/generator/events","assignees_url":"https://api.github.com/repos/yeoman/generator/assignees{/user}","branches_url":"https://api.github.com/repos/yeoman/generator/branches{/branch}","tags_url":"https://api.github.com/repos/yeoman/generator/tags","blobs_url":"https://api.github.com/repos/yeoman/generator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yeoman/generator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yeoman/generator/git/refs{/sha}","trees_url":"https://api.github.com/repos/yeoman/generator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yeoman/generator/statuses/{sha}","languages_url":"https://api.github.com/repos/yeoman/generator/languages","stargazers_url":"https://api.github.com/repos/yeoman/generator/stargazers","contributors_url":"https://api.github.com/repos/yeoman/generator/contributors","subscribers_url":"https://api.github.com/repos/yeoman/generator/subscribers","subscription_url":"https://api.github.com/repos/yeoman/generator/subscription","commits_url":"https://api.github.com/repos/yeoman/generator/commits{/sha}","git_commits_url":"https://api.github.com/repos/yeoman/generator/git/commits{/sha}","comments_url":"https://api.github.com/repos/yeoman/generator/comments{/number}","issue_comment_url":"https://api.github.com/repos/yeoman/generator/issues/comments{/number}","contents_url":"https://api.github.com/repos/yeoman/generator/contents/{+path}","compare_url":"https://api.github.com/repos/yeoman/generator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yeoman/generator/merges","archive_url":"https://api.github.com/repos/yeoman/generator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yeoman/generator/downloads","issues_url":"https://api.github.com/repos/yeoman/generator/issues{/number}","pulls_url":"https://api.github.com/repos/yeoman/generator/pulls{/number}","milestones_url":"https://api.github.com/repos/yeoman/generator/milestones{/number}","notifications_url":"https://api.github.com/repos/yeoman/generator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yeoman/generator/labels{/name}","releases_url":"https://api.github.com/repos/yeoman/generator/releases{/id}","deployments_url":"https://api.github.com/repos/yeoman/generator/deployments","created_at":"2012-07-23T13:07:31Z","updated_at":"2016-11-06T14:25:42Z","pushed_at":"2016-11-09T20:41:53Z","git_url":"git://github.com/yeoman/generator.git","ssh_url":"git@github.com:yeoman/generator.git","clone_url":"https://github.com/yeoman/generator.git","svn_url":"https://github.com/yeoman/generator","homepage":"http://yeoman.io","size":3938,"stargazers_count":649,"watchers_count":649,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":210,"mirror_url":null,"open_issues_count":39,"forks":210,"open_issues":39,"watchers":649,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yeoman/generator/pulls/975"},"html":{"href":"https://github.com/yeoman/generator/pull/975"},"issue":{"href":"https://api.github.com/repos/yeoman/generator/issues/975"},"comments":{"href":"https://api.github.com/repos/yeoman/generator/issues/975/comments"},"review_comments":{"href":"https://api.github.com/repos/yeoman/generator/pulls/975/comments"},"review_comment":{"href":"https://api.github.com/repos/yeoman/generator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yeoman/generator/pulls/975/commits"},"statuses":{"href":"https://api.github.com/repos/yeoman/generator/statuses/f7df1d7daf064a2ae048c437d38a091c76dc8a05"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":23,"deletions":7,"changed_files":3}}
{"actor":{"display_login":"mischah"}}