{"action":"created","issue":{"url":"https://api.github.com/repos/prose/prose/issues/518","labels_url":"https://api.github.com/repos/prose/prose/issues/518/labels{/name}","comments_url":"https://api.github.com/repos/prose/prose/issues/518/comments","events_url":"https://api.github.com/repos/prose/prose/issues/518/events","html_url":"https://github.com/prose/prose/issues/518","id":16796352,"number":518,"title":"Need \"discard local changes to current file\" feature","user":{"login":"edrex","id":14615,"avatar_url":"https://avatars.githubusercontent.com/u/14615?v=3","gravatar_id":"","url":"https://api.github.com/users/edrex","html_url":"https://github.com/edrex","followers_url":"https://api.github.com/users/edrex/followers","following_url":"https://api.github.com/users/edrex/following{/other_user}","gists_url":"https://api.github.com/users/edrex/gists{/gist_id}","starred_url":"https://api.github.com/users/edrex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edrex/subscriptions","organizations_url":"https://api.github.com/users/edrex/orgs","repos_url":"https://api.github.com/users/edrex/repos","events_url":"https://api.github.com/users/edrex/events{/privacy}","received_events_url":"https://api.github.com/users/edrex/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/prose/prose/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/prose/prose/labels/ui","name":"ui","color":"02e10c"}],"state":"open","locked":false,"assignee":{"login":"mikemorris","id":1149913,"avatar_url":"https://avatars.githubusercontent.com/u/1149913?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemorris","html_url":"https://github.com/mikemorris","followers_url":"https://api.github.com/users/mikemorris/followers","following_url":"https://api.github.com/users/mikemorris/following{/other_user}","gists_url":"https://api.github.com/users/mikemorris/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemorris/subscriptions","organizations_url":"https://api.github.com/users/mikemorris/orgs","repos_url":"https://api.github.com/users/mikemorris/repos","events_url":"https://api.github.com/users/mikemorris/events{/privacy}","received_events_url":"https://api.github.com/users/mikemorris/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/prose/prose/milestones/16","labels_url":"https://api.github.com/repos/prose/prose/milestones/16/labels","id":386242,"number":16,"title":"Priority","description":"","creator":{"login":"mikemorris","id":1149913,"avatar_url":"https://avatars.githubusercontent.com/u/1149913?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemorris","html_url":"https://github.com/mikemorris","followers_url":"https://api.github.com/users/mikemorris/followers","following_url":"https://api.github.com/users/mikemorris/following{/other_user}","gists_url":"https://api.github.com/users/mikemorris/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemorris/subscriptions","organizations_url":"https://api.github.com/users/mikemorris/orgs","repos_url":"https://api.github.com/users/mikemorris/repos","events_url":"https://api.github.com/users/mikemorris/events{/privacy}","received_events_url":"https://api.github.com/users/mikemorris/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":19,"state":"open","created_at":"2013-07-24T21:56:38Z","updated_at":"2014-12-09T17:14:39Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2013-07-16T07:32:55Z","updated_at":"2015-02-03T20:31:12Z","closed_at":null,"body":"Currently the situation where changes have been made to the repo while you were editing is not well handled:\r\n\r\n * an error is thrown on save, with no clear way to recover\r\n * reloading the page keeps the locally-modified version (via localStorage) and allows you to save it\r\n * if the remote change touched the same file, the remote changes will be destroyed on save (the diff shows the effect of reversing the remote changes and applying the local ones)\r\n\r\nThis issue isn't about addressing the whole problem, but sometimes your local edits are trivial, even accidental, and you really just want to discard them. IMO there should be a way to do that within the interface.\r\n\r\nApologies if this has already been reported."},"comment":{"url":"https://api.github.com/repos/prose/prose/issues/comments/72728353","html_url":"https://github.com/prose/prose/issues/518#issuecomment-72728353","issue_url":"https://api.github.com/repos/prose/prose/issues/518","id":72728353,"user":{"login":"fulldecent","id":382183,"avatar_url":"https://avatars.githubusercontent.com/u/382183?v=3","gravatar_id":"","url":"https://api.github.com/users/fulldecent","html_url":"https://github.com/fulldecent","followers_url":"https://api.github.com/users/fulldecent/followers","following_url":"https://api.github.com/users/fulldecent/following{/other_user}","gists_url":"https://api.github.com/users/fulldecent/gists{/gist_id}","starred_url":"https://api.github.com/users/fulldecent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fulldecent/subscriptions","organizations_url":"https://api.github.com/users/fulldecent/orgs","repos_url":"https://api.github.com/users/fulldecent/repos","events_url":"https://api.github.com/users/fulldecent/events{/privacy}","received_events_url":"https://api.github.com/users/fulldecent/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T20:31:12Z","updated_at":"2015-02-03T20:31:12Z","body":"Is anyone excited to work on this project?"}}