{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/comments/242737453","pull_request_review_id":186322122,"id":242737453,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjczNzQ1Mw==","diff_hunk":"@@ -0,0 +1,41 @@\n+## Getting started with samples ##\n+\n+## Building the library\n+- Clone the repo and cd to the repo directory\n+```bash\n+git clone https://github.com/azure/azure-service-bus-node.git\n+cd azure-service-bus-node\n+```\n+- Install typescript, ts-node globally (optional, but very useful)\n+```bash\n+npm i -g typescript\n+npm i -g ts-node\n+```\n+- NPM install from the root of the package\n+```bash\n+npm i\n+```\n+- Build the project\n+```bash\n+npm run build\n+```\n+\n+## Before executing a sample\n+- Go to the [Azure Portal](https://portal.azure.com)\n+- Here are the docs which would help you create a service bus resource in the portal : [ServiceBus - NodeJS DOCS](https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-nodejs-how-to-use-queues)\n+- In the portal, go to **Dashboard > Service Bus > _your-servicebus-namespace_**\n+- If you'd like to work with Queues, find the \"Queues\" tab right under \"Entities\" at <your-servicebus-namespace> and create a Queue.\n+- Go to the **Shared access policies** under **Settings** tab and add a new one. \n+- Copy the \"Primary Connection String\" and the \"Name of the Queue\" and use them below\n+* Example : [Refer this example](https://github.com/Azure/azure-service-bus-node/blob/99b6bff5566f3f8499c8f38a97c7e9f37471cc55/examples/samples/queuesGettingStarted.ts#L14) and update the following lines.\n+```typescript\n+const str = process.env.SERVICEBUS_CONNECTION_STRING || <Primary-Connection-String>;\n+const path = process.env.QUEUE_NAME || <Name-of-the-Queue>;\n+```\n+\n+## Executing a sample\n+- As you've already installed ts-node, you should be able to execute the typescript samples as follows:","path":"examples/samples/README.md","position":37,"original_position":37,"commit_id":"1287164361878960e6cab4a50f9d6a0dd3c79cd4","original_commit_id":"1287164361878960e6cab4a50f9d6a0dd3c79cd4","user":{"login":"HarshaNalluru","id":10452642,"node_id":"MDQ6VXNlcjEwNDUyNjQy","avatar_url":"https://avatars3.githubusercontent.com/u/10452642?v=4","gravatar_id":"","url":"https://api.github.com/users/HarshaNalluru","html_url":"https://github.com/HarshaNalluru","followers_url":"https://api.github.com/users/HarshaNalluru/followers","following_url":"https://api.github.com/users/HarshaNalluru/following{/other_user}","gists_url":"https://api.github.com/users/HarshaNalluru/gists{/gist_id}","starred_url":"https://api.github.com/users/HarshaNalluru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarshaNalluru/subscriptions","organizations_url":"https://api.github.com/users/HarshaNalluru/orgs","repos_url":"https://api.github.com/users/HarshaNalluru/repos","events_url":"https://api.github.com/users/HarshaNalluru/events{/privacy}","received_events_url":"https://api.github.com/users/HarshaNalluru/received_events","type":"User","site_admin":false},"body":"Will update this as well.","created_at":"2018-12-18T22:58:09Z","updated_at":"2018-12-18T22:58:09Z","html_url":"https://github.com/Azure/azure-service-bus-node/pull/88#discussion_r242737453","pull_request_url":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/88","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/comments/242737453"},"html":{"href":"https://github.com/Azure/azure-service-bus-node/pull/88#discussion_r242737453"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/88"}},"in_reply_to_id":242724903},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/88","id":239385936,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5Mzg1OTM2","html_url":"https://github.com/Azure/azure-service-bus-node/pull/88","diff_url":"https://github.com/Azure/azure-service-bus-node/pull/88.diff","patch_url":"https://github.com/Azure/azure-service-bus-node/pull/88.patch","issue_url":"https://api.github.com/repos/Azure/azure-service-bus-node/issues/88","number":88,"state":"open","locked":false,"title":"Added README to execute the samples","user":{"login":"HarshaNalluru","id":10452642,"node_id":"MDQ6VXNlcjEwNDUyNjQy","avatar_url":"https://avatars3.githubusercontent.com/u/10452642?v=4","gravatar_id":"","url":"https://api.github.com/users/HarshaNalluru","html_url":"https://github.com/HarshaNalluru","followers_url":"https://api.github.com/users/HarshaNalluru/followers","following_url":"https://api.github.com/users/HarshaNalluru/following{/other_user}","gists_url":"https://api.github.com/users/HarshaNalluru/gists{/gist_id}","starred_url":"https://api.github.com/users/HarshaNalluru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarshaNalluru/subscriptions","organizations_url":"https://api.github.com/users/HarshaNalluru/orgs","repos_url":"https://api.github.com/users/HarshaNalluru/repos","events_url":"https://api.github.com/users/HarshaNalluru/events{/privacy}","received_events_url":"https://api.github.com/users/HarshaNalluru/received_events","type":"User","site_admin":false},"body":"## Added README to execute the samples\r\n- Building the library\r\n- Creating a Queue in the Service Bus using Azure Portal\r\n- Executing a sample\r\n","created_at":"2018-12-18T07:13:12Z","updated_at":"2018-12-18T22:58:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f7acaae28feb23e7b86e2e6528814219b011b1b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/88/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/88/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-service-bus-node/issues/88/comments","statuses_url":"https://api.github.com/repos/Azure/azure-service-bus-node/statuses/1287164361878960e6cab4a50f9d6a0dd3c79cd4","head":{"label":"HarshaNalluru:master","ref":"master","sha":"1287164361878960e6cab4a50f9d6a0dd3c79cd4","user":{"login":"HarshaNalluru","id":10452642,"node_id":"MDQ6VXNlcjEwNDUyNjQy","avatar_url":"https://avatars3.githubusercontent.com/u/10452642?v=4","gravatar_id":"","url":"https://api.github.com/users/HarshaNalluru","html_url":"https://github.com/HarshaNalluru","followers_url":"https://api.github.com/users/HarshaNalluru/followers","following_url":"https://api.github.com/users/HarshaNalluru/following{/other_user}","gists_url":"https://api.github.com/users/HarshaNalluru/gists{/gist_id}","starred_url":"https://api.github.com/users/HarshaNalluru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarshaNalluru/subscriptions","organizations_url":"https://api.github.com/users/HarshaNalluru/orgs","repos_url":"https://api.github.com/users/HarshaNalluru/repos","events_url":"https://api.github.com/users/HarshaNalluru/events{/privacy}","received_events_url":"https://api.github.com/users/HarshaNalluru/received_events","type":"User","site_admin":false},"repo":{"id":162245063,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIyNDUwNjM=","name":"azure-service-bus-node","full_name":"HarshaNalluru/azure-service-bus-node","private":false,"owner":{"login":"HarshaNalluru","id":10452642,"node_id":"MDQ6VXNlcjEwNDUyNjQy","avatar_url":"https://avatars3.githubusercontent.com/u/10452642?v=4","gravatar_id":"","url":"https://api.github.com/users/HarshaNalluru","html_url":"https://github.com/HarshaNalluru","followers_url":"https://api.github.com/users/HarshaNalluru/followers","following_url":"https://api.github.com/users/HarshaNalluru/following{/other_user}","gists_url":"https://api.github.com/users/HarshaNalluru/gists{/gist_id}","starred_url":"https://api.github.com/users/HarshaNalluru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarshaNalluru/subscriptions","organizations_url":"https://api.github.com/users/HarshaNalluru/orgs","repos_url":"https://api.github.com/users/HarshaNalluru/repos","events_url":"https://api.github.com/users/HarshaNalluru/events{/privacy}","received_events_url":"https://api.github.com/users/HarshaNalluru/received_events","type":"User","site_admin":false},"html_url":"https://github.com/HarshaNalluru/azure-service-bus-node","description":null,"fork":true,"url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node","forks_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/forks","keys_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/teams","hooks_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/hooks","issue_events_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/issues/events{/number}","events_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/events","assignees_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/assignees{/user}","branches_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/branches{/branch}","tags_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/tags","blobs_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/statuses/{sha}","languages_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/languages","stargazers_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/stargazers","contributors_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/contributors","subscribers_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/subscribers","subscription_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/subscription","commits_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/contents/{+path}","compare_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/merges","archive_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/downloads","issues_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/issues{/number}","pulls_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/pulls{/number}","milestones_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/milestones{/number}","notifications_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/labels{/name}","releases_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/releases{/id}","deployments_url":"https://api.github.com/repos/HarshaNalluru/azure-service-bus-node/deployments","created_at":"2018-12-18T07:03:04Z","updated_at":"2018-12-18T21:45:24Z","pushed_at":"2018-12-18T21:50:15Z","git_url":"git://github.com/HarshaNalluru/azure-service-bus-node.git","ssh_url":"git@github.com:HarshaNalluru/azure-service-bus-node.git","clone_url":"https://github.com/HarshaNalluru/azure-service-bus-node.git","svn_url":"https://github.com/HarshaNalluru/azure-service-bus-node","homepage":null,"size":445,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"99b6bff5566f3f8499c8f38a97c7e9f37471cc55","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","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":71311975,"node_id":"MDEwOlJlcG9zaXRvcnk3MTMxMTk3NQ==","name":"azure-service-bus-node","full_name":"Azure/azure-service-bus-node","private":false,"owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","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},"html_url":"https://github.com/Azure/azure-service-bus-node","description":null,"fork":false,"url":"https://api.github.com/repos/Azure/azure-service-bus-node","forks_url":"https://api.github.com/repos/Azure/azure-service-bus-node/forks","keys_url":"https://api.github.com/repos/Azure/azure-service-bus-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-service-bus-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-service-bus-node/teams","hooks_url":"https://api.github.com/repos/Azure/azure-service-bus-node/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-service-bus-node/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-service-bus-node/events","assignees_url":"https://api.github.com/repos/Azure/azure-service-bus-node/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-service-bus-node/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-service-bus-node/tags","blobs_url":"https://api.github.com/repos/Azure/azure-service-bus-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-service-bus-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-service-bus-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-service-bus-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-service-bus-node/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-service-bus-node/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-service-bus-node/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-service-bus-node/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-service-bus-node/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-service-bus-node/subscription","commits_url":"https://api.github.com/repos/Azure/azure-service-bus-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-service-bus-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-service-bus-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-service-bus-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-service-bus-node/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-service-bus-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-service-bus-node/merges","archive_url":"https://api.github.com/repos/Azure/azure-service-bus-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-service-bus-node/downloads","issues_url":"https://api.github.com/repos/Azure/azure-service-bus-node/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-service-bus-node/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-service-bus-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-service-bus-node/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-service-bus-node/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-service-bus-node/deployments","created_at":"2016-10-19T02:42:46Z","updated_at":"2018-12-18T04:18:39Z","pushed_at":"2018-12-18T22:04:21Z","git_url":"git://github.com/Azure/azure-service-bus-node.git","ssh_url":"git@github.com:Azure/azure-service-bus-node.git","clone_url":"https://github.com/Azure/azure-service-bus-node.git","svn_url":"https://github.com/Azure/azure-service-bus-node","homepage":null,"size":437,"stargazers_count":3,"watchers_count":3,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":40,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":9,"open_issues":40,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/88"},"html":{"href":"https://github.com/Azure/azure-service-bus-node/pull/88"},"issue":{"href":"https://api.github.com/repos/Azure/azure-service-bus-node/issues/88"},"comments":{"href":"https://api.github.com/repos/Azure/azure-service-bus-node/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-service-bus-node/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-service-bus-node/statuses/1287164361878960e6cab4a50f9d6a0dd3c79cd4"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"HarshaNalluru"}}