{"action":"closed","issue":{"url":"https://api.github.com/repos/pedrorijo91/commit4dummies/issues/3","labels_url":"https://api.github.com/repos/pedrorijo91/commit4dummies/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/pedrorijo91/commit4dummies/issues/3/comments","events_url":"https://api.github.com/repos/pedrorijo91/commit4dummies/issues/3/events","html_url":"https://github.com/pedrorijo91/commit4dummies/issues/3","id":59686712,"number":3,"title":"Losing work when script interrupted ","user":{"login":"pedrorijo91","id":1999050,"avatar_url":"https://avatars.githubusercontent.com/u/1999050?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrorijo91","html_url":"https://github.com/pedrorijo91","followers_url":"https://api.github.com/users/pedrorijo91/followers","following_url":"https://api.github.com/users/pedrorijo91/following{/other_user}","gists_url":"https://api.github.com/users/pedrorijo91/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrorijo91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrorijo91/subscriptions","organizations_url":"https://api.github.com/users/pedrorijo91/orgs","repos_url":"https://api.github.com/users/pedrorijo91/repos","events_url":"https://api.github.com/users/pedrorijo91/events{/privacy}","received_events_url":"https://api.github.com/users/pedrorijo91/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pedrorijo91/commit4dummies/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-03T18:48:47Z","updated_at":"2015-03-04T01:13:27Z","closed_at":"2015-03-04T01:13:27Z","body":"If the script is interrupted without exiting normally (SIGKILL) the changed files will not return to the original version because git stash pop wasn't executed.\r\n\r\nShould catch such signals and execute git stash pop "}}