{"action":"created","comment":{"url":"https://api.github.com/repos/hacksoc-manchester/www/pulls/comments/86709911","pull_request_review_id":7353438,"id":86709911,"diff_hunk":"@@ -12,15 +12,17 @@ import (\n )\n \n var block cipher.Block\n+var symmetricKey string\n \n func init() {\n-\tif os.Getenv(\"SYMMETRIC_KEY\") == \"\" {\n+\tsymmetricKey = os.Getenv(\"SYMMETRIC_KEY\")","path":"helpers/crypto/crypto.go","position":8,"original_position":8,"commit_id":"bfc2bf0da4cc99c0910bb391f2a0707e67ef05d7","original_commit_id":"bfc2bf0da4cc99c0910bb391f2a0707e67ef05d7","user":{"login":"andreimuntean","id":5308229,"avatar_url":"https://avatars.githubusercontent.com/u/5308229?v=3","gravatar_id":"","url":"https://api.github.com/users/andreimuntean","html_url":"https://github.com/andreimuntean","followers_url":"https://api.github.com/users/andreimuntean/followers","following_url":"https://api.github.com/users/andreimuntean/following{/other_user}","gists_url":"https://api.github.com/users/andreimuntean/gists{/gist_id}","starred_url":"https://api.github.com/users/andreimuntean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreimuntean/subscriptions","organizations_url":"https://api.github.com/users/andreimuntean/orgs","repos_url":"https://api.github.com/users/andreimuntean/repos","events_url":"https://api.github.com/users/andreimuntean/events{/privacy}","received_events_url":"https://api.github.com/users/andreimuntean/received_events","type":"User","site_admin":false},"body":"I don't think this variable is helpful. We can just call `os.Getenv(\"SYMMETRIC_KEY\")` twice.","created_at":"2016-11-07T03:40:24Z","updated_at":"2016-11-07T03:51:44Z","html_url":"https://github.com/hacksoc-manchester/www/pull/30#discussion_r86709911","pull_request_url":"https://api.github.com/repos/hacksoc-manchester/www/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/hacksoc-manchester/www/pulls/comments/86709911"},"html":{"href":"https://github.com/hacksoc-manchester/www/pull/30#discussion_r86709911"},"pull_request":{"href":"https://api.github.com/repos/hacksoc-manchester/www/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/hacksoc-manchester/www/pulls/30","id":92514041,"html_url":"https://github.com/hacksoc-manchester/www/pull/30","diff_url":"https://github.com/hacksoc-manchester/www/pull/30.diff","patch_url":"https://github.com/hacksoc-manchester/www/pull/30.patch","issue_url":"https://api.github.com/repos/hacksoc-manchester/www/issues/30","number":30,"state":"open","locked":false,"title":"Fix #14 - Tests for helpers/crypto","user":{"login":"MisterDoom","id":8499741,"avatar_url":"https://avatars.githubusercontent.com/u/8499741?v=3","gravatar_id":"","url":"https://api.github.com/users/MisterDoom","html_url":"https://github.com/MisterDoom","followers_url":"https://api.github.com/users/MisterDoom/followers","following_url":"https://api.github.com/users/MisterDoom/following{/other_user}","gists_url":"https://api.github.com/users/MisterDoom/gists{/gist_id}","starred_url":"https://api.github.com/users/MisterDoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisterDoom/subscriptions","organizations_url":"https://api.github.com/users/MisterDoom/orgs","repos_url":"https://api.github.com/users/MisterDoom/repos","events_url":"https://api.github.com/users/MisterDoom/events{/privacy}","received_events_url":"https://api.github.com/users/MisterDoom/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-07T02:05:19Z","updated_at":"2016-11-07T03:51:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4dddc1de6e846fa4b04ef59f3c59d94259583b4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hacksoc-manchester/www/pulls/30/commits","review_comments_url":"https://api.github.com/repos/hacksoc-manchester/www/pulls/30/comments","review_comment_url":"https://api.github.com/repos/hacksoc-manchester/www/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hacksoc-manchester/www/issues/30/comments","statuses_url":"https://api.github.com/repos/hacksoc-manchester/www/statuses/bfc2bf0da4cc99c0910bb391f2a0707e67ef05d7","head":{"label":"MisterDoom:master","ref":"master","sha":"bfc2bf0da4cc99c0910bb391f2a0707e67ef05d7","user":{"login":"MisterDoom","id":8499741,"avatar_url":"https://avatars.githubusercontent.com/u/8499741?v=3","gravatar_id":"","url":"https://api.github.com/users/MisterDoom","html_url":"https://github.com/MisterDoom","followers_url":"https://api.github.com/users/MisterDoom/followers","following_url":"https://api.github.com/users/MisterDoom/following{/other_user}","gists_url":"https://api.github.com/users/MisterDoom/gists{/gist_id}","starred_url":"https://api.github.com/users/MisterDoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisterDoom/subscriptions","organizations_url":"https://api.github.com/users/MisterDoom/orgs","repos_url":"https://api.github.com/users/MisterDoom/repos","events_url":"https://api.github.com/users/MisterDoom/events{/privacy}","received_events_url":"https://api.github.com/users/MisterDoom/received_events","type":"User","site_admin":false},"repo":{"id":70362272,"name":"www","full_name":"MisterDoom/www","owner":{"login":"MisterDoom","id":8499741,"avatar_url":"https://avatars.githubusercontent.com/u/8499741?v=3","gravatar_id":"","url":"https://api.github.com/users/MisterDoom","html_url":"https://github.com/MisterDoom","followers_url":"https://api.github.com/users/MisterDoom/followers","following_url":"https://api.github.com/users/MisterDoom/following{/other_user}","gists_url":"https://api.github.com/users/MisterDoom/gists{/gist_id}","starred_url":"https://api.github.com/users/MisterDoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisterDoom/subscriptions","organizations_url":"https://api.github.com/users/MisterDoom/orgs","repos_url":"https://api.github.com/users/MisterDoom/repos","events_url":"https://api.github.com/users/MisterDoom/events{/privacy}","received_events_url":"https://api.github.com/users/MisterDoom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MisterDoom/www","description":null,"fork":true,"url":"https://api.github.com/repos/MisterDoom/www","forks_url":"https://api.github.com/repos/MisterDoom/www/forks","keys_url":"https://api.github.com/repos/MisterDoom/www/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MisterDoom/www/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MisterDoom/www/teams","hooks_url":"https://api.github.com/repos/MisterDoom/www/hooks","issue_events_url":"https://api.github.com/repos/MisterDoom/www/issues/events{/number}","events_url":"https://api.github.com/repos/MisterDoom/www/events","assignees_url":"https://api.github.com/repos/MisterDoom/www/assignees{/user}","branches_url":"https://api.github.com/repos/MisterDoom/www/branches{/branch}","tags_url":"https://api.github.com/repos/MisterDoom/www/tags","blobs_url":"https://api.github.com/repos/MisterDoom/www/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MisterDoom/www/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MisterDoom/www/git/refs{/sha}","trees_url":"https://api.github.com/repos/MisterDoom/www/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MisterDoom/www/statuses/{sha}","languages_url":"https://api.github.com/repos/MisterDoom/www/languages","stargazers_url":"https://api.github.com/repos/MisterDoom/www/stargazers","contributors_url":"https://api.github.com/repos/MisterDoom/www/contributors","subscribers_url":"https://api.github.com/repos/MisterDoom/www/subscribers","subscription_url":"https://api.github.com/repos/MisterDoom/www/subscription","commits_url":"https://api.github.com/repos/MisterDoom/www/commits{/sha}","git_commits_url":"https://api.github.com/repos/MisterDoom/www/git/commits{/sha}","comments_url":"https://api.github.com/repos/MisterDoom/www/comments{/number}","issue_comment_url":"https://api.github.com/repos/MisterDoom/www/issues/comments{/number}","contents_url":"https://api.github.com/repos/MisterDoom/www/contents/{+path}","compare_url":"https://api.github.com/repos/MisterDoom/www/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MisterDoom/www/merges","archive_url":"https://api.github.com/repos/MisterDoom/www/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MisterDoom/www/downloads","issues_url":"https://api.github.com/repos/MisterDoom/www/issues{/number}","pulls_url":"https://api.github.com/repos/MisterDoom/www/pulls{/number}","milestones_url":"https://api.github.com/repos/MisterDoom/www/milestones{/number}","notifications_url":"https://api.github.com/repos/MisterDoom/www/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MisterDoom/www/labels{/name}","releases_url":"https://api.github.com/repos/MisterDoom/www/releases{/id}","deployments_url":"https://api.github.com/repos/MisterDoom/www/deployments","created_at":"2016-10-08T23:08:24Z","updated_at":"2016-10-08T23:08:25Z","pushed_at":"2016-11-07T02:02:03Z","git_url":"git://github.com/MisterDoom/www.git","ssh_url":"git@github.com:MisterDoom/www.git","clone_url":"https://github.com/MisterDoom/www.git","svn_url":"https://github.com/MisterDoom/www","homepage":"http://hacksoc.com/","size":942,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hacksoc-manchester:master","ref":"master","sha":"7313b15149c04d6313127b2678d9f6256f71eabb","user":{"login":"hacksoc-manchester","id":14075993,"avatar_url":"https://avatars.githubusercontent.com/u/14075993?v=3","gravatar_id":"","url":"https://api.github.com/users/hacksoc-manchester","html_url":"https://github.com/hacksoc-manchester","followers_url":"https://api.github.com/users/hacksoc-manchester/followers","following_url":"https://api.github.com/users/hacksoc-manchester/following{/other_user}","gists_url":"https://api.github.com/users/hacksoc-manchester/gists{/gist_id}","starred_url":"https://api.github.com/users/hacksoc-manchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hacksoc-manchester/subscriptions","organizations_url":"https://api.github.com/users/hacksoc-manchester/orgs","repos_url":"https://api.github.com/users/hacksoc-manchester/repos","events_url":"https://api.github.com/users/hacksoc-manchester/events{/privacy}","received_events_url":"https://api.github.com/users/hacksoc-manchester/received_events","type":"Organization","site_admin":false},"repo":{"id":57144979,"name":"www","full_name":"hacksoc-manchester/www","owner":{"login":"hacksoc-manchester","id":14075993,"avatar_url":"https://avatars.githubusercontent.com/u/14075993?v=3","gravatar_id":"","url":"https://api.github.com/users/hacksoc-manchester","html_url":"https://github.com/hacksoc-manchester","followers_url":"https://api.github.com/users/hacksoc-manchester/followers","following_url":"https://api.github.com/users/hacksoc-manchester/following{/other_user}","gists_url":"https://api.github.com/users/hacksoc-manchester/gists{/gist_id}","starred_url":"https://api.github.com/users/hacksoc-manchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hacksoc-manchester/subscriptions","organizations_url":"https://api.github.com/users/hacksoc-manchester/orgs","repos_url":"https://api.github.com/users/hacksoc-manchester/repos","events_url":"https://api.github.com/users/hacksoc-manchester/events{/privacy}","received_events_url":"https://api.github.com/users/hacksoc-manchester/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hacksoc-manchester/www","description":null,"fork":false,"url":"https://api.github.com/repos/hacksoc-manchester/www","forks_url":"https://api.github.com/repos/hacksoc-manchester/www/forks","keys_url":"https://api.github.com/repos/hacksoc-manchester/www/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hacksoc-manchester/www/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hacksoc-manchester/www/teams","hooks_url":"https://api.github.com/repos/hacksoc-manchester/www/hooks","issue_events_url":"https://api.github.com/repos/hacksoc-manchester/www/issues/events{/number}","events_url":"https://api.github.com/repos/hacksoc-manchester/www/events","assignees_url":"https://api.github.com/repos/hacksoc-manchester/www/assignees{/user}","branches_url":"https://api.github.com/repos/hacksoc-manchester/www/branches{/branch}","tags_url":"https://api.github.com/repos/hacksoc-manchester/www/tags","blobs_url":"https://api.github.com/repos/hacksoc-manchester/www/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hacksoc-manchester/www/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hacksoc-manchester/www/git/refs{/sha}","trees_url":"https://api.github.com/repos/hacksoc-manchester/www/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hacksoc-manchester/www/statuses/{sha}","languages_url":"https://api.github.com/repos/hacksoc-manchester/www/languages","stargazers_url":"https://api.github.com/repos/hacksoc-manchester/www/stargazers","contributors_url":"https://api.github.com/repos/hacksoc-manchester/www/contributors","subscribers_url":"https://api.github.com/repos/hacksoc-manchester/www/subscribers","subscription_url":"https://api.github.com/repos/hacksoc-manchester/www/subscription","commits_url":"https://api.github.com/repos/hacksoc-manchester/www/commits{/sha}","git_commits_url":"https://api.github.com/repos/hacksoc-manchester/www/git/commits{/sha}","comments_url":"https://api.github.com/repos/hacksoc-manchester/www/comments{/number}","issue_comment_url":"https://api.github.com/repos/hacksoc-manchester/www/issues/comments{/number}","contents_url":"https://api.github.com/repos/hacksoc-manchester/www/contents/{+path}","compare_url":"https://api.github.com/repos/hacksoc-manchester/www/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hacksoc-manchester/www/merges","archive_url":"https://api.github.com/repos/hacksoc-manchester/www/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hacksoc-manchester/www/downloads","issues_url":"https://api.github.com/repos/hacksoc-manchester/www/issues{/number}","pulls_url":"https://api.github.com/repos/hacksoc-manchester/www/pulls{/number}","milestones_url":"https://api.github.com/repos/hacksoc-manchester/www/milestones{/number}","notifications_url":"https://api.github.com/repos/hacksoc-manchester/www/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hacksoc-manchester/www/labels{/name}","releases_url":"https://api.github.com/repos/hacksoc-manchester/www/releases{/id}","deployments_url":"https://api.github.com/repos/hacksoc-manchester/www/deployments","created_at":"2016-04-26T16:37:50Z","updated_at":"2016-10-25T00:18:30Z","pushed_at":"2016-11-07T02:05:19Z","git_url":"git://github.com/hacksoc-manchester/www.git","ssh_url":"git@github.com:hacksoc-manchester/www.git","clone_url":"https://github.com/hacksoc-manchester/www.git","svn_url":"https://github.com/hacksoc-manchester/www","homepage":"http://hacksoc.com/","size":950,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":10,"forks":2,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hacksoc-manchester/www/pulls/30"},"html":{"href":"https://github.com/hacksoc-manchester/www/pull/30"},"issue":{"href":"https://api.github.com/repos/hacksoc-manchester/www/issues/30"},"comments":{"href":"https://api.github.com/repos/hacksoc-manchester/www/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/hacksoc-manchester/www/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/hacksoc-manchester/www/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hacksoc-manchester/www/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/hacksoc-manchester/www/statuses/bfc2bf0da4cc99c0910bb391f2a0707e67ef05d7"}}}}
{"actor":{"display_login":"andreimuntean"}}