{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/comments/244973980","pull_request_review_id":188978585,"id":244973980,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDk3Mzk4MA==","diff_hunk":"@@ -258,14 +258,16 @@ let client = mqtt.connect(connectionArgs);\n // Config updates are recommended to use QoS 1 (at least once delivery)\n client.subscribe(`/devices/${argv.deviceId}/config`, {qos: 1});\n \n-// Subscribe to the /devices/{device-id}/commands/# topic to receive commands\n-// commands is recommended to use QoS 0 (at most once delivery)\n+// Subscribe to the /devices/{device-id}/commands/# topic to receive all\n+// commands or to the /devices/{device-id}/commands/<subfolder> to just receive\n+// messages published to a specific commands folder; we recommend you use\n+// QoS 0 (at most once delivery)\n client.subscribe(`/devices/${argv.deviceId}/commands/#`, {qos: 0});\n \n-// The MQTT topic that this device will publish data to. The MQTT\n-// topic name is required to be in the format below. The topic name must end in\n-// 'state' to publish state and 'events' to publish telemetry. Note that this is\n-// not the same as the device registry's Cloud Pub/Sub topic.\n+// The MQTT topic that this device will publish data to. The MQTT topic name is k","path":"iot/mqtt_example/cloudiot_mqtt_example_nodejs.js","position":16,"original_position":16,"commit_id":"3a95380961e55fde027b09369468520db1359ce3","original_commit_id":"3a95380961e55fde027b09369468520db1359ce3","user":{"login":"fhinkel","id":101553,"node_id":"MDQ6VXNlcjEwMTU1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/101553?v=4","gravatar_id":"","url":"https://api.github.com/users/fhinkel","html_url":"https://github.com/fhinkel","followers_url":"https://api.github.com/users/fhinkel/followers","following_url":"https://api.github.com/users/fhinkel/following{/other_user}","gists_url":"https://api.github.com/users/fhinkel/gists{/gist_id}","starred_url":"https://api.github.com/users/fhinkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhinkel/subscriptions","organizations_url":"https://api.github.com/users/fhinkel/orgs","repos_url":"https://api.github.com/users/fhinkel/repos","events_url":"https://api.github.com/users/fhinkel/events{/privacy}","received_events_url":"https://api.github.com/users/fhinkel/received_events","type":"User","site_admin":false},"body":"small type here, extra `k`","created_at":"2019-01-03T11:35:02Z","updated_at":"2019-01-03T11:35:02Z","html_url":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/1076#discussion_r244973980","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/1076","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/comments/244973980"},"html":{"href":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/1076#discussion_r244973980"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/1076"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/1076","id":241845183,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxODQ1MTgz","html_url":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/1076","diff_url":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/1076.diff","patch_url":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/1076.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/issues/1076","number":1076,"state":"open","locked":false,"title":"Adds comments clarifying subfolder requirements for commands","user":{"login":"gguuss","id":3494394,"node_id":"MDQ6VXNlcjM0OTQzOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3494394?v=4","gravatar_id":"","url":"https://api.github.com/users/gguuss","html_url":"https://github.com/gguuss","followers_url":"https://api.github.com/users/gguuss/followers","following_url":"https://api.github.com/users/gguuss/following{/other_user}","gists_url":"https://api.github.com/users/gguuss/gists{/gist_id}","starred_url":"https://api.github.com/users/gguuss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gguuss/subscriptions","organizations_url":"https://api.github.com/users/gguuss/orgs","repos_url":"https://api.github.com/users/gguuss/repos","events_url":"https://api.github.com/users/gguuss/events{/privacy}","received_events_url":"https://api.github.com/users/gguuss/received_events","type":"User","site_admin":false},"body":"This is to address [this issue](https://github.com/GoogleCloudPlatform/nodejs-docs-samples/issues/1073).","created_at":"2019-01-02T20:54:04Z","updated_at":"2019-01-03T11:35:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f78a5b65ccda3a281c2ced3ec9b4489feaa857bc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":955669109,"node_id":"MDU6TGFiZWw5NTU2NjkxMDk=","url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/labels/cla:%20yes","name":"cla: yes","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/1076/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/1076/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/issues/1076/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/statuses/3a95380961e55fde027b09369468520db1359ce3","head":{"label":"GoogleCloudPlatform:iot-clarify-subfolder","ref":"iot-clarify-subfolder","sha":"3a95380961e55fde027b09369468520db1359ce3","user":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":35065891,"node_id":"MDEwOlJlcG9zaXRvcnkzNTA2NTg5MQ==","name":"nodejs-docs-samples","full_name":"GoogleCloudPlatform/nodejs-docs-samples","private":false,"owner":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples","description":"Node.js samples for Google Cloud Platform products.","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/deployments","created_at":"2015-05-04T23:26:38Z","updated_at":"2019-01-02T17:03:49Z","pushed_at":"2019-01-02T21:08:06Z","git_url":"git://github.com/GoogleCloudPlatform/nodejs-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/nodejs-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples","homepage":"https://cloud.google.com/nodejs","size":14735,"stargazers_count":1309,"watchers_count":1309,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":970,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":970,"open_issues":39,"watchers":1309,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"72e6f60bacda5a60034a2e80284bd59355b7d3d5","user":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":35065891,"node_id":"MDEwOlJlcG9zaXRvcnkzNTA2NTg5MQ==","name":"nodejs-docs-samples","full_name":"GoogleCloudPlatform/nodejs-docs-samples","private":false,"owner":{"login":"GoogleCloudPlatform","id":2810941,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTA5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples","description":"Node.js samples for Google Cloud Platform products.","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/deployments","created_at":"2015-05-04T23:26:38Z","updated_at":"2019-01-02T17:03:49Z","pushed_at":"2019-01-02T21:08:06Z","git_url":"git://github.com/GoogleCloudPlatform/nodejs-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/nodejs-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples","homepage":"https://cloud.google.com/nodejs","size":14735,"stargazers_count":1309,"watchers_count":1309,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":970,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":970,"open_issues":39,"watchers":1309,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/1076"},"html":{"href":"https://github.com/GoogleCloudPlatform/nodejs-docs-samples/pull/1076"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/issues/1076"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/issues/1076/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/1076/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/pulls/1076/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/nodejs-docs-samples/statuses/3a95380961e55fde027b09369468520db1359ce3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"fhinkel"}}