{"action":"created","issue":{"url":"https://api.github.com/repos/danger/danger/issues/503","repository_url":"https://api.github.com/repos/danger/danger","labels_url":"https://api.github.com/repos/danger/danger/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/danger/danger/issues/503/comments","events_url":"https://api.github.com/repos/danger/danger/issues/503/events","html_url":"https://github.com/danger/danger/pull/503","id":174836797,"number":503,"title":"Feature/only print update message when local danger is outdated","user":{"login":"JuanitoFatas","id":1000669,"avatar_url":"https://avatars.githubusercontent.com/u/1000669?v=3","gravatar_id":"","url":"https://api.github.com/users/JuanitoFatas","html_url":"https://github.com/JuanitoFatas","followers_url":"https://api.github.com/users/JuanitoFatas/followers","following_url":"https://api.github.com/users/JuanitoFatas/following{/other_user}","gists_url":"https://api.github.com/users/JuanitoFatas/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanitoFatas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanitoFatas/subscriptions","organizations_url":"https://api.github.com/users/JuanitoFatas/orgs","repos_url":"https://api.github.com/users/JuanitoFatas/repos","events_url":"https://api.github.com/users/JuanitoFatas/events{/privacy}","received_events_url":"https://api.github.com/users/JuanitoFatas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-02T19:58:56Z","updated_at":"2016-09-02T20:00:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/danger/danger/pulls/503","html_url":"https://github.com/danger/danger/pull/503","diff_url":"https://github.com/danger/danger/pull/503.diff","patch_url":"https://github.com/danger/danger/pull/503.patch"},"body":"Hi 👋 , This PR implements [Update error message #184](https://github.com/danger/danger/issues/184).\r\n\r\nWhen an `Danger::DSL::Error` is raised:\r\n\r\n* When local danger is outdated, prints the update danger message.\r\n* When local danger is not outdated / latest version file not found, not print the update message.\r\n\r\nOutdated? By looking at the latest danger version file (save at `~/.danger_file`).\r\nThe latest danger version file is added when the danger library is loaded (`Danger.setup!`).\r\n\r\n--\r\n\r\nSome questions 🙋\r\n\r\n* [ ] When user's home directory is not writable 🤔 / not a directory (😱)\r\n  ❗ will raise an `HomeDirectoyError` (**BREAKING BEHAVIOUR** 🚸).\r\n  - [ ] Should we fail?\r\n  - [ ] Or not fail, skip silently?\r\n\r\n* [ ] Should we only update the latest danger version file in a period of time?\r\n\r\n* [ ] The latest danger version file location is okay?\r\n  - [ ] `~/.danger_file`\r\n\r\n* [ ] The source file location is okay?\r\n  - [ ] lib/danger/clients/rubygems_client.rb\r\n  - [ ] lib/danger/services/home_keeper.rb\r\n\r\nThanks! 🌈 "},"comment":{"url":"https://api.github.com/repos/danger/danger/issues/comments/244473813","html_url":"https://github.com/danger/danger/pull/503#issuecomment-244473813","issue_url":"https://api.github.com/repos/danger/danger/issues/503","id":244473813,"user":{"login":"DangerCI","id":17546894,"avatar_url":"https://avatars.githubusercontent.com/u/17546894?v=3","gravatar_id":"","url":"https://api.github.com/users/DangerCI","html_url":"https://github.com/DangerCI","followers_url":"https://api.github.com/users/DangerCI/followers","following_url":"https://api.github.com/users/DangerCI/following{/other_user}","gists_url":"https://api.github.com/users/DangerCI/gists{/gist_id}","starred_url":"https://api.github.com/users/DangerCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DangerCI/subscriptions","organizations_url":"https://api.github.com/users/DangerCI/orgs","repos_url":"https://api.github.com/users/DangerCI/repos","events_url":"https://api.github.com/users/DangerCI/events{/privacy}","received_events_url":"https://api.github.com/users/DangerCI/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T20:00:03Z","updated_at":"2016-09-02T20:00:03Z","body":"<table>\n  <thead>\n    <tr>\n      <th width=\"50\"></th>\n      <th width=\"100%\" data-danger-table=\"true\" data-kind=\"Message\">\n          1 Message\n      </th>\n     </tr>\n  </thead>\n  <tbody>\n\n    <tr>\n      <td>:book:</td>\n      <td data-sticky=\"true\">@JuanitoFatas is not a contributor yet, would you like to join the Danger org?</td>\n    </tr>\n  </tbody>\n</table>\n\n<p align=\"right\" data-meta=\"generated_by_danger\">\n  Generated by :no_entry_sign: <a href=\"http://danger.systems/\">danger</a>\n</p>\n"}}
{"actor":{"display_login":"DangerCI"}}