{"action":"created","issue":{"url":"https://api.github.com/repos/npm-scripts/scripts/issues/8","labels_url":"https://api.github.com/repos/npm-scripts/scripts/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/npm-scripts/scripts/issues/8/comments","events_url":"https://api.github.com/repos/npm-scripts/scripts/issues/8/events","html_url":"https://github.com/npm-scripts/scripts/pull/8","id":93560997,"number":8,"title":"Add `ensure-clean-repo`","user":{"login":"tomekwi","id":4624660,"avatar_url":"https://avatars.githubusercontent.com/u/4624660?v=3","gravatar_id":"","url":"https://api.github.com/users/tomekwi","html_url":"https://github.com/tomekwi","followers_url":"https://api.github.com/users/tomekwi/followers","following_url":"https://api.github.com/users/tomekwi/following{/other_user}","gists_url":"https://api.github.com/users/tomekwi/gists{/gist_id}","starred_url":"https://api.github.com/users/tomekwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomekwi/subscriptions","organizations_url":"https://api.github.com/users/tomekwi/orgs","repos_url":"https://api.github.com/users/tomekwi/repos","events_url":"https://api.github.com/users/tomekwi/events{/privacy}","received_events_url":"https://api.github.com/users/tomekwi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-07T15:42:00Z","updated_at":"2015-07-09T07:25:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/npm-scripts/scripts/pulls/8","html_url":"https://github.com/npm-scripts/scripts/pull/8","diff_url":"https://github.com/npm-scripts/scripts/pull/8.diff","patch_url":"https://github.com/npm-scripts/scripts/pull/8.patch"},"body":"## ensure-clean-repo\r\n\r\nEnsure there are no uncommitted files in your git repo. Otherwise fail with a helpful message.\r\n\r\n```json\r\n\"scripts\": {\r\n  \"ensure-clean-repo\": \"if [ -n \\\"$(git status --porcelain)\\\" ]; then echo 'Ooops-a-daisy! Make sure the repo is clean.'; exit 1; fi\"\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/npm-scripts/scripts/issues/comments/119854825","html_url":"https://github.com/npm-scripts/scripts/pull/8#issuecomment-119854825","issue_url":"https://api.github.com/repos/npm-scripts/scripts/issues/8","id":119854825,"user":{"login":"tomekwi","id":4624660,"avatar_url":"https://avatars.githubusercontent.com/u/4624660?v=3","gravatar_id":"","url":"https://api.github.com/users/tomekwi","html_url":"https://github.com/tomekwi","followers_url":"https://api.github.com/users/tomekwi/followers","following_url":"https://api.github.com/users/tomekwi/following{/other_user}","gists_url":"https://api.github.com/users/tomekwi/gists{/gist_id}","starred_url":"https://api.github.com/users/tomekwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomekwi/subscriptions","organizations_url":"https://api.github.com/users/tomekwi/orgs","repos_url":"https://api.github.com/users/tomekwi/repos","events_url":"https://api.github.com/users/tomekwi/events{/privacy}","received_events_url":"https://api.github.com/users/tomekwi/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T07:25:13Z","updated_at":"2015-07-09T07:25:13Z","body":"I’ve rebased to include all recent updates by @stoeffel.\r\n\r\nBy the way, this script depends on bash. Do you guys have any clue how to make it cross-shell?"}}