{"action":"created","issue":{"url":"https://api.github.com/repos/console-helpers/svn-buddy/issues/67","repository_url":"https://api.github.com/repos/console-helpers/svn-buddy","labels_url":"https://api.github.com/repos/console-helpers/svn-buddy/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/console-helpers/svn-buddy/issues/67/comments","events_url":"https://api.github.com/repos/console-helpers/svn-buddy/issues/67/events","html_url":"https://github.com/console-helpers/svn-buddy/issues/67","id":147379080,"number":67,"title":"Add \"self-update\" command","user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/console-helpers/svn-buddy/labels/feature","name":"feature","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-11T10:11:10Z","updated_at":"2016-05-29T16:12:55Z","closed_at":"2016-05-29T16:12:55Z","body":"The SVN-Buddy is using Composer's release model (it's pretty safe to use PHAR built from latest commit) and does occasional releases. That's why PHAR attached to latest release on GitHub might not be the best thing.\r\n\r\nProposing to:\r\n\r\n1. have website somewhere that would contain PHAR's for each commit in the repo\r\n2. add a web hook on new commits, that would trigger phar builder somewhere\r\n3. in the place where phar's are build have a way (e.g. special file), that returns all versions sorted chronologically (or maybe just last one)\r\n4. make use of https://github.com/padraic/phar-updater with custom built strategy to allow updating SVN Buddy via `self-update` command"},"comment":{"url":"https://api.github.com/repos/console-helpers/svn-buddy/issues/comments/222368658","html_url":"https://github.com/console-helpers/svn-buddy/issues/67#issuecomment-222368658","issue_url":"https://api.github.com/repos/console-helpers/svn-buddy/issues/67","id":222368658,"user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"created_at":"2016-05-29T16:12:55Z","updated_at":"2016-05-29T16:12:55Z","body":"Done.\r\n\r\nOne side effect though: it's possible to update to version that doesn't have `self-update` command and therefore the rollback should done done by hand by replacing `svn-buddy.phar` with `svn-buddy-old.phar`."}}
{"actor":{"display_login":"aik099"}}