{"action":"created","comment":{"url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/comments/219000016","pull_request_review_id":157066140,"id":219000016,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTAwMDAxNg==","diff_hunk":"@@ -0,0 +1,97 @@\n+#!/bin/bash\n+set -e\n+\n+IS_PRERELEASE=true\n+\n+if [[ ! $- == *i* ]]\n+then\n+    echo \"Warning: this is an interactive script\"\n+fi\n+\n+if [[ -z $CIRCLE_CI_TOKEN ]]\n+then\n+  echo \"Please provide a CircleCI API token in \\$CIRCLE_CI_TOKEN\"\n+  exit 1\n+fi\n+\n+if [[ -z $GITHUB_TOKEN ]]\n+then\n+  echo \"Please provide a Github personal access token in \\$GITHUB_TOKEN\"\n+  exit 1\n+fi\n+\n+if [[ -z $GOPATH ]]\n+then\n+  echo \"Please install Golang\"\n+  exit 1\n+fi\n+\n+if [[ $(ls $GOPATH/bin/hub | wc -l) == \"0\" ]]\n+then\n+  echo \"Installing required tool Github 'hub'\"\n+  go get github.com/github/hub\n+fi\n+\n+read -p \"Creating a release off \\\"$(git branch | grep \\* | cut -d ' ' -f2)\\\", is this correct? [Y/n] \"  Y\n+if [[ -n $Y && \"$(echo $Y | tr '[:upper:]' '[:lower:]')\" != \"y\" ]]\n+then\n+  exit 0\n+fi\n+\n+read -p \"Enter release version (eg v1.2.3 or test-myfeature) \" VERSION","path":"scripts/release.sh","position":41,"original_position":41,"commit_id":"17238d071f346cde71f8e962e3b46f463ade0831","original_commit_id":"17238d071f346cde71f8e962e3b46f463ade0831","user":{"login":"willgittoes-dd","id":36894588,"node_id":"MDQ6VXNlcjM2ODk0NTg4","avatar_url":"https://avatars1.githubusercontent.com/u/36894588?v=4","gravatar_id":"","url":"https://api.github.com/users/willgittoes-dd","html_url":"https://github.com/willgittoes-dd","followers_url":"https://api.github.com/users/willgittoes-dd/followers","following_url":"https://api.github.com/users/willgittoes-dd/following{/other_user}","gists_url":"https://api.github.com/users/willgittoes-dd/gists{/gist_id}","starred_url":"https://api.github.com/users/willgittoes-dd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willgittoes-dd/subscriptions","organizations_url":"https://api.github.com/users/willgittoes-dd/orgs","repos_url":"https://api.github.com/users/willgittoes-dd/repos","events_url":"https://api.github.com/users/willgittoes-dd/events{/privacy}","received_events_url":"https://api.github.com/users/willgittoes-dd/received_events","type":"User","site_admin":false},"body":"If it's empty or already used, git tag fails","created_at":"2018-09-19T23:58:55Z","updated_at":"2018-09-19T23:58:55Z","html_url":"https://github.com/DataDog/dd-opentracing-cpp/pull/51#discussion_r219000016","pull_request_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/51","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/comments/219000016"},"html":{"href":"https://github.com/DataDog/dd-opentracing-cpp/pull/51#discussion_r219000016"},"pull_request":{"href":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/51"}},"in_reply_to_id":218984181},"pull_request":{"url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/51","id":216539909,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2NTM5OTA5","html_url":"https://github.com/DataDog/dd-opentracing-cpp/pull/51","diff_url":"https://github.com/DataDog/dd-opentracing-cpp/pull/51.diff","patch_url":"https://github.com/DataDog/dd-opentracing-cpp/pull/51.patch","issue_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/issues/51","number":51,"state":"open","locked":false,"title":"Adds a script to automate creating releases","user":{"login":"willgittoes-dd","id":36894588,"node_id":"MDQ6VXNlcjM2ODk0NTg4","avatar_url":"https://avatars1.githubusercontent.com/u/36894588?v=4","gravatar_id":"","url":"https://api.github.com/users/willgittoes-dd","html_url":"https://github.com/willgittoes-dd","followers_url":"https://api.github.com/users/willgittoes-dd/followers","following_url":"https://api.github.com/users/willgittoes-dd/following{/other_user}","gists_url":"https://api.github.com/users/willgittoes-dd/gists{/gist_id}","starred_url":"https://api.github.com/users/willgittoes-dd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willgittoes-dd/subscriptions","organizations_url":"https://api.github.com/users/willgittoes-dd/orgs","repos_url":"https://api.github.com/users/willgittoes-dd/repos","events_url":"https://api.github.com/users/willgittoes-dd/events{/privacy}","received_events_url":"https://api.github.com/users/willgittoes-dd/received_events","type":"User","site_admin":false},"body":"It's designed to be run on a developer machine. It creates a signed tag, runs CI on the tag, downloads the artifact, signs it, and creates a github release with the artifact.\r\n\r\nIt's still pretty basic, but it makes things a bit nicer and introduces signed releases and binaries.\r\n\r\nFuture features might include: \r\n* Support multiple artifacts, rather than a single specific one\r\n* Download and sign the code tarball from the Github release (a la https://wiki.debian.org/Creating%20signed%20GitHub%20releases)\r\n* Check the script-runner has working gpg (mine was borked)\r\n* Warn about doing things like: deleting, creating, populating, and deleting again a .bin folder in the current working directory \r\n","created_at":"2018-09-19T07:30:05Z","updated_at":"2018-09-19T23:58:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"854880e2a4d4fb5bfd1b884968fb3f6b22c75df0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":895732852,"node_id":"MDU6TGFiZWw4OTU3MzI4NTI=","url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/labels/core","name":"core","color":"b60205","default":false},{"id":895733087,"node_id":"MDU6TGFiZWw4OTU3MzMwODc=","url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/labels/dev/tooling","name":"dev/tooling","color":"c5def5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/51/commits","review_comments_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/51/comments","review_comment_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/issues/51/comments","statuses_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/statuses/17238d071f346cde71f8e962e3b46f463ade0831","head":{"label":"DataDog:willgittoes-dd/release-automation","ref":"willgittoes-dd/release-automation","sha":"17238d071f346cde71f8e962e3b46f463ade0831","user":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"repo":{"id":128264903,"node_id":"MDEwOlJlcG9zaXRvcnkxMjgyNjQ5MDM=","name":"dd-opentracing-cpp","full_name":"DataDog/dd-opentracing-cpp","private":false,"owner":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DataDog/dd-opentracing-cpp","description":"Datadog Opentracing C++ Client","fork":false,"url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp","forks_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/forks","keys_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/teams","hooks_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/hooks","issue_events_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/issues/events{/number}","events_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/events","assignees_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/assignees{/user}","branches_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/branches{/branch}","tags_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/tags","blobs_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/statuses/{sha}","languages_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/languages","stargazers_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/stargazers","contributors_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/contributors","subscribers_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/subscribers","subscription_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/subscription","commits_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/contents/{+path}","compare_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/merges","archive_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/downloads","issues_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/issues{/number}","pulls_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls{/number}","milestones_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/milestones{/number}","notifications_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/labels{/name}","releases_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/releases{/id}","deployments_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/deployments","created_at":"2018-04-05T21:12:56Z","updated_at":"2018-09-19T23:52:00Z","pushed_at":"2018-09-19T23:52:02Z","git_url":"git://github.com/DataDog/dd-opentracing-cpp.git","ssh_url":"git@github.com:DataDog/dd-opentracing-cpp.git","clone_url":"https://github.com/DataDog/dd-opentracing-cpp.git","svn_url":"https://github.com/DataDog/dd-opentracing-cpp","homepage":null,"size":467,"stargazers_count":4,"watchers_count":4,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"DataDog:master","ref":"master","sha":"49f4e42b817b38989a363a8955dd69e6224c820f","user":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"repo":{"id":128264903,"node_id":"MDEwOlJlcG9zaXRvcnkxMjgyNjQ5MDM=","name":"dd-opentracing-cpp","full_name":"DataDog/dd-opentracing-cpp","private":false,"owner":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DataDog/dd-opentracing-cpp","description":"Datadog Opentracing C++ Client","fork":false,"url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp","forks_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/forks","keys_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/teams","hooks_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/hooks","issue_events_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/issues/events{/number}","events_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/events","assignees_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/assignees{/user}","branches_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/branches{/branch}","tags_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/tags","blobs_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/statuses/{sha}","languages_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/languages","stargazers_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/stargazers","contributors_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/contributors","subscribers_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/subscribers","subscription_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/subscription","commits_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/contents/{+path}","compare_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/merges","archive_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/downloads","issues_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/issues{/number}","pulls_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls{/number}","milestones_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/milestones{/number}","notifications_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/labels{/name}","releases_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/releases{/id}","deployments_url":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/deployments","created_at":"2018-04-05T21:12:56Z","updated_at":"2018-09-19T23:52:00Z","pushed_at":"2018-09-19T23:52:02Z","git_url":"git://github.com/DataDog/dd-opentracing-cpp.git","ssh_url":"git@github.com:DataDog/dd-opentracing-cpp.git","clone_url":"https://github.com/DataDog/dd-opentracing-cpp.git","svn_url":"https://github.com/DataDog/dd-opentracing-cpp","homepage":null,"size":467,"stargazers_count":4,"watchers_count":4,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/51"},"html":{"href":"https://github.com/DataDog/dd-opentracing-cpp/pull/51"},"issue":{"href":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/issues/51"},"comments":{"href":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/DataDog/dd-opentracing-cpp/statuses/17238d071f346cde71f8e962e3b46f463ade0831"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"willgittoes-dd"}}