{"action":"created","comment":{"url":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/comments/189909496","pull_request_review_id":122179243,"id":189909496,"diff_hunk":"@@ -47,3 +50,21 @@ func DoStop(stop *chan bool) bool {\n \t\treturn false\n \t}\n }\n+\n+// GetUserId returns the numeric ID of a system user\n+func GetUserId(userName string) (int, error) {","path":"common/util.go","position":18,"original_position":18,"commit_id":"8441a3c34cc25d510612fd47b668f44c07bc15ea","original_commit_id":"8441a3c34cc25d510612fd47b668f44c07bc15ea","user":{"login":"golangci","id":35628013,"avatar_url":"https://avatars3.githubusercontent.com/u/35628013?v=4","gravatar_id":"","url":"https://api.github.com/users/golangci","html_url":"https://github.com/golangci","followers_url":"https://api.github.com/users/golangci/followers","following_url":"https://api.github.com/users/golangci/following{/other_user}","gists_url":"https://api.github.com/users/golangci/gists{/gist_id}","starred_url":"https://api.github.com/users/golangci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golangci/subscriptions","organizations_url":"https://api.github.com/users/golangci/orgs","repos_url":"https://api.github.com/users/golangci/repos","events_url":"https://api.github.com/users/golangci/events{/privacy}","received_events_url":"https://api.github.com/users/golangci/received_events","type":"User","site_admin":false},"body":"func GetUserId should be GetUserID","created_at":"2018-05-22T13:55:19Z","updated_at":"2018-05-22T13:55:20Z","html_url":"https://github.com/percona/dcos-mongo-tools/pull/55#discussion_r189909496","pull_request_url":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/55","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/comments/189909496"},"html":{"href":"https://github.com/percona/dcos-mongo-tools/pull/55#discussion_r189909496"},"pull_request":{"href":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/55","id":189198733,"html_url":"https://github.com/percona/dcos-mongo-tools/pull/55","diff_url":"https://github.com/percona/dcos-mongo-tools/pull/55.diff","patch_url":"https://github.com/percona/dcos-mongo-tools/pull/55.patch","issue_url":"https://api.github.com/repos/percona/dcos-mongo-tools/issues/55","number":55,"state":"open","locked":false,"title":"common/command testing v1","user":{"login":"timvaillancourt","id":3202797,"avatar_url":"https://avatars0.githubusercontent.com/u/3202797?v=4","gravatar_id":"","url":"https://api.github.com/users/timvaillancourt","html_url":"https://github.com/timvaillancourt","followers_url":"https://api.github.com/users/timvaillancourt/followers","following_url":"https://api.github.com/users/timvaillancourt/following{/other_user}","gists_url":"https://api.github.com/users/timvaillancourt/gists{/gist_id}","starred_url":"https://api.github.com/users/timvaillancourt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timvaillancourt/subscriptions","organizations_url":"https://api.github.com/users/timvaillancourt/orgs","repos_url":"https://api.github.com/users/timvaillancourt/repos","events_url":"https://api.github.com/users/timvaillancourt/events{/privacy}","received_events_url":"https://api.github.com/users/timvaillancourt/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-19T17:40:32Z","updated_at":"2018-05-22T13:55:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55879d57502573d67e6485a21ee04507fa3b6b39","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/55/commits","review_comments_url":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/55/comments","review_comment_url":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/percona/dcos-mongo-tools/issues/55/comments","statuses_url":"https://api.github.com/repos/percona/dcos-mongo-tools/statuses/8441a3c34cc25d510612fd47b668f44c07bc15ea","head":{"label":"percona:common_command_testing_v1","ref":"common_command_testing_v1","sha":"8441a3c34cc25d510612fd47b668f44c07bc15ea","user":{"login":"percona","id":1683025,"avatar_url":"https://avatars0.githubusercontent.com/u/1683025?v=4","gravatar_id":"","url":"https://api.github.com/users/percona","html_url":"https://github.com/percona","followers_url":"https://api.github.com/users/percona/followers","following_url":"https://api.github.com/users/percona/following{/other_user}","gists_url":"https://api.github.com/users/percona/gists{/gist_id}","starred_url":"https://api.github.com/users/percona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona/subscriptions","organizations_url":"https://api.github.com/users/percona/orgs","repos_url":"https://api.github.com/users/percona/repos","events_url":"https://api.github.com/users/percona/events{/privacy}","received_events_url":"https://api.github.com/users/percona/received_events","type":"Organization","site_admin":false},"repo":{"id":127307606,"name":"dcos-mongo-tools","full_name":"percona/dcos-mongo-tools","owner":{"login":"percona","id":1683025,"avatar_url":"https://avatars0.githubusercontent.com/u/1683025?v=4","gravatar_id":"","url":"https://api.github.com/users/percona","html_url":"https://github.com/percona","followers_url":"https://api.github.com/users/percona/followers","following_url":"https://api.github.com/users/percona/following{/other_user}","gists_url":"https://api.github.com/users/percona/gists{/gist_id}","starred_url":"https://api.github.com/users/percona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona/subscriptions","organizations_url":"https://api.github.com/users/percona/orgs","repos_url":"https://api.github.com/users/percona/repos","events_url":"https://api.github.com/users/percona/events{/privacy}","received_events_url":"https://api.github.com/users/percona/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/percona/dcos-mongo-tools","description":" Go-based tools for the DC/OS 'percona-mongo' service","fork":false,"url":"https://api.github.com/repos/percona/dcos-mongo-tools","forks_url":"https://api.github.com/repos/percona/dcos-mongo-tools/forks","keys_url":"https://api.github.com/repos/percona/dcos-mongo-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/percona/dcos-mongo-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/percona/dcos-mongo-tools/teams","hooks_url":"https://api.github.com/repos/percona/dcos-mongo-tools/hooks","issue_events_url":"https://api.github.com/repos/percona/dcos-mongo-tools/issues/events{/number}","events_url":"https://api.github.com/repos/percona/dcos-mongo-tools/events","assignees_url":"https://api.github.com/repos/percona/dcos-mongo-tools/assignees{/user}","branches_url":"https://api.github.com/repos/percona/dcos-mongo-tools/branches{/branch}","tags_url":"https://api.github.com/repos/percona/dcos-mongo-tools/tags","blobs_url":"https://api.github.com/repos/percona/dcos-mongo-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/percona/dcos-mongo-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/percona/dcos-mongo-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/percona/dcos-mongo-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/percona/dcos-mongo-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/percona/dcos-mongo-tools/languages","stargazers_url":"https://api.github.com/repos/percona/dcos-mongo-tools/stargazers","contributors_url":"https://api.github.com/repos/percona/dcos-mongo-tools/contributors","subscribers_url":"https://api.github.com/repos/percona/dcos-mongo-tools/subscribers","subscription_url":"https://api.github.com/repos/percona/dcos-mongo-tools/subscription","commits_url":"https://api.github.com/repos/percona/dcos-mongo-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/percona/dcos-mongo-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/percona/dcos-mongo-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/percona/dcos-mongo-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/percona/dcos-mongo-tools/contents/{+path}","compare_url":"https://api.github.com/repos/percona/dcos-mongo-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/percona/dcos-mongo-tools/merges","archive_url":"https://api.github.com/repos/percona/dcos-mongo-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/percona/dcos-mongo-tools/downloads","issues_url":"https://api.github.com/repos/percona/dcos-mongo-tools/issues{/number}","pulls_url":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/percona/dcos-mongo-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/percona/dcos-mongo-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/percona/dcos-mongo-tools/labels{/name}","releases_url":"https://api.github.com/repos/percona/dcos-mongo-tools/releases{/id}","deployments_url":"https://api.github.com/repos/percona/dcos-mongo-tools/deployments","created_at":"2018-03-29T15:01:34Z","updated_at":"2018-05-22T13:47:15Z","pushed_at":"2018-05-22T13:55:01Z","git_url":"git://github.com/percona/dcos-mongo-tools.git","ssh_url":"git@github.com:percona/dcos-mongo-tools.git","clone_url":"https://github.com/percona/dcos-mongo-tools.git","svn_url":"https://github.com/percona/dcos-mongo-tools","homepage":"https://docs.mesosphere.com/services/percona-mongo/","size":258,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"percona:master","ref":"master","sha":"887e244bc2e9628baad53e86207afd230f6627b1","user":{"login":"percona","id":1683025,"avatar_url":"https://avatars0.githubusercontent.com/u/1683025?v=4","gravatar_id":"","url":"https://api.github.com/users/percona","html_url":"https://github.com/percona","followers_url":"https://api.github.com/users/percona/followers","following_url":"https://api.github.com/users/percona/following{/other_user}","gists_url":"https://api.github.com/users/percona/gists{/gist_id}","starred_url":"https://api.github.com/users/percona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona/subscriptions","organizations_url":"https://api.github.com/users/percona/orgs","repos_url":"https://api.github.com/users/percona/repos","events_url":"https://api.github.com/users/percona/events{/privacy}","received_events_url":"https://api.github.com/users/percona/received_events","type":"Organization","site_admin":false},"repo":{"id":127307606,"name":"dcos-mongo-tools","full_name":"percona/dcos-mongo-tools","owner":{"login":"percona","id":1683025,"avatar_url":"https://avatars0.githubusercontent.com/u/1683025?v=4","gravatar_id":"","url":"https://api.github.com/users/percona","html_url":"https://github.com/percona","followers_url":"https://api.github.com/users/percona/followers","following_url":"https://api.github.com/users/percona/following{/other_user}","gists_url":"https://api.github.com/users/percona/gists{/gist_id}","starred_url":"https://api.github.com/users/percona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona/subscriptions","organizations_url":"https://api.github.com/users/percona/orgs","repos_url":"https://api.github.com/users/percona/repos","events_url":"https://api.github.com/users/percona/events{/privacy}","received_events_url":"https://api.github.com/users/percona/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/percona/dcos-mongo-tools","description":" Go-based tools for the DC/OS 'percona-mongo' service","fork":false,"url":"https://api.github.com/repos/percona/dcos-mongo-tools","forks_url":"https://api.github.com/repos/percona/dcos-mongo-tools/forks","keys_url":"https://api.github.com/repos/percona/dcos-mongo-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/percona/dcos-mongo-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/percona/dcos-mongo-tools/teams","hooks_url":"https://api.github.com/repos/percona/dcos-mongo-tools/hooks","issue_events_url":"https://api.github.com/repos/percona/dcos-mongo-tools/issues/events{/number}","events_url":"https://api.github.com/repos/percona/dcos-mongo-tools/events","assignees_url":"https://api.github.com/repos/percona/dcos-mongo-tools/assignees{/user}","branches_url":"https://api.github.com/repos/percona/dcos-mongo-tools/branches{/branch}","tags_url":"https://api.github.com/repos/percona/dcos-mongo-tools/tags","blobs_url":"https://api.github.com/repos/percona/dcos-mongo-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/percona/dcos-mongo-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/percona/dcos-mongo-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/percona/dcos-mongo-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/percona/dcos-mongo-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/percona/dcos-mongo-tools/languages","stargazers_url":"https://api.github.com/repos/percona/dcos-mongo-tools/stargazers","contributors_url":"https://api.github.com/repos/percona/dcos-mongo-tools/contributors","subscribers_url":"https://api.github.com/repos/percona/dcos-mongo-tools/subscribers","subscription_url":"https://api.github.com/repos/percona/dcos-mongo-tools/subscription","commits_url":"https://api.github.com/repos/percona/dcos-mongo-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/percona/dcos-mongo-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/percona/dcos-mongo-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/percona/dcos-mongo-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/percona/dcos-mongo-tools/contents/{+path}","compare_url":"https://api.github.com/repos/percona/dcos-mongo-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/percona/dcos-mongo-tools/merges","archive_url":"https://api.github.com/repos/percona/dcos-mongo-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/percona/dcos-mongo-tools/downloads","issues_url":"https://api.github.com/repos/percona/dcos-mongo-tools/issues{/number}","pulls_url":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/percona/dcos-mongo-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/percona/dcos-mongo-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/percona/dcos-mongo-tools/labels{/name}","releases_url":"https://api.github.com/repos/percona/dcos-mongo-tools/releases{/id}","deployments_url":"https://api.github.com/repos/percona/dcos-mongo-tools/deployments","created_at":"2018-03-29T15:01:34Z","updated_at":"2018-05-22T13:47:15Z","pushed_at":"2018-05-22T13:55:01Z","git_url":"git://github.com/percona/dcos-mongo-tools.git","ssh_url":"git@github.com:percona/dcos-mongo-tools.git","clone_url":"https://github.com/percona/dcos-mongo-tools.git","svn_url":"https://github.com/percona/dcos-mongo-tools","homepage":"https://docs.mesosphere.com/services/percona-mongo/","size":258,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/55"},"html":{"href":"https://github.com/percona/dcos-mongo-tools/pull/55"},"issue":{"href":"https://api.github.com/repos/percona/dcos-mongo-tools/issues/55"},"comments":{"href":"https://api.github.com/repos/percona/dcos-mongo-tools/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/percona/dcos-mongo-tools/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/percona/dcos-mongo-tools/statuses/8441a3c34cc25d510612fd47b668f44c07bc15ea"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"golangci"}}