{"action":"closed","number":2084,"pull_request":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-node/pulls/2084","id":109075350,"html_url":"https://github.com/Azure/azure-sdk-for-node/pull/2084","diff_url":"https://github.com/Azure/azure-sdk-for-node/pull/2084.diff","patch_url":"https://github.com/Azure/azure-sdk-for-node/pull/2084.patch","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/issues/2084","number":2084,"state":"closed","locked":false,"title":"get info from package json","user":{"login":"balajikris","id":4213867,"avatar_url":"https://avatars1.githubusercontent.com/u/4213867?v=3","gravatar_id":"","url":"https://api.github.com/users/balajikris","html_url":"https://github.com/balajikris","followers_url":"https://api.github.com/users/balajikris/followers","following_url":"https://api.github.com/users/balajikris/following{/other_user}","gists_url":"https://api.github.com/users/balajikris/gists{/gist_id}","starred_url":"https://api.github.com/users/balajikris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajikris/subscriptions","organizations_url":"https://api.github.com/users/balajikris/orgs","repos_url":"https://api.github.com/users/balajikris/repos","events_url":"https://api.github.com/users/balajikris/events{/privacy}","received_events_url":"https://api.github.com/users/balajikris/received_events","type":"User","site_admin":false},"body":"This is part of work for https://github.com/Azure/azure-sdk-for-node/issues/2076\r\n\r\nMotivation:\r\nTo send user agent information from azure packages, we have to read its package.json. It turns out that package.json isn't always in the same relative path from the service client itself. So, this helper on the base service client helps to locate package.json and send back the required info. This will be consumed by azure clients generated from autorest.","created_at":"2017-03-03T23:18:53Z","updated_at":"2017-03-04T00:10:18Z","closed_at":"2017-03-04T00:10:18Z","merged_at":"2017-03-04T00:10:18Z","merge_commit_sha":"20fd79f003d9c6e5d339edefb179d15e722ee39d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/pulls/2084/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/pulls/2084/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/issues/2084/comments","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/statuses/be63ee9415a405e7189d03082b38b50c426e4b62","head":{"label":"balajikris:getInfoFromPackageJson","ref":"getInfoFromPackageJson","sha":"be63ee9415a405e7189d03082b38b50c426e4b62","user":{"login":"balajikris","id":4213867,"avatar_url":"https://avatars1.githubusercontent.com/u/4213867?v=3","gravatar_id":"","url":"https://api.github.com/users/balajikris","html_url":"https://github.com/balajikris","followers_url":"https://api.github.com/users/balajikris/followers","following_url":"https://api.github.com/users/balajikris/following{/other_user}","gists_url":"https://api.github.com/users/balajikris/gists{/gist_id}","starred_url":"https://api.github.com/users/balajikris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajikris/subscriptions","organizations_url":"https://api.github.com/users/balajikris/orgs","repos_url":"https://api.github.com/users/balajikris/repos","events_url":"https://api.github.com/users/balajikris/events{/privacy}","received_events_url":"https://api.github.com/users/balajikris/received_events","type":"User","site_admin":false},"repo":{"id":79484022,"name":"azure-sdk-for-node","full_name":"balajikris/azure-sdk-for-node","owner":{"login":"balajikris","id":4213867,"avatar_url":"https://avatars1.githubusercontent.com/u/4213867?v=3","gravatar_id":"","url":"https://api.github.com/users/balajikris","html_url":"https://github.com/balajikris","followers_url":"https://api.github.com/users/balajikris/followers","following_url":"https://api.github.com/users/balajikris/following{/other_user}","gists_url":"https://api.github.com/users/balajikris/gists{/gist_id}","starred_url":"https://api.github.com/users/balajikris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajikris/subscriptions","organizations_url":"https://api.github.com/users/balajikris/orgs","repos_url":"https://api.github.com/users/balajikris/repos","events_url":"https://api.github.com/users/balajikris/events{/privacy}","received_events_url":"https://api.github.com/users/balajikris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/balajikris/azure-sdk-for-node","description":"Azure SDK for Node.js","fork":true,"url":"https://api.github.com/repos/balajikris/azure-sdk-for-node","forks_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/forks","keys_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/teams","hooks_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/hooks","issue_events_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/issues/events{/number}","events_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/events","assignees_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/assignees{/user}","branches_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/branches{/branch}","tags_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/tags","blobs_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/statuses/{sha}","languages_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/languages","stargazers_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/stargazers","contributors_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/contributors","subscribers_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/subscribers","subscription_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/subscription","commits_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/contents/{+path}","compare_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/merges","archive_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/downloads","issues_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/issues{/number}","pulls_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/pulls{/number}","milestones_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/milestones{/number}","notifications_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/labels{/name}","releases_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/releases{/id}","deployments_url":"https://api.github.com/repos/balajikris/azure-sdk-for-node/deployments","created_at":"2017-01-19T18:51:26Z","updated_at":"2017-01-19T18:51:35Z","pushed_at":"2017-03-03T23:56:20Z","git_url":"git://github.com/balajikris/azure-sdk-for-node.git","ssh_url":"git@github.com:balajikris/azure-sdk-for-node.git","clone_url":"https://github.com/balajikris/azure-sdk-for-node.git","svn_url":"https://github.com/balajikris/azure-sdk-for-node","homepage":"http://azure.github.io/azure-sdk-for-node/","size":36613,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"Azure:master","ref":"master","sha":"8c1cfd61d33d66b5ab799556220e72977e468d04","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars3.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":2950981,"name":"azure-sdk-for-node","full_name":"Azure/azure-sdk-for-node","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars3.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-sdk-for-node","description":"Azure SDK for Node.js","fork":false,"url":"https://api.github.com/repos/Azure/azure-sdk-for-node","forks_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/forks","keys_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/teams","hooks_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/events","assignees_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/tags","blobs_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/subscription","commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/merges","archive_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/downloads","issues_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-sdk-for-node/deployments","created_at":"2011-12-09T23:38:42Z","updated_at":"2017-03-03T01:14:11Z","pushed_at":"2017-03-04T00:10:18Z","git_url":"git://github.com/Azure/azure-sdk-for-node.git","ssh_url":"git@github.com:Azure/azure-sdk-for-node.git","clone_url":"https://github.com/Azure/azure-sdk-for-node.git","svn_url":"https://github.com/Azure/azure-sdk-for-node","homepage":"http://azure.github.io/azure-sdk-for-node/","size":36661,"stargazers_count":766,"watchers_count":766,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":370,"mirror_url":null,"open_issues_count":117,"forks":370,"open_issues":117,"watchers":766,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-node/pulls/2084"},"html":{"href":"https://github.com/Azure/azure-sdk-for-node/pull/2084"},"issue":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-node/issues/2084"},"comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-node/issues/2084/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-node/pulls/2084/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-node/pulls/2084/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-node/statuses/be63ee9415a405e7189d03082b38b50c426e4b62"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"balajikris","id":4213867,"avatar_url":"https://avatars1.githubusercontent.com/u/4213867?v=3","gravatar_id":"","url":"https://api.github.com/users/balajikris","html_url":"https://github.com/balajikris","followers_url":"https://api.github.com/users/balajikris/followers","following_url":"https://api.github.com/users/balajikris/following{/other_user}","gists_url":"https://api.github.com/users/balajikris/gists{/gist_id}","starred_url":"https://api.github.com/users/balajikris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajikris/subscriptions","organizations_url":"https://api.github.com/users/balajikris/orgs","repos_url":"https://api.github.com/users/balajikris/repos","events_url":"https://api.github.com/users/balajikris/events{/privacy}","received_events_url":"https://api.github.com/users/balajikris/received_events","type":"User","site_admin":false},"comments":0,"review_comments":3,"maintainer_can_modify":false,"commits":4,"additions":51,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"balajikris"}}