{"action":"opened","number":52,"pull_request":{"url":"https://api.github.com/repos/geofffranks/spruce/pulls/52","id":50069564,"html_url":"https://github.com/geofffranks/spruce/pull/52","diff_url":"https://github.com/geofffranks/spruce/pull/52.diff","patch_url":"https://github.com/geofffranks/spruce/pull/52.patch","issue_url":"https://api.github.com/repos/geofffranks/spruce/issues/52","number":52,"state":"open","locked":false,"title":"Implement grab_if_exists","user":{"login":"amitkgupta","id":1580649,"avatar_url":"https://avatars.githubusercontent.com/u/1580649?v=3","gravatar_id":"","url":"https://api.github.com/users/amitkgupta","html_url":"https://github.com/amitkgupta","followers_url":"https://api.github.com/users/amitkgupta/followers","following_url":"https://api.github.com/users/amitkgupta/following{/other_user}","gists_url":"https://api.github.com/users/amitkgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/amitkgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitkgupta/subscriptions","organizations_url":"https://api.github.com/users/amitkgupta/orgs","repos_url":"https://api.github.com/users/amitkgupta/repos","events_url":"https://api.github.com/users/amitkgupta/events{/privacy}","received_events_url":"https://api.github.com/users/amitkgupta/received_events","type":"User","site_admin":false},"body":"```\r\n(( grab_if_exists some.ref other.ref unresolvable.ref ))\r\n```\r\n\r\nwill behave like the `grab` equivalent except, instead of blowing up on `unresolvable.ref` it will replace that value with the null value, so the above would return an array of three things, the third being null.\r\n","created_at":"2015-11-08T20:45:03Z","updated_at":"2015-11-08T20:45:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/geofffranks/spruce/pulls/52/commits","review_comments_url":"https://api.github.com/repos/geofffranks/spruce/pulls/52/comments","review_comment_url":"https://api.github.com/repos/geofffranks/spruce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geofffranks/spruce/issues/52/comments","statuses_url":"https://api.github.com/repos/geofffranks/spruce/statuses/a7da9e4d726b85f03df1575a7d930c7d15e2c834","head":{"label":"amitkgupta:grab_if_exists","ref":"grab_if_exists","sha":"a7da9e4d726b85f03df1575a7d930c7d15e2c834","user":{"login":"amitkgupta","id":1580649,"avatar_url":"https://avatars.githubusercontent.com/u/1580649?v=3","gravatar_id":"","url":"https://api.github.com/users/amitkgupta","html_url":"https://github.com/amitkgupta","followers_url":"https://api.github.com/users/amitkgupta/followers","following_url":"https://api.github.com/users/amitkgupta/following{/other_user}","gists_url":"https://api.github.com/users/amitkgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/amitkgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitkgupta/subscriptions","organizations_url":"https://api.github.com/users/amitkgupta/orgs","repos_url":"https://api.github.com/users/amitkgupta/repos","events_url":"https://api.github.com/users/amitkgupta/events{/privacy}","received_events_url":"https://api.github.com/users/amitkgupta/received_events","type":"User","site_admin":false},"repo":{"id":45798120,"name":"spruce","full_name":"amitkgupta/spruce","owner":{"login":"amitkgupta","id":1580649,"avatar_url":"https://avatars.githubusercontent.com/u/1580649?v=3","gravatar_id":"","url":"https://api.github.com/users/amitkgupta","html_url":"https://github.com/amitkgupta","followers_url":"https://api.github.com/users/amitkgupta/followers","following_url":"https://api.github.com/users/amitkgupta/following{/other_user}","gists_url":"https://api.github.com/users/amitkgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/amitkgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitkgupta/subscriptions","organizations_url":"https://api.github.com/users/amitkgupta/orgs","repos_url":"https://api.github.com/users/amitkgupta/repos","events_url":"https://api.github.com/users/amitkgupta/events{/privacy}","received_events_url":"https://api.github.com/users/amitkgupta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amitkgupta/spruce","description":"A BOSH template merge tool","fork":true,"url":"https://api.github.com/repos/amitkgupta/spruce","forks_url":"https://api.github.com/repos/amitkgupta/spruce/forks","keys_url":"https://api.github.com/repos/amitkgupta/spruce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amitkgupta/spruce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amitkgupta/spruce/teams","hooks_url":"https://api.github.com/repos/amitkgupta/spruce/hooks","issue_events_url":"https://api.github.com/repos/amitkgupta/spruce/issues/events{/number}","events_url":"https://api.github.com/repos/amitkgupta/spruce/events","assignees_url":"https://api.github.com/repos/amitkgupta/spruce/assignees{/user}","branches_url":"https://api.github.com/repos/amitkgupta/spruce/branches{/branch}","tags_url":"https://api.github.com/repos/amitkgupta/spruce/tags","blobs_url":"https://api.github.com/repos/amitkgupta/spruce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amitkgupta/spruce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amitkgupta/spruce/git/refs{/sha}","trees_url":"https://api.github.com/repos/amitkgupta/spruce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amitkgupta/spruce/statuses/{sha}","languages_url":"https://api.github.com/repos/amitkgupta/spruce/languages","stargazers_url":"https://api.github.com/repos/amitkgupta/spruce/stargazers","contributors_url":"https://api.github.com/repos/amitkgupta/spruce/contributors","subscribers_url":"https://api.github.com/repos/amitkgupta/spruce/subscribers","subscription_url":"https://api.github.com/repos/amitkgupta/spruce/subscription","commits_url":"https://api.github.com/repos/amitkgupta/spruce/commits{/sha}","git_commits_url":"https://api.github.com/repos/amitkgupta/spruce/git/commits{/sha}","comments_url":"https://api.github.com/repos/amitkgupta/spruce/comments{/number}","issue_comment_url":"https://api.github.com/repos/amitkgupta/spruce/issues/comments{/number}","contents_url":"https://api.github.com/repos/amitkgupta/spruce/contents/{+path}","compare_url":"https://api.github.com/repos/amitkgupta/spruce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amitkgupta/spruce/merges","archive_url":"https://api.github.com/repos/amitkgupta/spruce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amitkgupta/spruce/downloads","issues_url":"https://api.github.com/repos/amitkgupta/spruce/issues{/number}","pulls_url":"https://api.github.com/repos/amitkgupta/spruce/pulls{/number}","milestones_url":"https://api.github.com/repos/amitkgupta/spruce/milestones{/number}","notifications_url":"https://api.github.com/repos/amitkgupta/spruce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amitkgupta/spruce/labels{/name}","releases_url":"https://api.github.com/repos/amitkgupta/spruce/releases{/id}","created_at":"2015-11-08T20:41:25Z","updated_at":"2015-11-08T20:41:26Z","pushed_at":"2015-11-08T20:42:41Z","git_url":"git://github.com/amitkgupta/spruce.git","ssh_url":"git@github.com:amitkgupta/spruce.git","clone_url":"https://github.com/amitkgupta/spruce.git","svn_url":"https://github.com/amitkgupta/spruce","homepage":null,"size":1599,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"geofffranks:master","ref":"master","sha":"4876583d0ba9ac9d001f957fbd781b2e5ad9ab90","user":{"login":"geofffranks","id":7180882,"avatar_url":"https://avatars.githubusercontent.com/u/7180882?v=3","gravatar_id":"","url":"https://api.github.com/users/geofffranks","html_url":"https://github.com/geofffranks","followers_url":"https://api.github.com/users/geofffranks/followers","following_url":"https://api.github.com/users/geofffranks/following{/other_user}","gists_url":"https://api.github.com/users/geofffranks/gists{/gist_id}","starred_url":"https://api.github.com/users/geofffranks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geofffranks/subscriptions","organizations_url":"https://api.github.com/users/geofffranks/orgs","repos_url":"https://api.github.com/users/geofffranks/repos","events_url":"https://api.github.com/users/geofffranks/events{/privacy}","received_events_url":"https://api.github.com/users/geofffranks/received_events","type":"User","site_admin":false},"repo":{"id":38989614,"name":"spruce","full_name":"geofffranks/spruce","owner":{"login":"geofffranks","id":7180882,"avatar_url":"https://avatars.githubusercontent.com/u/7180882?v=3","gravatar_id":"","url":"https://api.github.com/users/geofffranks","html_url":"https://github.com/geofffranks","followers_url":"https://api.github.com/users/geofffranks/followers","following_url":"https://api.github.com/users/geofffranks/following{/other_user}","gists_url":"https://api.github.com/users/geofffranks/gists{/gist_id}","starred_url":"https://api.github.com/users/geofffranks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geofffranks/subscriptions","organizations_url":"https://api.github.com/users/geofffranks/orgs","repos_url":"https://api.github.com/users/geofffranks/repos","events_url":"https://api.github.com/users/geofffranks/events{/privacy}","received_events_url":"https://api.github.com/users/geofffranks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geofffranks/spruce","description":"A BOSH template merge tool","fork":false,"url":"https://api.github.com/repos/geofffranks/spruce","forks_url":"https://api.github.com/repos/geofffranks/spruce/forks","keys_url":"https://api.github.com/repos/geofffranks/spruce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geofffranks/spruce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geofffranks/spruce/teams","hooks_url":"https://api.github.com/repos/geofffranks/spruce/hooks","issue_events_url":"https://api.github.com/repos/geofffranks/spruce/issues/events{/number}","events_url":"https://api.github.com/repos/geofffranks/spruce/events","assignees_url":"https://api.github.com/repos/geofffranks/spruce/assignees{/user}","branches_url":"https://api.github.com/repos/geofffranks/spruce/branches{/branch}","tags_url":"https://api.github.com/repos/geofffranks/spruce/tags","blobs_url":"https://api.github.com/repos/geofffranks/spruce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geofffranks/spruce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geofffranks/spruce/git/refs{/sha}","trees_url":"https://api.github.com/repos/geofffranks/spruce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geofffranks/spruce/statuses/{sha}","languages_url":"https://api.github.com/repos/geofffranks/spruce/languages","stargazers_url":"https://api.github.com/repos/geofffranks/spruce/stargazers","contributors_url":"https://api.github.com/repos/geofffranks/spruce/contributors","subscribers_url":"https://api.github.com/repos/geofffranks/spruce/subscribers","subscription_url":"https://api.github.com/repos/geofffranks/spruce/subscription","commits_url":"https://api.github.com/repos/geofffranks/spruce/commits{/sha}","git_commits_url":"https://api.github.com/repos/geofffranks/spruce/git/commits{/sha}","comments_url":"https://api.github.com/repos/geofffranks/spruce/comments{/number}","issue_comment_url":"https://api.github.com/repos/geofffranks/spruce/issues/comments{/number}","contents_url":"https://api.github.com/repos/geofffranks/spruce/contents/{+path}","compare_url":"https://api.github.com/repos/geofffranks/spruce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geofffranks/spruce/merges","archive_url":"https://api.github.com/repos/geofffranks/spruce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geofffranks/spruce/downloads","issues_url":"https://api.github.com/repos/geofffranks/spruce/issues{/number}","pulls_url":"https://api.github.com/repos/geofffranks/spruce/pulls{/number}","milestones_url":"https://api.github.com/repos/geofffranks/spruce/milestones{/number}","notifications_url":"https://api.github.com/repos/geofffranks/spruce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geofffranks/spruce/labels{/name}","releases_url":"https://api.github.com/repos/geofffranks/spruce/releases{/id}","created_at":"2015-07-13T03:34:39Z","updated_at":"2015-11-04T11:21:31Z","pushed_at":"2015-10-30T14:48:22Z","git_url":"git://github.com/geofffranks/spruce.git","ssh_url":"git@github.com:geofffranks/spruce.git","clone_url":"https://github.com/geofffranks/spruce.git","svn_url":"https://github.com/geofffranks/spruce","homepage":null,"size":1599,"stargazers_count":18,"watchers_count":18,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":8,"forks":5,"open_issues":8,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/geofffranks/spruce/pulls/52"},"html":{"href":"https://github.com/geofffranks/spruce/pull/52"},"issue":{"href":"https://api.github.com/repos/geofffranks/spruce/issues/52"},"comments":{"href":"https://api.github.com/repos/geofffranks/spruce/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/geofffranks/spruce/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/geofffranks/spruce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geofffranks/spruce/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/geofffranks/spruce/statuses/a7da9e4d726b85f03df1575a7d930c7d15e2c834"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":259,"deletions":84,"changed_files":4}}