{"action":"created","issue":{"url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/165","labels_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/165/comments","events_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/165/events","html_url":"https://github.com/itamae-kitchen/itamae/pull/165","id":107941682,"number":165,"title":"Ignore yaml when the result is false","user":{"login":"k0kubun","id":3138447,"avatar_url":"https://avatars.githubusercontent.com/u/3138447?v=3","gravatar_id":"","url":"https://api.github.com/users/k0kubun","html_url":"https://github.com/k0kubun","followers_url":"https://api.github.com/users/k0kubun/followers","following_url":"https://api.github.com/users/k0kubun/following{/other_user}","gists_url":"https://api.github.com/users/k0kubun/gists{/gist_id}","starred_url":"https://api.github.com/users/k0kubun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k0kubun/subscriptions","organizations_url":"https://api.github.com/users/k0kubun/orgs","repos_url":"https://api.github.com/users/k0kubun/repos","events_url":"https://api.github.com/users/k0kubun/events{/privacy}","received_events_url":"https://api.github.com/users/k0kubun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-23T15:08:28Z","updated_at":"2015-09-24T01:46:00Z","closed_at":"2015-09-24T01:25:12Z","pull_request":{"url":"https://api.github.com/repos/itamae-kitchen/itamae/pulls/165","html_url":"https://github.com/itamae-kitchen/itamae/pull/165","diff_url":"https://github.com/itamae-kitchen/itamae/pull/165.diff","patch_url":"https://github.com/itamae-kitchen/itamae/pull/165.patch"},"body":"Because YAML does not have a good way to write empty hash (I only know `YAML.load('{}') #=> {}`), I sometimes comment out all lines in node.yml.\r\nBut if node.yml has only comments, `YAML.load` returns false. It crashes with `hash.merge!(false)`.\r\n\r\n```rb\r\nYAML.load('# comment') #=> false\r\n```\r\n\r\nSo I want to fallback `YAML.load` result to empty hash when it has only comments."},"comment":{"url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/comments/142780284","html_url":"https://github.com/itamae-kitchen/itamae/pull/165#issuecomment-142780284","issue_url":"https://api.github.com/repos/itamae-kitchen/itamae/issues/165","id":142780284,"user":{"login":"ryotarai","id":706434,"avatar_url":"https://avatars.githubusercontent.com/u/706434?v=3","gravatar_id":"","url":"https://api.github.com/users/ryotarai","html_url":"https://github.com/ryotarai","followers_url":"https://api.github.com/users/ryotarai/followers","following_url":"https://api.github.com/users/ryotarai/following{/other_user}","gists_url":"https://api.github.com/users/ryotarai/gists{/gist_id}","starred_url":"https://api.github.com/users/ryotarai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryotarai/subscriptions","organizations_url":"https://api.github.com/users/ryotarai/orgs","repos_url":"https://api.github.com/users/ryotarai/repos","events_url":"https://api.github.com/users/ryotarai/events{/privacy}","received_events_url":"https://api.github.com/users/ryotarai/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T01:46:00Z","updated_at":"2015-09-24T01:46:00Z","body":"[v1.6.0](https://rubygems.org/gems/itamae/versions/1.6.0)"}}