{"action":"created","issue":{"url":"https://api.github.com/repos/WTW-IM/es-components/issues/149","repository_url":"https://api.github.com/repos/WTW-IM/es-components","labels_url":"https://api.github.com/repos/WTW-IM/es-components/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/WTW-IM/es-components/issues/149/comments","events_url":"https://api.github.com/repos/WTW-IM/es-components/issues/149/events","html_url":"https://github.com/WTW-IM/es-components/issues/149","id":315170098,"number":149,"title":"Regenerate documentation only on merge to master","user":{"login":"aabenoja","id":3229671,"avatar_url":"https://avatars0.githubusercontent.com/u/3229671?v=4","gravatar_id":"","url":"https://api.github.com/users/aabenoja","html_url":"https://github.com/aabenoja","followers_url":"https://api.github.com/users/aabenoja/followers","following_url":"https://api.github.com/users/aabenoja/following{/other_user}","gists_url":"https://api.github.com/users/aabenoja/gists{/gist_id}","starred_url":"https://api.github.com/users/aabenoja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabenoja/subscriptions","organizations_url":"https://api.github.com/users/aabenoja/orgs","repos_url":"https://api.github.com/users/aabenoja/repos","events_url":"https://api.github.com/users/aabenoja/events{/privacy}","received_events_url":"https://api.github.com/users/aabenoja/received_events","type":"User","site_admin":false},"labels":[{"id":580708908,"url":"https://api.github.com/repos/WTW-IM/es-components/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":580708909,"url":"https://api.github.com/repos/WTW-IM/es-components/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-17T18:02:59Z","updated_at":"2018-04-18T15:53:58Z","closed_at":null,"author_association":"COLLABORATOR","body":"The current precommit hook can silently fail to regenerate the docs when the `node_modules` directory has been cleaned prior to commit. While the hook does reduce the previous overhead these silent errors can cause malformed documentation that is only caught when merged into master. We should replace this with some sort of bot to correctly generate and publish new documentation on merge to master."},"comment":{"url":"https://api.github.com/repos/WTW-IM/es-components/issues/comments/382436636","html_url":"https://github.com/WTW-IM/es-components/issues/149#issuecomment-382436636","issue_url":"https://api.github.com/repos/WTW-IM/es-components/issues/149","id":382436636,"user":{"login":"aabenoja","id":3229671,"avatar_url":"https://avatars0.githubusercontent.com/u/3229671?v=4","gravatar_id":"","url":"https://api.github.com/users/aabenoja","html_url":"https://github.com/aabenoja","followers_url":"https://api.github.com/users/aabenoja/followers","following_url":"https://api.github.com/users/aabenoja/following{/other_user}","gists_url":"https://api.github.com/users/aabenoja/gists{/gist_id}","starred_url":"https://api.github.com/users/aabenoja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabenoja/subscriptions","organizations_url":"https://api.github.com/users/aabenoja/orgs","repos_url":"https://api.github.com/users/aabenoja/repos","events_url":"https://api.github.com/users/aabenoja/events{/privacy}","received_events_url":"https://api.github.com/users/aabenoja/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T15:53:57Z","updated_at":"2018-04-18T15:53:57Z","author_association":"COLLABORATOR","body":"@jrios @Darrken Let's use this ticket to also include publishing. The script to do this should be pretty straightforward per [this gist](https://gist.github.com/willprice/e07efd73fb7f13f917ea) and [stackoverflow](https://stackoverflow.com/questions/31338562/travisci-run-after-success-on-a-specific-branch)\r\n\r\n```yml\r\nafter_success:\r\n  - push_and_publish.sh\r\n```\r\n\r\n```sh\r\n#!/bin/bash\r\nif [ \"$TRAVIS_BRANCH\" == \"master\" ]; then\r\n  // regenerate docs\r\n  npm run publish_only\r\nfi"}}
{"actor":{"display_login":"aabenoja"}}