payload: {"action":"created","comment":{"url":"https://api.github.com/repos/cloud-annotations/training/pulls/comments/362697733","pull_request_review_id":337939014,"id":362697733,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2MjY5NzczMw==","diff_hunk":"@@ -22,19 +22,17 @@ THE SOFTWARE.\n package cmd\n \n import (\n-\t\"fmt\"\n-\n+\t\"github.com/cloud-annotations/training/cacli/cmd/cancel\"\n \t\"github.com/spf13/cobra\"\n )\n \n // cancelCmd represents the cancel command\n var cancelCmd = &cobra.Command{\n \tUse:   \"cancel <model-id>\",\n-\tShort: \"Coming soon\",\n-\tLong:  `Coming soon.`,\n-\tRun: func(cmd *cobra.Command, args []string) {\n-\t\tfmt.Println(\"This command is not yet available.\")\n-\t},\n+\tShort: \"Cancel a training that is either pending or running\",","path":"cacli/cmd/cancel.go","position":18,"original_position":18,"commit_id":"2e1ff10be33f1987e661868ed0de7cbbb5905100","original_commit_id":"2e1ff10be33f1987e661868ed0de7cbbb5905100","user":{"login":"bourdakos1","id":4212769,"node_id":"MDQ6VXNlcjQyMTI3Njk=","avatar_url":"https://avatars0.githubusercontent.com/u/4212769?v=4","gravatar_id":"","url":"https://api.github.com/users/bourdakos1","html_url":"https://github.com/bourdakos1","followers_url":"https://api.github.com/users/bourdakos1/followers","following_url":"https://api.github.com/users/bourdakos1/following{/other_user}","gists_url":"https://api.github.com/users/bourdakos1/gists{/gist_id}","starred_url":"https://api.github.com/users/bourdakos1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bourdakos1/subscriptions","organizations_url":"https://api.github.com/users/bourdakos1/orgs","repos_url":"https://api.github.com/users/bourdakos1/repos","events_url":"https://api.github.com/users/bourdakos1/events{/privacy}","received_events_url":"https://api.github.com/users/bourdakos1/received_events","type":"User","site_admin":false},"body":"\"Cancel a training run\"","created_at":"2020-01-03T03:20:58Z","updated_at":"2020-01-03T03:48:56Z","html_url":"https://github.com/cloud-annotations/training/pull/178#discussion_r362697733","pull_request_url":"https://api.github.com/repos/cloud-annotations/training/pulls/178","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/cloud-annotations/training/pulls/comments/362697733"},"html":{"href":"https://github.com/cloud-annotations/training/pull/178#discussion_r362697733"},"pull_request":{"href":"https://api.github.com/repos/cloud-annotations/training/pulls/178"}}},"pull_request":{"url":"https://api.github.com/repos/cloud-annotations/training/pulls/178","id":358840622,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU4ODQwNjIy","html_url":"https://github.com/cloud-annotations/training/pull/178","diff_url":"https://github.com/cloud-annotations/training/pull/178.diff","patch_url":"https://github.com/cloud-annotations/training/pull/178.patch","issue_url":"https://api.github.com/repos/cloud-annotations/training/issues/178","number":178,"state":"open","locked":false,"title":"Implemented Cancel command","user":{"login":"moficodes","id":14829780,"node_id":"MDQ6VXNlcjE0ODI5Nzgw","avatar_url":"https://avatars3.githubusercontent.com/u/14829780?v=4","gravatar_id":"","url":"https://api.github.com/users/moficodes","html_url":"https://github.com/moficodes","followers_url":"https://api.github.com/users/moficodes/followers","following_url":"https://api.github.com/users/moficodes/following{/other_user}","gists_url":"https://api.github.com/users/moficodes/gists{/gist_id}","starred_url":"https://api.github.com/users/moficodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moficodes/subscriptions","organizations_url":"https://api.github.com/users/moficodes/orgs","repos_url":"https://api.github.com/users/moficodes/repos","events_url":"https://api.github.com/users/moficodes/events{/privacy}","received_events_url":"https://api.github.com/users/moficodes/received_events","type":"User","site_admin":false},"body":"Added the cancel command\r\nCleaned up some code from the ibmcloud package\r\n- Moved the request stuff (POST, GET, PATCH) to request.go file\r\n- Extracted the repeated stuff to its own function\r\nAdded a spinner on the cancel as we wait. (Its a long wait ~2 mins)","created_at":"2020-01-03T00:43:33Z","updated_at":"2020-01-03T03:48:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"427cd5a69b9dd49362d6739861593df9e45d3760","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1618600458,"node_id":"MDU6TGFiZWwxNjE4NjAwNDU4","url":"https://api.github.com/repos/cloud-annotations/training/labels/cli","name":"cli","color":"c5def5","default":false,"description":""}],"milestone":null,"commits_url":"https://api.github.com/repos/cloud-annotations/training/pulls/178/commits","review_comments_url":"https://api.github.com/repos/cloud-annotations/training/pulls/178/comments","review_comment_url":"https://api.github.com/repos/cloud-annotations/training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloud-annotations/training/issues/178/comments","statuses_url":"https://api.github.com/repos/cloud-annotations/training/statuses/2e1ff10be33f1987e661868ed0de7cbbb5905100","head":{"label":"cloud-annotations:cancel-command","ref":"cancel-command","sha":"2e1ff10be33f1987e661868ed0de7cbbb5905100","user":{"login":"cloud-annotations","id":47490031,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3NDkwMDMx","avatar_url":"https://avatars3.githubusercontent.com/u/47490031?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-annotations","html_url":"https://github.com/cloud-annotations","followers_url":"https://api.github.com/users/cloud-annotations/followers","following_url":"https://api.github.com/users/cloud-annotations/following{/other_user}","gists_url":"https://api.github.com/users/cloud-annotations/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-annotations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-annotations/subscriptions","organizations_url":"https://api.github.com/users/cloud-annotations/orgs","repos_url":"https://api.github.com/users/cloud-annotations/repos","events_url":"https://api.github.com/users/cloud-annotations/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-annotations/received_events","type":"Organization","site_admin":false},"repo":{"id":168172167,"node_id":"MDEwOlJlcG9zaXRvcnkxNjgxNzIxNjc=","name":"training","full_name":"cloud-annotations/training","private":false,"owner":{"login":"cloud-annotations","id":47490031,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3NDkwMDMx","avatar_url":"https://avatars3.githubusercontent.com/u/47490031?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-annotations","html_url":"https://github.com/cloud-annotations","followers_url":"https://api.github.com/users/cloud-annotations/followers","following_url":"https://api.github.com/users/cloud-annotations/following{/other_user}","gists_url":"https://api.github.com/users/cloud-annotations/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-annotations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-annotations/subscriptions","organizations_url":"https://api.github.com/users/cloud-annotations/orgs","repos_url":"https://api.github.com/users/cloud-annotations/repos","events_url":"https://api.github.com/users/cloud-annotations/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-annotations/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cloud-annotations/training","description":"🐝 Custom Object Detection and Classification Training","fork":false,"url":"https://api.github.com/repos/cloud-annotations/training","forks_url":"https://api.github.com/repos/cloud-annotations/training/forks","keys_url":"https://api.github.com/repos/cloud-annotations/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloud-annotations/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloud-annotations/training/teams","hooks_url":"https://api.github.com/repos/cloud-annotations/training/hooks","issue_events_url":"https://api.github.com/repos/cloud-annotations/training/issues/events{/number}","events_url":"https://api.github.com/repos/cloud-annotations/training/events","assignees_url":"https://api.github.com/repos/cloud-annotations/training/assignees{/user}","branches_url":"https://api.github.com/repos/cloud-annotations/training/branches{/branch}","tags_url":"https://api.github.com/repos/cloud-annotations/training/tags","blobs_url":"https://api.github.com/repos/cloud-annotations/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloud-annotations/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloud-annotations/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloud-annotations/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloud-annotations/training/statuses/{sha}","languages_url":"https://api.github.com/repos/cloud-annotations/training/languages","stargazers_url":"https://api.github.com/repos/cloud-annotations/training/stargazers","contributors_url":"https://api.github.com/repos/cloud-annotations/training/contributors","subscribers_url":"https://api.github.com/repos/cloud-annotations/training/subscribers","subscription_url":"https://api.github.com/repos/cloud-annotations/training/subscription","commits_url":"https://api.github.com/repos/cloud-annotations/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloud-annotations/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloud-annotations/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloud-annotations/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloud-annotations/training/contents/{+path}","compare_url":"https://api.github.com/repos/cloud-annotations/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloud-annotations/training/merges","archive_url":"https://api.github.com/repos/cloud-annotations/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloud-annotations/training/downloads","issues_url":"https://api.github.com/repos/cloud-annotations/training/issues{/number}","pulls_url":"https://api.github.com/repos/cloud-annotations/training/pulls{/number}","milestones_url":"https://api.github.com/repos/cloud-annotations/training/milestones{/number}","notifications_url":"https://api.github.com/repos/cloud-annotations/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloud-annotations/training/labels{/name}","releases_url":"https://api.github.com/repos/cloud-annotations/training/releases{/id}","deployments_url":"https://api.github.com/repos/cloud-annotations/training/deployments","created_at":"2019-01-29T14:52:41Z","updated_at":"2020-01-02T12:25:32Z","pushed_at":"2020-01-03T03:02:00Z","git_url":"git://github.com/cloud-annotations/training.git","ssh_url":"git@github.com:cloud-annotations/training.git","clone_url":"https://github.com/cloud-annotations/training.git","svn_url":"https://github.com/cloud-annotations/training","homepage":"","size":30373,"stargazers_count":2428,"watchers_count":2428,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":464,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":29,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":464,"open_issues":29,"watchers":2428,"default_branch":"master"}},"base":{"label":"cloud-annotations:master","ref":"master","sha":"ea33bc2bb5d58263130403d1f0fcdcec34dda2a1","user":{"login":"cloud-annotations","id":47490031,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3NDkwMDMx","avatar_url":"https://avatars3.githubusercontent.com/u/47490031?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-annotations","html_url":"https://github.com/cloud-annotations","followers_url":"https://api.github.com/users/cloud-annotations/followers","following_url":"https://api.github.com/users/cloud-annotations/following{/other_user}","gists_url":"https://api.github.com/users/cloud-annotations/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-annotations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-annotations/subscriptions","organizations_url":"https://api.github.com/users/cloud-annotations/orgs","repos_url":"https://api.github.com/users/cloud-annotations/repos","events_url":"https://api.github.com/users/cloud-annotations/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-annotations/received_events","type":"Organization","site_admin":false},"repo":{"id":168172167,"node_id":"MDEwOlJlcG9zaXRvcnkxNjgxNzIxNjc=","name":"training","full_name":"cloud-annotations/training","private":false,"owner":{"login":"cloud-annotations","id":47490031,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3NDkwMDMx","avatar_url":"https://avatars3.githubusercontent.com/u/47490031?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-annotations","html_url":"https://github.com/cloud-annotations","followers_url":"https://api.github.com/users/cloud-annotations/followers","following_url":"https://api.github.com/users/cloud-annotations/following{/other_user}","gists_url":"https://api.github.com/users/cloud-annotations/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-annotations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-annotations/subscriptions","organizations_url":"https://api.github.com/users/cloud-annotations/orgs","repos_url":"https://api.github.com/users/cloud-annotations/repos","events_url":"https://api.github.com/users/cloud-annotations/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-annotations/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cloud-annotations/training","description":"🐝 Custom Object Detection and Classification Training","fork":false,"url":"https://api.github.com/repos/cloud-annotations/training","forks_url":"https://api.github.com/repos/cloud-annotations/training/forks","keys_url":"https://api.github.com/repos/cloud-annotations/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloud-annotations/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloud-annotations/training/teams","hooks_url":"https://api.github.com/repos/cloud-annotations/training/hooks","issue_events_url":"https://api.github.com/repos/cloud-annotations/training/issues/events{/number}","events_url":"https://api.github.com/repos/cloud-annotations/training/events","assignees_url":"https://api.github.com/repos/cloud-annotations/training/assignees{/user}","branches_url":"https://api.github.com/repos/cloud-annotations/training/branches{/branch}","tags_url":"https://api.github.com/repos/cloud-annotations/training/tags","blobs_url":"https://api.github.com/repos/cloud-annotations/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloud-annotations/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloud-annotations/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloud-annotations/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloud-annotations/training/statuses/{sha}","languages_url":"https://api.github.com/repos/cloud-annotations/training/languages","stargazers_url":"https://api.github.com/repos/cloud-annotations/training/stargazers","contributors_url":"https://api.github.com/repos/cloud-annotations/training/contributors","subscribers_url":"https://api.github.com/repos/cloud-annotations/training/subscribers","subscription_url":"https://api.github.com/repos/cloud-annotations/training/subscription","commits_url":"https://api.github.com/repos/cloud-annotations/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloud-annotations/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloud-annotations/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloud-annotations/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloud-annotations/training/contents/{+path}","compare_url":"https://api.github.com/repos/cloud-annotations/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloud-annotations/training/merges","archive_url":"https://api.github.com/repos/cloud-annotations/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloud-annotations/training/downloads","issues_url":"https://api.github.com/repos/cloud-annotations/training/issues{/number}","pulls_url":"https://api.github.com/repos/cloud-annotations/training/pulls{/number}","milestones_url":"https://api.github.com/repos/cloud-annotations/training/milestones{/number}","notifications_url":"https://api.github.com/repos/cloud-annotations/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloud-annotations/training/labels{/name}","releases_url":"https://api.github.com/repos/cloud-annotations/training/releases{/id}","deployments_url":"https://api.github.com/repos/cloud-annotations/training/deployments","created_at":"2019-01-29T14:52:41Z","updated_at":"2020-01-02T12:25:32Z","pushed_at":"2020-01-03T03:02:00Z","git_url":"git://github.com/cloud-annotations/training.git","ssh_url":"git@github.com:cloud-annotations/training.git","clone_url":"https://github.com/cloud-annotations/training.git","svn_url":"https://github.com/cloud-annotations/training","homepage":"","size":30373,"stargazers_count":2428,"watchers_count":2428,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":464,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":29,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":464,"open_issues":29,"watchers":2428,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloud-annotations/training/pulls/178"},"html":{"href":"https://github.com/cloud-annotations/training/pull/178"},"issue":{"href":"https://api.github.com/repos/cloud-annotations/training/issues/178"},"comments":{"href":"https://api.github.com/repos/cloud-annotations/training/issues/178/comments"},"review_comments":{"href":"https://api.github.com/repos/cloud-annotations/training/pulls/178/comments"},"review_comment":{"href":"https://api.github.com/repos/cloud-annotations/training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloud-annotations/training/pulls/178/commits"},"statuses":{"href":"https://api.github.com/repos/cloud-annotations/training/statuses/2e1ff10be33f1987e661868ed0de7cbbb5905100"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"bourdakos1"}}