{"action":"created","comment":{"url":"https://api.github.com/repos/twreporter/go-api/pulls/comments/227216497","pull_request_review_id":167204559,"id":227216497,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzIxNjQ5Nw==","diff_hunk":"@@ -35,27 +36,37 @@ type donationSuccessReqBody struct {\n }\n \n func TestSendActivation(t *testing.T) {\n+\tvar authorization string\n \tvar reqBody = make(map[string]interface{})\n \tvar bodyBytes []byte\n \tvar resp *httptest.ResponseRecorder\n \n+\tauthorization, _ = utils.RetrieveMailServiceAccessToken(100)","path":"tests/controller_mail_test.go","position":17,"original_position":17,"commit_id":"440edb5b90287d4343a0495e9aa604cc20d12dbf","original_commit_id":"440edb5b90287d4343a0495e9aa604cc20d12dbf","user":{"login":"babygoat","id":1139696,"node_id":"MDQ6VXNlcjExMzk2OTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1139696?v=4","gravatar_id":"","url":"https://api.github.com/users/babygoat","html_url":"https://github.com/babygoat","followers_url":"https://api.github.com/users/babygoat/followers","following_url":"https://api.github.com/users/babygoat/following{/other_user}","gists_url":"https://api.github.com/users/babygoat/gists{/gist_id}","starred_url":"https://api.github.com/users/babygoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babygoat/subscriptions","organizations_url":"https://api.github.com/users/babygoat/orgs","repos_url":"https://api.github.com/users/babygoat/repos","events_url":"https://api.github.com/users/babygoat/events{/privacy}","received_events_url":"https://api.github.com/users/babygoat/received_events","type":"User","site_admin":false},"body":"Declare a variable like `var expire int = 100` for readability.","created_at":"2018-10-23T04:01:36Z","updated_at":"2018-10-23T04:01:36Z","html_url":"https://github.com/twreporter/go-api/pull/191#discussion_r227216497","pull_request_url":"https://api.github.com/repos/twreporter/go-api/pulls/191","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/comments/227216497"},"html":{"href":"https://github.com/twreporter/go-api/pull/191#discussion_r227216497"},"pull_request":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/191"}}},"pull_request":{"url":"https://api.github.com/repos/twreporter/go-api/pulls/191","id":224879773,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0ODc5Nzcz","html_url":"https://github.com/twreporter/go-api/pull/191","diff_url":"https://github.com/twreporter/go-api/pull/191.diff","patch_url":"https://github.com/twreporter/go-api/pull/191.patch","issue_url":"https://api.github.com/repos/twreporter/go-api/issues/191","number":191,"state":"open","locked":false,"title":"Prevent mail service endpoints from calling by unauthorized request.","user":{"login":"nickhsine","id":3000343,"node_id":"MDQ6VXNlcjMwMDAzNDM=","avatar_url":"https://avatars1.githubusercontent.com/u/3000343?v=4","gravatar_id":"","url":"https://api.github.com/users/nickhsine","html_url":"https://github.com/nickhsine","followers_url":"https://api.github.com/users/nickhsine/followers","following_url":"https://api.github.com/users/nickhsine/following{/other_user}","gists_url":"https://api.github.com/users/nickhsine/gists{/gist_id}","starred_url":"https://api.github.com/users/nickhsine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickhsine/subscriptions","organizations_url":"https://api.github.com/users/nickhsine/orgs","repos_url":"https://api.github.com/users/nickhsine/repos","events_url":"https://api.github.com/users/nickhsine/events{/privacy}","received_events_url":"https://api.github.com/users/nickhsine/received_events","type":"User","site_admin":false},"body":"1. check authorization(JWT) in the mail service middleware\r\n2. mail JWT secret = mail service prefix + app jwt secret\r\n3. add Authorization: Bearer <jwt> on request header to mail service\r\nendpoints\r\n","created_at":"2018-10-23T03:04:42Z","updated_at":"2018-10-23T04:01:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5725ae9efa8e5126514f8370e732c13924b466d9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/twreporter/go-api/pulls/191/commits","review_comments_url":"https://api.github.com/repos/twreporter/go-api/pulls/191/comments","review_comment_url":"https://api.github.com/repos/twreporter/go-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twreporter/go-api/issues/191/comments","statuses_url":"https://api.github.com/repos/twreporter/go-api/statuses/440edb5b90287d4343a0495e9aa604cc20d12dbf","head":{"label":"nickhsine:mail","ref":"mail","sha":"440edb5b90287d4343a0495e9aa604cc20d12dbf","user":{"login":"nickhsine","id":3000343,"node_id":"MDQ6VXNlcjMwMDAzNDM=","avatar_url":"https://avatars1.githubusercontent.com/u/3000343?v=4","gravatar_id":"","url":"https://api.github.com/users/nickhsine","html_url":"https://github.com/nickhsine","followers_url":"https://api.github.com/users/nickhsine/followers","following_url":"https://api.github.com/users/nickhsine/following{/other_user}","gists_url":"https://api.github.com/users/nickhsine/gists{/gist_id}","starred_url":"https://api.github.com/users/nickhsine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickhsine/subscriptions","organizations_url":"https://api.github.com/users/nickhsine/orgs","repos_url":"https://api.github.com/users/nickhsine/repos","events_url":"https://api.github.com/users/nickhsine/events{/privacy}","received_events_url":"https://api.github.com/users/nickhsine/received_events","type":"User","site_admin":false},"repo":{"id":125160691,"node_id":"MDEwOlJlcG9zaXRvcnkxMjUxNjA2OTE=","name":"go-api-1","full_name":"nickhsine/go-api-1","private":false,"owner":{"login":"nickhsine","id":3000343,"node_id":"MDQ6VXNlcjMwMDAzNDM=","avatar_url":"https://avatars1.githubusercontent.com/u/3000343?v=4","gravatar_id":"","url":"https://api.github.com/users/nickhsine","html_url":"https://github.com/nickhsine","followers_url":"https://api.github.com/users/nickhsine/followers","following_url":"https://api.github.com/users/nickhsine/following{/other_user}","gists_url":"https://api.github.com/users/nickhsine/gists{/gist_id}","starred_url":"https://api.github.com/users/nickhsine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickhsine/subscriptions","organizations_url":"https://api.github.com/users/nickhsine/orgs","repos_url":"https://api.github.com/users/nickhsine/repos","events_url":"https://api.github.com/users/nickhsine/events{/privacy}","received_events_url":"https://api.github.com/users/nickhsine/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nickhsine/go-api-1","description":"Golang API","fork":true,"url":"https://api.github.com/repos/nickhsine/go-api-1","forks_url":"https://api.github.com/repos/nickhsine/go-api-1/forks","keys_url":"https://api.github.com/repos/nickhsine/go-api-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickhsine/go-api-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickhsine/go-api-1/teams","hooks_url":"https://api.github.com/repos/nickhsine/go-api-1/hooks","issue_events_url":"https://api.github.com/repos/nickhsine/go-api-1/issues/events{/number}","events_url":"https://api.github.com/repos/nickhsine/go-api-1/events","assignees_url":"https://api.github.com/repos/nickhsine/go-api-1/assignees{/user}","branches_url":"https://api.github.com/repos/nickhsine/go-api-1/branches{/branch}","tags_url":"https://api.github.com/repos/nickhsine/go-api-1/tags","blobs_url":"https://api.github.com/repos/nickhsine/go-api-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickhsine/go-api-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickhsine/go-api-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickhsine/go-api-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickhsine/go-api-1/statuses/{sha}","languages_url":"https://api.github.com/repos/nickhsine/go-api-1/languages","stargazers_url":"https://api.github.com/repos/nickhsine/go-api-1/stargazers","contributors_url":"https://api.github.com/repos/nickhsine/go-api-1/contributors","subscribers_url":"https://api.github.com/repos/nickhsine/go-api-1/subscribers","subscription_url":"https://api.github.com/repos/nickhsine/go-api-1/subscription","commits_url":"https://api.github.com/repos/nickhsine/go-api-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickhsine/go-api-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickhsine/go-api-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickhsine/go-api-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickhsine/go-api-1/contents/{+path}","compare_url":"https://api.github.com/repos/nickhsine/go-api-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickhsine/go-api-1/merges","archive_url":"https://api.github.com/repos/nickhsine/go-api-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickhsine/go-api-1/downloads","issues_url":"https://api.github.com/repos/nickhsine/go-api-1/issues{/number}","pulls_url":"https://api.github.com/repos/nickhsine/go-api-1/pulls{/number}","milestones_url":"https://api.github.com/repos/nickhsine/go-api-1/milestones{/number}","notifications_url":"https://api.github.com/repos/nickhsine/go-api-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickhsine/go-api-1/labels{/name}","releases_url":"https://api.github.com/repos/nickhsine/go-api-1/releases{/id}","deployments_url":"https://api.github.com/repos/nickhsine/go-api-1/deployments","created_at":"2018-03-14T05:38:13Z","updated_at":"2018-10-23T03:34:43Z","pushed_at":"2018-10-23T03:34:41Z","git_url":"git://github.com/nickhsine/go-api-1.git","ssh_url":"git@github.com:nickhsine/go-api-1.git","clone_url":"https://github.com/nickhsine/go-api-1.git","svn_url":"https://github.com/nickhsine/go-api-1","homepage":null,"size":635,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"twreporter:master","ref":"master","sha":"f2c9a58ef640b13bc5e7d381a59eaab2bb2382d8","user":{"login":"twreporter","id":13784512,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzg0NTEy","avatar_url":"https://avatars3.githubusercontent.com/u/13784512?v=4","gravatar_id":"","url":"https://api.github.com/users/twreporter","html_url":"https://github.com/twreporter","followers_url":"https://api.github.com/users/twreporter/followers","following_url":"https://api.github.com/users/twreporter/following{/other_user}","gists_url":"https://api.github.com/users/twreporter/gists{/gist_id}","starred_url":"https://api.github.com/users/twreporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twreporter/subscriptions","organizations_url":"https://api.github.com/users/twreporter/orgs","repos_url":"https://api.github.com/users/twreporter/repos","events_url":"https://api.github.com/users/twreporter/events{/privacy}","received_events_url":"https://api.github.com/users/twreporter/received_events","type":"Organization","site_admin":false},"repo":{"id":79105381,"node_id":"MDEwOlJlcG9zaXRvcnk3OTEwNTM4MQ==","name":"go-api","full_name":"twreporter/go-api","private":false,"owner":{"login":"twreporter","id":13784512,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzg0NTEy","avatar_url":"https://avatars3.githubusercontent.com/u/13784512?v=4","gravatar_id":"","url":"https://api.github.com/users/twreporter","html_url":"https://github.com/twreporter","followers_url":"https://api.github.com/users/twreporter/followers","following_url":"https://api.github.com/users/twreporter/following{/other_user}","gists_url":"https://api.github.com/users/twreporter/gists{/gist_id}","starred_url":"https://api.github.com/users/twreporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twreporter/subscriptions","organizations_url":"https://api.github.com/users/twreporter/orgs","repos_url":"https://api.github.com/users/twreporter/repos","events_url":"https://api.github.com/users/twreporter/events{/privacy}","received_events_url":"https://api.github.com/users/twreporter/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/twreporter/go-api","description":"Golang API","fork":false,"url":"https://api.github.com/repos/twreporter/go-api","forks_url":"https://api.github.com/repos/twreporter/go-api/forks","keys_url":"https://api.github.com/repos/twreporter/go-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twreporter/go-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twreporter/go-api/teams","hooks_url":"https://api.github.com/repos/twreporter/go-api/hooks","issue_events_url":"https://api.github.com/repos/twreporter/go-api/issues/events{/number}","events_url":"https://api.github.com/repos/twreporter/go-api/events","assignees_url":"https://api.github.com/repos/twreporter/go-api/assignees{/user}","branches_url":"https://api.github.com/repos/twreporter/go-api/branches{/branch}","tags_url":"https://api.github.com/repos/twreporter/go-api/tags","blobs_url":"https://api.github.com/repos/twreporter/go-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twreporter/go-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twreporter/go-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/twreporter/go-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twreporter/go-api/statuses/{sha}","languages_url":"https://api.github.com/repos/twreporter/go-api/languages","stargazers_url":"https://api.github.com/repos/twreporter/go-api/stargazers","contributors_url":"https://api.github.com/repos/twreporter/go-api/contributors","subscribers_url":"https://api.github.com/repos/twreporter/go-api/subscribers","subscription_url":"https://api.github.com/repos/twreporter/go-api/subscription","commits_url":"https://api.github.com/repos/twreporter/go-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/twreporter/go-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/twreporter/go-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/twreporter/go-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/twreporter/go-api/contents/{+path}","compare_url":"https://api.github.com/repos/twreporter/go-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twreporter/go-api/merges","archive_url":"https://api.github.com/repos/twreporter/go-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twreporter/go-api/downloads","issues_url":"https://api.github.com/repos/twreporter/go-api/issues{/number}","pulls_url":"https://api.github.com/repos/twreporter/go-api/pulls{/number}","milestones_url":"https://api.github.com/repos/twreporter/go-api/milestones{/number}","notifications_url":"https://api.github.com/repos/twreporter/go-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twreporter/go-api/labels{/name}","releases_url":"https://api.github.com/repos/twreporter/go-api/releases{/id}","deployments_url":"https://api.github.com/repos/twreporter/go-api/deployments","created_at":"2017-01-16T09:59:22Z","updated_at":"2018-10-23T02:51:43Z","pushed_at":"2018-10-23T03:43:45Z","git_url":"git://github.com/twreporter/go-api.git","ssh_url":"git@github.com:twreporter/go-api.git","clone_url":"https://github.com/twreporter/go-api.git","svn_url":"https://github.com/twreporter/go-api","homepage":null,"size":617,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/191"},"html":{"href":"https://github.com/twreporter/go-api/pull/191"},"issue":{"href":"https://api.github.com/repos/twreporter/go-api/issues/191"},"comments":{"href":"https://api.github.com/repos/twreporter/go-api/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twreporter/go-api/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/twreporter/go-api/statuses/440edb5b90287d4343a0495e9aa604cc20d12dbf"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"babygoat"}}