{"action":"created","comment":{"url":"https://api.github.com/repos/sensu/sensu-docs/pulls/comments/325834627","pull_request_review_id":290125674,"id":325834627,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyNTgzNDYyNw==","diff_hunk":"@@ -96,6 +96,186 @@ sensu-example-handler_1.0.0_linux_amd64\n └── include\n {{< /highlight >}}\n \n+### Asset hello world example\n+\n+In this example, we'll run a script that outputs `Hello World`:\n+\n+{{< highlight bash >}}\n+hello-world.sh\n+\n+#!/bin/sh\n+\n+STRING=\"Hello World\"\n+\n+echo $STRING\n+\n+if [ $? -eq 0 ]; then\n+    exit 0\n+else\n+    exit 2\n+fi\n+{{< /highlight >}}\n+\n+The first step is to ensure that our directory structure is in place. As noted in [Example structure](#example-structure), our script could live in three potential directories in the project: `/bin`, `/lib`, or `/include`. For this case, we will put our script in the `/bin` directory. We'll create the directories `sensu-go-hello-world` and `/bin`:","path":"content/sensu-go/5.13/reference/assets.md","position":24,"original_position":24,"commit_id":"5707ef53e479fa7e23381219fdb07d371a7c2706","original_commit_id":"5707ef53e479fa7e23381219fdb07d371a7c2706","user":{"login":"hillaryfraley","id":19190208,"node_id":"MDQ6VXNlcjE5MTkwMjA4","avatar_url":"https://avatars3.githubusercontent.com/u/19190208?v=4","gravatar_id":"","url":"https://api.github.com/users/hillaryfraley","html_url":"https://github.com/hillaryfraley","followers_url":"https://api.github.com/users/hillaryfraley/followers","following_url":"https://api.github.com/users/hillaryfraley/following{/other_user}","gists_url":"https://api.github.com/users/hillaryfraley/gists{/gist_id}","starred_url":"https://api.github.com/users/hillaryfraley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hillaryfraley/subscriptions","organizations_url":"https://api.github.com/users/hillaryfraley/orgs","repos_url":"https://api.github.com/users/hillaryfraley/repos","events_url":"https://api.github.com/users/hillaryfraley/events{/privacy}","received_events_url":"https://api.github.com/users/hillaryfraley/received_events","type":"User","site_admin":false},"body":"It works -- I recloned the repo and updated this doc before I ran it. The link works! (which I think you probably already knew... :D )","created_at":"2019-09-18T18:43:24Z","updated_at":"2019-09-18T18:43:24Z","html_url":"https://github.com/sensu/sensu-docs/pull/1760#discussion_r325834627","pull_request_url":"https://api.github.com/repos/sensu/sensu-docs/pulls/1760","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/sensu/sensu-docs/pulls/comments/325834627"},"html":{"href":"https://github.com/sensu/sensu-docs/pull/1760#discussion_r325834627"},"pull_request":{"href":"https://api.github.com/repos/sensu/sensu-docs/pulls/1760"}},"in_reply_to_id":325779284},"pull_request":{"url":"https://api.github.com/repos/sensu/sensu-docs/pulls/1760","id":318518958,"node_id":"MDExOlB1bGxSZXF1ZXN0MzE4NTE4OTU4","html_url":"https://github.com/sensu/sensu-docs/pull/1760","diff_url":"https://github.com/sensu/sensu-docs/pull/1760.diff","patch_url":"https://github.com/sensu/sensu-docs/pull/1760.patch","issue_url":"https://api.github.com/repos/sensu/sensu-docs/issues/1760","number":1760,"state":"open","locked":false,"title":"Adds a \"Hello World\" set of instructions to the asset ref doc","user":{"login":"asachs01","id":898627,"node_id":"MDQ6VXNlcjg5ODYyNw==","avatar_url":"https://avatars0.githubusercontent.com/u/898627?v=4","gravatar_id":"","url":"https://api.github.com/users/asachs01","html_url":"https://github.com/asachs01","followers_url":"https://api.github.com/users/asachs01/followers","following_url":"https://api.github.com/users/asachs01/following{/other_user}","gists_url":"https://api.github.com/users/asachs01/gists{/gist_id}","starred_url":"https://api.github.com/users/asachs01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asachs01/subscriptions","organizations_url":"https://api.github.com/users/asachs01/orgs","repos_url":"https://api.github.com/users/asachs01/repos","events_url":"https://api.github.com/users/asachs01/events{/privacy}","received_events_url":"https://api.github.com/users/asachs01/received_events","type":"User","site_admin":false},"body":"<!--- Thanks for submitting a pull request! -->\r\n<!--- If you haven't yet, please read the contributing guide at: -->\r\n<!--- https://github.com/sensu/sensu-docs/blob/master/CONTRIBUTING.md -->\r\n<!--- Provide a general summary of your changes in the Title above. -->\r\n\r\n## Description\r\n<!--- Describe your changes in detail -->\r\nProvides guidance for creating a basic asset from scratch with a shell script. Also provides instruction for creating a Github release/hosting the asset on Github for use as an asset.\r\n\r\n## Motivation and Context\r\n<!--- Why is this change required? What problem does it solve? -->\r\n<!--- If it fixes an open issue, please link to the issue here: \"Closes #555\" -->\r\nCloses #1725 \r\n\r\n\r\n","created_at":"2019-09-17T20:46:37Z","updated_at":"2019-09-18T18:43:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b3f995665f9fbc054a38acc49c1a3dbb3bbc565","assignee":null,"assignees":[],"requested_reviewers":[{"login":"cwjohnston","id":148017,"node_id":"MDQ6VXNlcjE0ODAxNw==","avatar_url":"https://avatars1.githubusercontent.com/u/148017?v=4","gravatar_id":"","url":"https://api.github.com/users/cwjohnston","html_url":"https://github.com/cwjohnston","followers_url":"https://api.github.com/users/cwjohnston/followers","following_url":"https://api.github.com/users/cwjohnston/following{/other_user}","gists_url":"https://api.github.com/users/cwjohnston/gists{/gist_id}","starred_url":"https://api.github.com/users/cwjohnston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwjohnston/subscriptions","organizations_url":"https://api.github.com/users/cwjohnston/orgs","repos_url":"https://api.github.com/users/cwjohnston/repos","events_url":"https://api.github.com/users/cwjohnston/events{/privacy}","received_events_url":"https://api.github.com/users/cwjohnston/received_events","type":"User","site_admin":false},{"login":"Blue0ctober","id":1622114,"node_id":"MDQ6VXNlcjE2MjIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1622114?v=4","gravatar_id":"","url":"https://api.github.com/users/Blue0ctober","html_url":"https://github.com/Blue0ctober","followers_url":"https://api.github.com/users/Blue0ctober/followers","following_url":"https://api.github.com/users/Blue0ctober/following{/other_user}","gists_url":"https://api.github.com/users/Blue0ctober/gists{/gist_id}","starred_url":"https://api.github.com/users/Blue0ctober/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Blue0ctober/subscriptions","organizations_url":"https://api.github.com/users/Blue0ctober/orgs","repos_url":"https://api.github.com/users/Blue0ctober/repos","events_url":"https://api.github.com/users/Blue0ctober/events{/privacy}","received_events_url":"https://api.github.com/users/Blue0ctober/received_events","type":"User","site_admin":false},{"login":"rgeniesse","id":19964713,"node_id":"MDQ6VXNlcjE5OTY0NzEz","avatar_url":"https://avatars3.githubusercontent.com/u/19964713?v=4","gravatar_id":"","url":"https://api.github.com/users/rgeniesse","html_url":"https://github.com/rgeniesse","followers_url":"https://api.github.com/users/rgeniesse/followers","following_url":"https://api.github.com/users/rgeniesse/following{/other_user}","gists_url":"https://api.github.com/users/rgeniesse/gists{/gist_id}","starred_url":"https://api.github.com/users/rgeniesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgeniesse/subscriptions","organizations_url":"https://api.github.com/users/rgeniesse/orgs","repos_url":"https://api.github.com/users/rgeniesse/repos","events_url":"https://api.github.com/users/rgeniesse/events{/privacy}","received_events_url":"https://api.github.com/users/rgeniesse/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sensu/sensu-docs/pulls/1760/commits","review_comments_url":"https://api.github.com/repos/sensu/sensu-docs/pulls/1760/comments","review_comment_url":"https://api.github.com/repos/sensu/sensu-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sensu/sensu-docs/issues/1760/comments","statuses_url":"https://api.github.com/repos/sensu/sensu-docs/statuses/5707ef53e479fa7e23381219fdb07d371a7c2706","head":{"label":"sensu:1725-add-asset-hello-world","ref":"1725-add-asset-hello-world","sha":"5707ef53e479fa7e23381219fdb07d371a7c2706","user":{"login":"sensu","id":1648901,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDg5MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1648901?v=4","gravatar_id":"","url":"https://api.github.com/users/sensu","html_url":"https://github.com/sensu","followers_url":"https://api.github.com/users/sensu/followers","following_url":"https://api.github.com/users/sensu/following{/other_user}","gists_url":"https://api.github.com/users/sensu/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu/subscriptions","organizations_url":"https://api.github.com/users/sensu/orgs","repos_url":"https://api.github.com/users/sensu/repos","events_url":"https://api.github.com/users/sensu/events{/privacy}","received_events_url":"https://api.github.com/users/sensu/received_events","type":"Organization","site_admin":false},"repo":{"id":97493859,"node_id":"MDEwOlJlcG9zaXRvcnk5NzQ5Mzg1OQ==","name":"sensu-docs","full_name":"sensu/sensu-docs","private":false,"owner":{"login":"sensu","id":1648901,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDg5MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1648901?v=4","gravatar_id":"","url":"https://api.github.com/users/sensu","html_url":"https://github.com/sensu","followers_url":"https://api.github.com/users/sensu/followers","following_url":"https://api.github.com/users/sensu/following{/other_user}","gists_url":"https://api.github.com/users/sensu/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu/subscriptions","organizations_url":"https://api.github.com/users/sensu/orgs","repos_url":"https://api.github.com/users/sensu/repos","events_url":"https://api.github.com/users/sensu/events{/privacy}","received_events_url":"https://api.github.com/users/sensu/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sensu/sensu-docs","description":"Documentation for Sensu","fork":false,"url":"https://api.github.com/repos/sensu/sensu-docs","forks_url":"https://api.github.com/repos/sensu/sensu-docs/forks","keys_url":"https://api.github.com/repos/sensu/sensu-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sensu/sensu-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sensu/sensu-docs/teams","hooks_url":"https://api.github.com/repos/sensu/sensu-docs/hooks","issue_events_url":"https://api.github.com/repos/sensu/sensu-docs/issues/events{/number}","events_url":"https://api.github.com/repos/sensu/sensu-docs/events","assignees_url":"https://api.github.com/repos/sensu/sensu-docs/assignees{/user}","branches_url":"https://api.github.com/repos/sensu/sensu-docs/branches{/branch}","tags_url":"https://api.github.com/repos/sensu/sensu-docs/tags","blobs_url":"https://api.github.com/repos/sensu/sensu-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sensu/sensu-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sensu/sensu-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/sensu/sensu-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sensu/sensu-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/sensu/sensu-docs/languages","stargazers_url":"https://api.github.com/repos/sensu/sensu-docs/stargazers","contributors_url":"https://api.github.com/repos/sensu/sensu-docs/contributors","subscribers_url":"https://api.github.com/repos/sensu/sensu-docs/subscribers","subscription_url":"https://api.github.com/repos/sensu/sensu-docs/subscription","commits_url":"https://api.github.com/repos/sensu/sensu-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/sensu/sensu-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/sensu/sensu-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/sensu/sensu-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/sensu/sensu-docs/contents/{+path}","compare_url":"https://api.github.com/repos/sensu/sensu-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sensu/sensu-docs/merges","archive_url":"https://api.github.com/repos/sensu/sensu-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sensu/sensu-docs/downloads","issues_url":"https://api.github.com/repos/sensu/sensu-docs/issues{/number}","pulls_url":"https://api.github.com/repos/sensu/sensu-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/sensu/sensu-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/sensu/sensu-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sensu/sensu-docs/labels{/name}","releases_url":"https://api.github.com/repos/sensu/sensu-docs/releases{/id}","deployments_url":"https://api.github.com/repos/sensu/sensu-docs/deployments","created_at":"2017-07-17T15:50:05Z","updated_at":"2019-09-16T21:36:22Z","pushed_at":"2019-09-18T16:38:09Z","git_url":"git://github.com/sensu/sensu-docs.git","ssh_url":"git@github.com:sensu/sensu-docs.git","clone_url":"https://github.com/sensu/sensu-docs.git","svn_url":"https://github.com/sensu/sensu-docs","homepage":"https://docs.sensu.io","size":37426,"stargazers_count":23,"watchers_count":23,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":98,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":35,"open_issues":98,"watchers":23,"default_branch":"master"}},"base":{"label":"sensu:master","ref":"master","sha":"008d55b9ac117f40de6109fe8cf3af34d66d6812","user":{"login":"sensu","id":1648901,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDg5MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1648901?v=4","gravatar_id":"","url":"https://api.github.com/users/sensu","html_url":"https://github.com/sensu","followers_url":"https://api.github.com/users/sensu/followers","following_url":"https://api.github.com/users/sensu/following{/other_user}","gists_url":"https://api.github.com/users/sensu/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu/subscriptions","organizations_url":"https://api.github.com/users/sensu/orgs","repos_url":"https://api.github.com/users/sensu/repos","events_url":"https://api.github.com/users/sensu/events{/privacy}","received_events_url":"https://api.github.com/users/sensu/received_events","type":"Organization","site_admin":false},"repo":{"id":97493859,"node_id":"MDEwOlJlcG9zaXRvcnk5NzQ5Mzg1OQ==","name":"sensu-docs","full_name":"sensu/sensu-docs","private":false,"owner":{"login":"sensu","id":1648901,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDg5MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1648901?v=4","gravatar_id":"","url":"https://api.github.com/users/sensu","html_url":"https://github.com/sensu","followers_url":"https://api.github.com/users/sensu/followers","following_url":"https://api.github.com/users/sensu/following{/other_user}","gists_url":"https://api.github.com/users/sensu/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu/subscriptions","organizations_url":"https://api.github.com/users/sensu/orgs","repos_url":"https://api.github.com/users/sensu/repos","events_url":"https://api.github.com/users/sensu/events{/privacy}","received_events_url":"https://api.github.com/users/sensu/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sensu/sensu-docs","description":"Documentation for Sensu","fork":false,"url":"https://api.github.com/repos/sensu/sensu-docs","forks_url":"https://api.github.com/repos/sensu/sensu-docs/forks","keys_url":"https://api.github.com/repos/sensu/sensu-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sensu/sensu-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sensu/sensu-docs/teams","hooks_url":"https://api.github.com/repos/sensu/sensu-docs/hooks","issue_events_url":"https://api.github.com/repos/sensu/sensu-docs/issues/events{/number}","events_url":"https://api.github.com/repos/sensu/sensu-docs/events","assignees_url":"https://api.github.com/repos/sensu/sensu-docs/assignees{/user}","branches_url":"https://api.github.com/repos/sensu/sensu-docs/branches{/branch}","tags_url":"https://api.github.com/repos/sensu/sensu-docs/tags","blobs_url":"https://api.github.com/repos/sensu/sensu-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sensu/sensu-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sensu/sensu-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/sensu/sensu-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sensu/sensu-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/sensu/sensu-docs/languages","stargazers_url":"https://api.github.com/repos/sensu/sensu-docs/stargazers","contributors_url":"https://api.github.com/repos/sensu/sensu-docs/contributors","subscribers_url":"https://api.github.com/repos/sensu/sensu-docs/subscribers","subscription_url":"https://api.github.com/repos/sensu/sensu-docs/subscription","commits_url":"https://api.github.com/repos/sensu/sensu-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/sensu/sensu-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/sensu/sensu-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/sensu/sensu-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/sensu/sensu-docs/contents/{+path}","compare_url":"https://api.github.com/repos/sensu/sensu-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sensu/sensu-docs/merges","archive_url":"https://api.github.com/repos/sensu/sensu-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sensu/sensu-docs/downloads","issues_url":"https://api.github.com/repos/sensu/sensu-docs/issues{/number}","pulls_url":"https://api.github.com/repos/sensu/sensu-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/sensu/sensu-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/sensu/sensu-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sensu/sensu-docs/labels{/name}","releases_url":"https://api.github.com/repos/sensu/sensu-docs/releases{/id}","deployments_url":"https://api.github.com/repos/sensu/sensu-docs/deployments","created_at":"2017-07-17T15:50:05Z","updated_at":"2019-09-16T21:36:22Z","pushed_at":"2019-09-18T16:38:09Z","git_url":"git://github.com/sensu/sensu-docs.git","ssh_url":"git@github.com:sensu/sensu-docs.git","clone_url":"https://github.com/sensu/sensu-docs.git","svn_url":"https://github.com/sensu/sensu-docs","homepage":"https://docs.sensu.io","size":37426,"stargazers_count":23,"watchers_count":23,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":98,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":35,"open_issues":98,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sensu/sensu-docs/pulls/1760"},"html":{"href":"https://github.com/sensu/sensu-docs/pull/1760"},"issue":{"href":"https://api.github.com/repos/sensu/sensu-docs/issues/1760"},"comments":{"href":"https://api.github.com/repos/sensu/sensu-docs/issues/1760/comments"},"review_comments":{"href":"https://api.github.com/repos/sensu/sensu-docs/pulls/1760/comments"},"review_comment":{"href":"https://api.github.com/repos/sensu/sensu-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sensu/sensu-docs/pulls/1760/commits"},"statuses":{"href":"https://api.github.com/repos/sensu/sensu-docs/statuses/5707ef53e479fa7e23381219fdb07d371a7c2706"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hillaryfraley"}}