{"action":"created","comment":{"url":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/comments/232524111","pull_request_review_id":173738251,"id":232524111,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjUyNDExMQ==","diff_hunk":"@@ -130,3 +130,18 @@ func (api *API) validateAdminRequest(username string) error {\n \t}\n \treturn nil\n }\n+\n+func (api *API) extractPostForms(formNames []string, c *gin.Context) map[string]string {\n+\tvar (\n+\t\tforms = make(map[string]string)\n+\t)","path":"api/utils.go","position":8,"original_position":8,"commit_id":"dae956c063f0f4e5814649578682b0bdcb38886c","original_commit_id":"dae956c063f0f4e5814649578682b0bdcb38886c","user":{"login":"bobheadxi","id":23356519,"node_id":"MDQ6VXNlcjIzMzU2NTE5","avatar_url":"https://avatars2.githubusercontent.com/u/23356519?v=4","gravatar_id":"","url":"https://api.github.com/users/bobheadxi","html_url":"https://github.com/bobheadxi","followers_url":"https://api.github.com/users/bobheadxi/followers","following_url":"https://api.github.com/users/bobheadxi/following{/other_user}","gists_url":"https://api.github.com/users/bobheadxi/gists{/gist_id}","starred_url":"https://api.github.com/users/bobheadxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobheadxi/subscriptions","organizations_url":"https://api.github.com/users/bobheadxi/orgs","repos_url":"https://api.github.com/users/bobheadxi/repos","events_url":"https://api.github.com/users/bobheadxi/events{/privacy}","received_events_url":"https://api.github.com/users/bobheadxi/received_events","type":"User","site_admin":false},"body":"this can just be a one-line `forms := make(map[string]string)` 😋 ","created_at":"2018-11-12T02:57:14Z","updated_at":"2018-11-12T02:57:30Z","html_url":"https://github.com/RTradeLtd/Temporal/pull/246#discussion_r232524111","pull_request_url":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/246","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/comments/232524111"},"html":{"href":"https://github.com/RTradeLtd/Temporal/pull/246#discussion_r232524111"},"pull_request":{"href":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/246"}}},"pull_request":{"url":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/246","id":230003872,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMDAzODcy","html_url":"https://github.com/RTradeLtd/Temporal/pull/246","diff_url":"https://github.com/RTradeLtd/Temporal/pull/246.diff","patch_url":"https://github.com/RTradeLtd/Temporal/pull/246.patch","issue_url":"https://api.github.com/repos/RTradeLtd/Temporal/issues/246","number":246,"state":"open","locked":false,"title":"Clean Post Form Extraction","user":{"login":"postables","id":17089485,"node_id":"MDQ6VXNlcjE3MDg5NDg1","avatar_url":"https://avatars1.githubusercontent.com/u/17089485?v=4","gravatar_id":"","url":"https://api.github.com/users/postables","html_url":"https://github.com/postables","followers_url":"https://api.github.com/users/postables/followers","following_url":"https://api.github.com/users/postables/following{/other_user}","gists_url":"https://api.github.com/users/postables/gists{/gist_id}","starred_url":"https://api.github.com/users/postables/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postables/subscriptions","organizations_url":"https://api.github.com/users/postables/orgs","repos_url":"https://api.github.com/users/postables/repos","events_url":"https://api.github.com/users/postables/events{/privacy}","received_events_url":"https://api.github.com/users/postables/received_events","type":"User","site_admin":false},"body":"## :construction_worker: Purpose\r\nclean up post form extraction and validation\r\n\r\n\r\n## :rocket: Changes\r\nHelper function that takes in slice of post forms needed, returns a mapping of `name -> value`\r\n\r\n\r\n## :warning: Breaking Changes\r\nNone\r\n\r\n","created_at":"2018-11-12T02:53:33Z","updated_at":"2018-11-12T02:57:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efcc29e3f75b5f404b31787088d9b4c4b36f24c4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1043514196,"node_id":"MDU6TGFiZWwxMDQzNTE0MTk2","url":"https://api.github.com/repos/RTradeLtd/Temporal/labels/status:wip","name":"status:wip","color":"bf4511","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/246/commits","review_comments_url":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/246/comments","review_comment_url":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RTradeLtd/Temporal/issues/246/comments","statuses_url":"https://api.github.com/repos/RTradeLtd/Temporal/statuses/dae956c063f0f4e5814649578682b0bdcb38886c","head":{"label":"RTradeLtd:refactor/post-form-extract","ref":"refactor/post-form-extract","sha":"dae956c063f0f4e5814649578682b0bdcb38886c","user":{"login":"RTradeLtd","id":34983363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0OTgzMzYz","avatar_url":"https://avatars3.githubusercontent.com/u/34983363?v=4","gravatar_id":"","url":"https://api.github.com/users/RTradeLtd","html_url":"https://github.com/RTradeLtd","followers_url":"https://api.github.com/users/RTradeLtd/followers","following_url":"https://api.github.com/users/RTradeLtd/following{/other_user}","gists_url":"https://api.github.com/users/RTradeLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/RTradeLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RTradeLtd/subscriptions","organizations_url":"https://api.github.com/users/RTradeLtd/orgs","repos_url":"https://api.github.com/users/RTradeLtd/repos","events_url":"https://api.github.com/users/RTradeLtd/events{/privacy}","received_events_url":"https://api.github.com/users/RTradeLtd/received_events","type":"Organization","site_admin":false},"repo":{"id":132073198,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwNzMxOTg=","name":"Temporal","full_name":"RTradeLtd/Temporal","private":false,"owner":{"login":"RTradeLtd","id":34983363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0OTgzMzYz","avatar_url":"https://avatars3.githubusercontent.com/u/34983363?v=4","gravatar_id":"","url":"https://api.github.com/users/RTradeLtd","html_url":"https://github.com/RTradeLtd","followers_url":"https://api.github.com/users/RTradeLtd/followers","following_url":"https://api.github.com/users/RTradeLtd/following{/other_user}","gists_url":"https://api.github.com/users/RTradeLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/RTradeLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RTradeLtd/subscriptions","organizations_url":"https://api.github.com/users/RTradeLtd/orgs","repos_url":"https://api.github.com/users/RTradeLtd/repos","events_url":"https://api.github.com/users/RTradeLtd/events{/privacy}","received_events_url":"https://api.github.com/users/RTradeLtd/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/RTradeLtd/Temporal","description":"☄️ Temporal is an easy-to-use interface into distributed and decentralized storage technologies for personal and enterprise use cases. License is currently under review.","fork":false,"url":"https://api.github.com/repos/RTradeLtd/Temporal","forks_url":"https://api.github.com/repos/RTradeLtd/Temporal/forks","keys_url":"https://api.github.com/repos/RTradeLtd/Temporal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RTradeLtd/Temporal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RTradeLtd/Temporal/teams","hooks_url":"https://api.github.com/repos/RTradeLtd/Temporal/hooks","issue_events_url":"https://api.github.com/repos/RTradeLtd/Temporal/issues/events{/number}","events_url":"https://api.github.com/repos/RTradeLtd/Temporal/events","assignees_url":"https://api.github.com/repos/RTradeLtd/Temporal/assignees{/user}","branches_url":"https://api.github.com/repos/RTradeLtd/Temporal/branches{/branch}","tags_url":"https://api.github.com/repos/RTradeLtd/Temporal/tags","blobs_url":"https://api.github.com/repos/RTradeLtd/Temporal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RTradeLtd/Temporal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RTradeLtd/Temporal/git/refs{/sha}","trees_url":"https://api.github.com/repos/RTradeLtd/Temporal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RTradeLtd/Temporal/statuses/{sha}","languages_url":"https://api.github.com/repos/RTradeLtd/Temporal/languages","stargazers_url":"https://api.github.com/repos/RTradeLtd/Temporal/stargazers","contributors_url":"https://api.github.com/repos/RTradeLtd/Temporal/contributors","subscribers_url":"https://api.github.com/repos/RTradeLtd/Temporal/subscribers","subscription_url":"https://api.github.com/repos/RTradeLtd/Temporal/subscription","commits_url":"https://api.github.com/repos/RTradeLtd/Temporal/commits{/sha}","git_commits_url":"https://api.github.com/repos/RTradeLtd/Temporal/git/commits{/sha}","comments_url":"https://api.github.com/repos/RTradeLtd/Temporal/comments{/number}","issue_comment_url":"https://api.github.com/repos/RTradeLtd/Temporal/issues/comments{/number}","contents_url":"https://api.github.com/repos/RTradeLtd/Temporal/contents/{+path}","compare_url":"https://api.github.com/repos/RTradeLtd/Temporal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RTradeLtd/Temporal/merges","archive_url":"https://api.github.com/repos/RTradeLtd/Temporal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RTradeLtd/Temporal/downloads","issues_url":"https://api.github.com/repos/RTradeLtd/Temporal/issues{/number}","pulls_url":"https://api.github.com/repos/RTradeLtd/Temporal/pulls{/number}","milestones_url":"https://api.github.com/repos/RTradeLtd/Temporal/milestones{/number}","notifications_url":"https://api.github.com/repos/RTradeLtd/Temporal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RTradeLtd/Temporal/labels{/name}","releases_url":"https://api.github.com/repos/RTradeLtd/Temporal/releases{/id}","deployments_url":"https://api.github.com/repos/RTradeLtd/Temporal/deployments","created_at":"2018-05-04T02:10:10Z","updated_at":"2018-11-11T20:22:07Z","pushed_at":"2018-11-12T02:53:33Z","git_url":"git://github.com/RTradeLtd/Temporal.git","ssh_url":"git@github.com:RTradeLtd/Temporal.git","clone_url":"https://github.com/RTradeLtd/Temporal.git","svn_url":"https://github.com/RTradeLtd/Temporal","homepage":"https://rtradetechnologies.atlassian.net/wiki/spaces/TEM/overview","size":2136740,"stargazers_count":54,"watchers_count":54,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"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":9,"open_issues":4,"watchers":54,"default_branch":"V2"}},"base":{"label":"RTradeLtd:V2","ref":"V2","sha":"d666b40317e688142377966d24704bda7fd2f6ae","user":{"login":"RTradeLtd","id":34983363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0OTgzMzYz","avatar_url":"https://avatars3.githubusercontent.com/u/34983363?v=4","gravatar_id":"","url":"https://api.github.com/users/RTradeLtd","html_url":"https://github.com/RTradeLtd","followers_url":"https://api.github.com/users/RTradeLtd/followers","following_url":"https://api.github.com/users/RTradeLtd/following{/other_user}","gists_url":"https://api.github.com/users/RTradeLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/RTradeLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RTradeLtd/subscriptions","organizations_url":"https://api.github.com/users/RTradeLtd/orgs","repos_url":"https://api.github.com/users/RTradeLtd/repos","events_url":"https://api.github.com/users/RTradeLtd/events{/privacy}","received_events_url":"https://api.github.com/users/RTradeLtd/received_events","type":"Organization","site_admin":false},"repo":{"id":132073198,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwNzMxOTg=","name":"Temporal","full_name":"RTradeLtd/Temporal","private":false,"owner":{"login":"RTradeLtd","id":34983363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0OTgzMzYz","avatar_url":"https://avatars3.githubusercontent.com/u/34983363?v=4","gravatar_id":"","url":"https://api.github.com/users/RTradeLtd","html_url":"https://github.com/RTradeLtd","followers_url":"https://api.github.com/users/RTradeLtd/followers","following_url":"https://api.github.com/users/RTradeLtd/following{/other_user}","gists_url":"https://api.github.com/users/RTradeLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/RTradeLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RTradeLtd/subscriptions","organizations_url":"https://api.github.com/users/RTradeLtd/orgs","repos_url":"https://api.github.com/users/RTradeLtd/repos","events_url":"https://api.github.com/users/RTradeLtd/events{/privacy}","received_events_url":"https://api.github.com/users/RTradeLtd/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/RTradeLtd/Temporal","description":"☄️ Temporal is an easy-to-use interface into distributed and decentralized storage technologies for personal and enterprise use cases. License is currently under review.","fork":false,"url":"https://api.github.com/repos/RTradeLtd/Temporal","forks_url":"https://api.github.com/repos/RTradeLtd/Temporal/forks","keys_url":"https://api.github.com/repos/RTradeLtd/Temporal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RTradeLtd/Temporal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RTradeLtd/Temporal/teams","hooks_url":"https://api.github.com/repos/RTradeLtd/Temporal/hooks","issue_events_url":"https://api.github.com/repos/RTradeLtd/Temporal/issues/events{/number}","events_url":"https://api.github.com/repos/RTradeLtd/Temporal/events","assignees_url":"https://api.github.com/repos/RTradeLtd/Temporal/assignees{/user}","branches_url":"https://api.github.com/repos/RTradeLtd/Temporal/branches{/branch}","tags_url":"https://api.github.com/repos/RTradeLtd/Temporal/tags","blobs_url":"https://api.github.com/repos/RTradeLtd/Temporal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RTradeLtd/Temporal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RTradeLtd/Temporal/git/refs{/sha}","trees_url":"https://api.github.com/repos/RTradeLtd/Temporal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RTradeLtd/Temporal/statuses/{sha}","languages_url":"https://api.github.com/repos/RTradeLtd/Temporal/languages","stargazers_url":"https://api.github.com/repos/RTradeLtd/Temporal/stargazers","contributors_url":"https://api.github.com/repos/RTradeLtd/Temporal/contributors","subscribers_url":"https://api.github.com/repos/RTradeLtd/Temporal/subscribers","subscription_url":"https://api.github.com/repos/RTradeLtd/Temporal/subscription","commits_url":"https://api.github.com/repos/RTradeLtd/Temporal/commits{/sha}","git_commits_url":"https://api.github.com/repos/RTradeLtd/Temporal/git/commits{/sha}","comments_url":"https://api.github.com/repos/RTradeLtd/Temporal/comments{/number}","issue_comment_url":"https://api.github.com/repos/RTradeLtd/Temporal/issues/comments{/number}","contents_url":"https://api.github.com/repos/RTradeLtd/Temporal/contents/{+path}","compare_url":"https://api.github.com/repos/RTradeLtd/Temporal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RTradeLtd/Temporal/merges","archive_url":"https://api.github.com/repos/RTradeLtd/Temporal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RTradeLtd/Temporal/downloads","issues_url":"https://api.github.com/repos/RTradeLtd/Temporal/issues{/number}","pulls_url":"https://api.github.com/repos/RTradeLtd/Temporal/pulls{/number}","milestones_url":"https://api.github.com/repos/RTradeLtd/Temporal/milestones{/number}","notifications_url":"https://api.github.com/repos/RTradeLtd/Temporal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RTradeLtd/Temporal/labels{/name}","releases_url":"https://api.github.com/repos/RTradeLtd/Temporal/releases{/id}","deployments_url":"https://api.github.com/repos/RTradeLtd/Temporal/deployments","created_at":"2018-05-04T02:10:10Z","updated_at":"2018-11-11T20:22:07Z","pushed_at":"2018-11-12T02:53:33Z","git_url":"git://github.com/RTradeLtd/Temporal.git","ssh_url":"git@github.com:RTradeLtd/Temporal.git","clone_url":"https://github.com/RTradeLtd/Temporal.git","svn_url":"https://github.com/RTradeLtd/Temporal","homepage":"https://rtradetechnologies.atlassian.net/wiki/spaces/TEM/overview","size":2136740,"stargazers_count":54,"watchers_count":54,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"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":9,"open_issues":4,"watchers":54,"default_branch":"V2"}},"_links":{"self":{"href":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/246"},"html":{"href":"https://github.com/RTradeLtd/Temporal/pull/246"},"issue":{"href":"https://api.github.com/repos/RTradeLtd/Temporal/issues/246"},"comments":{"href":"https://api.github.com/repos/RTradeLtd/Temporal/issues/246/comments"},"review_comments":{"href":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/246/comments"},"review_comment":{"href":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RTradeLtd/Temporal/pulls/246/commits"},"statuses":{"href":"https://api.github.com/repos/RTradeLtd/Temporal/statuses/dae956c063f0f4e5814649578682b0bdcb38886c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"bobheadxi"}}