{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/chef-cookbooks/compat_resource/pulls/1","id":47229822,"html_url":"https://github.com/chef-cookbooks/compat_resource/pull/1","diff_url":"https://github.com/chef-cookbooks/compat_resource/pull/1.diff","patch_url":"https://github.com/chef-cookbooks/compat_resource/pull/1.patch","issue_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/1","number":1,"state":"open","locked":false,"title":"Make a better deprecation warning","user":{"login":"jkeiser","id":654882,"avatar_url":"https://avatars.githubusercontent.com/u/654882?v=3","gravatar_id":"","url":"https://api.github.com/users/jkeiser","html_url":"https://github.com/jkeiser","followers_url":"https://api.github.com/users/jkeiser/followers","following_url":"https://api.github.com/users/jkeiser/following{/other_user}","gists_url":"https://api.github.com/users/jkeiser/gists{/gist_id}","starred_url":"https://api.github.com/users/jkeiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkeiser/subscriptions","organizations_url":"https://api.github.com/users/jkeiser/orgs","repos_url":"https://api.github.com/users/jkeiser/repos","events_url":"https://api.github.com/users/jkeiser/events{/privacy}","received_events_url":"https://api.github.com/users/jkeiser/received_events","type":"User","site_admin":false},"body":"When deprecation warnings happen in a cookbook that uses `compat_resource`, the warning location is reported as `compat_resource/property.rb` rather than the caller. This patch addresses that by detecting the first location that comes from *neither* chef *nor* compat_resource.","created_at":"2015-10-09T03:01:55Z","updated_at":"2015-10-09T03:01:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42af962ef0c0af8562e6f86d2f307fdd1bfdd3cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/pulls/1/commits","review_comments_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/pulls/1/comments","review_comment_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/1/comments","statuses_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/statuses/8ecd72e518e104ca329cac635c4dd5b91f6dfeba","head":{"label":"chef-cookbooks:jk/better-deprecation-stack","ref":"jk/better-deprecation-stack","sha":"8ecd72e518e104ca329cac635c4dd5b91f6dfeba","user":{"login":"chef-cookbooks","id":3617830,"avatar_url":"https://avatars.githubusercontent.com/u/3617830?v=3","gravatar_id":"","url":"https://api.github.com/users/chef-cookbooks","html_url":"https://github.com/chef-cookbooks","followers_url":"https://api.github.com/users/chef-cookbooks/followers","following_url":"https://api.github.com/users/chef-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/chef-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/chef-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/chef-cookbooks/orgs","repos_url":"https://api.github.com/users/chef-cookbooks/repos","events_url":"https://api.github.com/users/chef-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/chef-cookbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":43480269,"name":"compat_resource","full_name":"chef-cookbooks/compat_resource","owner":{"login":"chef-cookbooks","id":3617830,"avatar_url":"https://avatars.githubusercontent.com/u/3617830?v=3","gravatar_id":"","url":"https://api.github.com/users/chef-cookbooks","html_url":"https://github.com/chef-cookbooks","followers_url":"https://api.github.com/users/chef-cookbooks/followers","following_url":"https://api.github.com/users/chef-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/chef-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/chef-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/chef-cookbooks/orgs","repos_url":"https://api.github.com/users/chef-cookbooks/repos","events_url":"https://api.github.com/users/chef-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/chef-cookbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef-cookbooks/compat_resource","description":"Cookbook (+ gem) to bring some features from future Chef to earlier versions","fork":false,"url":"https://api.github.com/repos/chef-cookbooks/compat_resource","forks_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/forks","keys_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/teams","hooks_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/hooks","issue_events_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/events{/number}","events_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/events","assignees_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/assignees{/user}","branches_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/branches{/branch}","tags_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/tags","blobs_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/statuses/{sha}","languages_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/languages","stargazers_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/stargazers","contributors_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/contributors","subscribers_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/subscribers","subscription_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/subscription","commits_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/contents/{+path}","compare_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/merges","archive_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/downloads","issues_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues{/number}","pulls_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/pulls{/number}","milestones_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/milestones{/number}","notifications_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/labels{/name}","releases_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/releases{/id}","created_at":"2015-10-01T05:39:00Z","updated_at":"2015-10-02T19:24:56Z","pushed_at":"2015-10-09T03:01:55Z","git_url":"git://github.com/chef-cookbooks/compat_resource.git","ssh_url":"git@github.com:chef-cookbooks/compat_resource.git","clone_url":"https://github.com/chef-cookbooks/compat_resource.git","svn_url":"https://github.com/chef-cookbooks/compat_resource","homepage":null,"size":252,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"chef-cookbooks:master","ref":"master","sha":"012ba2971bf1e5ba6694ca76073b2c8858fd9e7a","user":{"login":"chef-cookbooks","id":3617830,"avatar_url":"https://avatars.githubusercontent.com/u/3617830?v=3","gravatar_id":"","url":"https://api.github.com/users/chef-cookbooks","html_url":"https://github.com/chef-cookbooks","followers_url":"https://api.github.com/users/chef-cookbooks/followers","following_url":"https://api.github.com/users/chef-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/chef-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/chef-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/chef-cookbooks/orgs","repos_url":"https://api.github.com/users/chef-cookbooks/repos","events_url":"https://api.github.com/users/chef-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/chef-cookbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":43480269,"name":"compat_resource","full_name":"chef-cookbooks/compat_resource","owner":{"login":"chef-cookbooks","id":3617830,"avatar_url":"https://avatars.githubusercontent.com/u/3617830?v=3","gravatar_id":"","url":"https://api.github.com/users/chef-cookbooks","html_url":"https://github.com/chef-cookbooks","followers_url":"https://api.github.com/users/chef-cookbooks/followers","following_url":"https://api.github.com/users/chef-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/chef-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/chef-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/chef-cookbooks/orgs","repos_url":"https://api.github.com/users/chef-cookbooks/repos","events_url":"https://api.github.com/users/chef-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/chef-cookbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef-cookbooks/compat_resource","description":"Cookbook (+ gem) to bring some features from future Chef to earlier versions","fork":false,"url":"https://api.github.com/repos/chef-cookbooks/compat_resource","forks_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/forks","keys_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/teams","hooks_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/hooks","issue_events_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/events{/number}","events_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/events","assignees_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/assignees{/user}","branches_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/branches{/branch}","tags_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/tags","blobs_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/statuses/{sha}","languages_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/languages","stargazers_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/stargazers","contributors_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/contributors","subscribers_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/subscribers","subscription_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/subscription","commits_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/contents/{+path}","compare_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/merges","archive_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/downloads","issues_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues{/number}","pulls_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/pulls{/number}","milestones_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/milestones{/number}","notifications_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/labels{/name}","releases_url":"https://api.github.com/repos/chef-cookbooks/compat_resource/releases{/id}","created_at":"2015-10-01T05:39:00Z","updated_at":"2015-10-02T19:24:56Z","pushed_at":"2015-10-09T03:01:55Z","git_url":"git://github.com/chef-cookbooks/compat_resource.git","ssh_url":"git@github.com:chef-cookbooks/compat_resource.git","clone_url":"https://github.com/chef-cookbooks/compat_resource.git","svn_url":"https://github.com/chef-cookbooks/compat_resource","homepage":null,"size":252,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef-cookbooks/compat_resource/pulls/1"},"html":{"href":"https://github.com/chef-cookbooks/compat_resource/pull/1"},"issue":{"href":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/1"},"comments":{"href":"https://api.github.com/repos/chef-cookbooks/compat_resource/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/chef-cookbooks/compat_resource/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/chef-cookbooks/compat_resource/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef-cookbooks/compat_resource/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/chef-cookbooks/compat_resource/statuses/8ecd72e518e104ca329cac635c4dd5b91f6dfeba"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":24,"deletions":3,"changed_files":1}}