payload: {"action":"opened","number":183,"pull_request":{"url":"https://api.github.com/repos/globocom/huskyci/pulls/183","id":263748101,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYzNzQ4MTAx","html_url":"https://github.com/globocom/huskyci/pull/183","diff_url":"https://github.com/globocom/huskyci/pull/183.diff","patch_url":"https://github.com/globocom/huskyci/pull/183.patch","issue_url":"https://api.github.com/repos/globocom/huskyci/issues/183","number":183,"state":"open","locked":false,"title":"Add the option to use TLS as a feature flag","user":{"login":"Krlier","id":40367872,"node_id":"MDQ6VXNlcjQwMzY3ODcy","avatar_url":"https://avatars0.githubusercontent.com/u/40367872?v=4","gravatar_id":"","url":"https://api.github.com/users/Krlier","html_url":"https://github.com/Krlier","followers_url":"https://api.github.com/users/Krlier/followers","following_url":"https://api.github.com/users/Krlier/following{/other_user}","gists_url":"https://api.github.com/users/Krlier/gists{/gist_id}","starred_url":"https://api.github.com/users/Krlier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krlier/subscriptions","organizations_url":"https://api.github.com/users/Krlier/orgs","repos_url":"https://api.github.com/users/Krlier/repos","events_url":"https://api.github.com/users/Krlier/events{/privacy}","received_events_url":"https://api.github.com/users/Krlier/received_events","type":"User","site_admin":false},"body":"This commit aims to add the option to use TLS as a feature flag.\r\n## API\r\n* api/server.go: Add verifier to check if TLS flag is set up. If it's not, API starts as HTTP only.\r\n* api/context/config.go: Add new `UseTLS` variable to `APIConfig` struct.\r\n\r\n## Client\r\n* client/analysis/analysis.go: Change `NewClientTLS()` function to `NewClient()` to support both HTTP and HTTPS methods in Client.\r\n\r\n## Deployments\r\n* deployments/scripts/generate-env-pass.sh: Add new TLS environment variables to the generator script.\r\n* util/util.go: Changed the `NewClientTLS()` function to `NewClient()` to support both HTTP and HTTPS methods.","created_at":"2019-03-22T20:12:51Z","updated_at":"2019-03-22T20:12:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":970644801,"node_id":"MDU6TGFiZWw5NzA2NDQ4MDE=","url":"https://api.github.com/repos/globocom/huskyci/labels/feature","name":"feature","color":"a2eeef","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/globocom/huskyci/pulls/183/commits","review_comments_url":"https://api.github.com/repos/globocom/huskyci/pulls/183/comments","review_comment_url":"https://api.github.com/repos/globocom/huskyci/pulls/comments{/number}","comments_url":"https://api.github.com/repos/globocom/huskyci/issues/183/comments","statuses_url":"https://api.github.com/repos/globocom/huskyci/statuses/eede8b41bb63c79c62e9cf5f32a18d25059b519c","head":{"label":"globocom:huskyCI-TLS-Option","ref":"huskyCI-TLS-Option","sha":"eede8b41bb63c79c62e9cf5f32a18d25059b519c","user":{"login":"globocom","id":83798,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgzNzk4","avatar_url":"https://avatars2.githubusercontent.com/u/83798?v=4","gravatar_id":"","url":"https://api.github.com/users/globocom","html_url":"https://github.com/globocom","followers_url":"https://api.github.com/users/globocom/followers","following_url":"https://api.github.com/users/globocom/following{/other_user}","gists_url":"https://api.github.com/users/globocom/gists{/gist_id}","starred_url":"https://api.github.com/users/globocom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globocom/subscriptions","organizations_url":"https://api.github.com/users/globocom/orgs","repos_url":"https://api.github.com/users/globocom/repos","events_url":"https://api.github.com/users/globocom/events{/privacy}","received_events_url":"https://api.github.com/users/globocom/received_events","type":"Organization","site_admin":false},"repo":{"id":138089627,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgwODk2Mjc=","name":"huskyci","full_name":"globocom/huskyci","private":false,"owner":{"login":"globocom","id":83798,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgzNzk4","avatar_url":"https://avatars2.githubusercontent.com/u/83798?v=4","gravatar_id":"","url":"https://api.github.com/users/globocom","html_url":"https://github.com/globocom","followers_url":"https://api.github.com/users/globocom/followers","following_url":"https://api.github.com/users/globocom/following{/other_user}","gists_url":"https://api.github.com/users/globocom/gists{/gist_id}","starred_url":"https://api.github.com/users/globocom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globocom/subscriptions","organizations_url":"https://api.github.com/users/globocom/orgs","repos_url":"https://api.github.com/users/globocom/repos","events_url":"https://api.github.com/users/globocom/events{/privacy}","received_events_url":"https://api.github.com/users/globocom/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/globocom/huskyci","description":"🐶 Performing security tests inside your CI.","fork":false,"url":"https://api.github.com/repos/globocom/huskyci","forks_url":"https://api.github.com/repos/globocom/huskyci/forks","keys_url":"https://api.github.com/repos/globocom/huskyci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/globocom/huskyci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/globocom/huskyci/teams","hooks_url":"https://api.github.com/repos/globocom/huskyci/hooks","issue_events_url":"https://api.github.com/repos/globocom/huskyci/issues/events{/number}","events_url":"https://api.github.com/repos/globocom/huskyci/events","assignees_url":"https://api.github.com/repos/globocom/huskyci/assignees{/user}","branches_url":"https://api.github.com/repos/globocom/huskyci/branches{/branch}","tags_url":"https://api.github.com/repos/globocom/huskyci/tags","blobs_url":"https://api.github.com/repos/globocom/huskyci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/globocom/huskyci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/globocom/huskyci/git/refs{/sha}","trees_url":"https://api.github.com/repos/globocom/huskyci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/globocom/huskyci/statuses/{sha}","languages_url":"https://api.github.com/repos/globocom/huskyci/languages","stargazers_url":"https://api.github.com/repos/globocom/huskyci/stargazers","contributors_url":"https://api.github.com/repos/globocom/huskyci/contributors","subscribers_url":"https://api.github.com/repos/globocom/huskyci/subscribers","subscription_url":"https://api.github.com/repos/globocom/huskyci/subscription","commits_url":"https://api.github.com/repos/globocom/huskyci/commits{/sha}","git_commits_url":"https://api.github.com/repos/globocom/huskyci/git/commits{/sha}","comments_url":"https://api.github.com/repos/globocom/huskyci/comments{/number}","issue_comment_url":"https://api.github.com/repos/globocom/huskyci/issues/comments{/number}","contents_url":"https://api.github.com/repos/globocom/huskyci/contents/{+path}","compare_url":"https://api.github.com/repos/globocom/huskyci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/globocom/huskyci/merges","archive_url":"https://api.github.com/repos/globocom/huskyci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/globocom/huskyci/downloads","issues_url":"https://api.github.com/repos/globocom/huskyci/issues{/number}","pulls_url":"https://api.github.com/repos/globocom/huskyci/pulls{/number}","milestones_url":"https://api.github.com/repos/globocom/huskyci/milestones{/number}","notifications_url":"https://api.github.com/repos/globocom/huskyci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/globocom/huskyci/labels{/name}","releases_url":"https://api.github.com/repos/globocom/huskyci/releases{/id}","deployments_url":"https://api.github.com/repos/globocom/huskyci/deployments","created_at":"2018-06-20T21:52:00Z","updated_at":"2019-03-19T20:16:40Z","pushed_at":"2019-03-22T20:04:50Z","git_url":"git://github.com/globocom/huskyci.git","ssh_url":"git@github.com:globocom/huskyci.git","clone_url":"https://github.com/globocom/huskyci.git","svn_url":"https://github.com/globocom/huskyci","homepage":"","size":3716,"stargazers_count":13,"watchers_count":13,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":10,"watchers":13,"default_branch":"master"}},"base":{"label":"globocom:master","ref":"master","sha":"e1c68d931dd39ae266d4434d10001e0e6d5b20ac","user":{"login":"globocom","id":83798,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgzNzk4","avatar_url":"https://avatars2.githubusercontent.com/u/83798?v=4","gravatar_id":"","url":"https://api.github.com/users/globocom","html_url":"https://github.com/globocom","followers_url":"https://api.github.com/users/globocom/followers","following_url":"https://api.github.com/users/globocom/following{/other_user}","gists_url":"https://api.github.com/users/globocom/gists{/gist_id}","starred_url":"https://api.github.com/users/globocom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globocom/subscriptions","organizations_url":"https://api.github.com/users/globocom/orgs","repos_url":"https://api.github.com/users/globocom/repos","events_url":"https://api.github.com/users/globocom/events{/privacy}","received_events_url":"https://api.github.com/users/globocom/received_events","type":"Organization","site_admin":false},"repo":{"id":138089627,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgwODk2Mjc=","name":"huskyci","full_name":"globocom/huskyci","private":false,"owner":{"login":"globocom","id":83798,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgzNzk4","avatar_url":"https://avatars2.githubusercontent.com/u/83798?v=4","gravatar_id":"","url":"https://api.github.com/users/globocom","html_url":"https://github.com/globocom","followers_url":"https://api.github.com/users/globocom/followers","following_url":"https://api.github.com/users/globocom/following{/other_user}","gists_url":"https://api.github.com/users/globocom/gists{/gist_id}","starred_url":"https://api.github.com/users/globocom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globocom/subscriptions","organizations_url":"https://api.github.com/users/globocom/orgs","repos_url":"https://api.github.com/users/globocom/repos","events_url":"https://api.github.com/users/globocom/events{/privacy}","received_events_url":"https://api.github.com/users/globocom/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/globocom/huskyci","description":"🐶 Performing security tests inside your CI.","fork":false,"url":"https://api.github.com/repos/globocom/huskyci","forks_url":"https://api.github.com/repos/globocom/huskyci/forks","keys_url":"https://api.github.com/repos/globocom/huskyci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/globocom/huskyci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/globocom/huskyci/teams","hooks_url":"https://api.github.com/repos/globocom/huskyci/hooks","issue_events_url":"https://api.github.com/repos/globocom/huskyci/issues/events{/number}","events_url":"https://api.github.com/repos/globocom/huskyci/events","assignees_url":"https://api.github.com/repos/globocom/huskyci/assignees{/user}","branches_url":"https://api.github.com/repos/globocom/huskyci/branches{/branch}","tags_url":"https://api.github.com/repos/globocom/huskyci/tags","blobs_url":"https://api.github.com/repos/globocom/huskyci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/globocom/huskyci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/globocom/huskyci/git/refs{/sha}","trees_url":"https://api.github.com/repos/globocom/huskyci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/globocom/huskyci/statuses/{sha}","languages_url":"https://api.github.com/repos/globocom/huskyci/languages","stargazers_url":"https://api.github.com/repos/globocom/huskyci/stargazers","contributors_url":"https://api.github.com/repos/globocom/huskyci/contributors","subscribers_url":"https://api.github.com/repos/globocom/huskyci/subscribers","subscription_url":"https://api.github.com/repos/globocom/huskyci/subscription","commits_url":"https://api.github.com/repos/globocom/huskyci/commits{/sha}","git_commits_url":"https://api.github.com/repos/globocom/huskyci/git/commits{/sha}","comments_url":"https://api.github.com/repos/globocom/huskyci/comments{/number}","issue_comment_url":"https://api.github.com/repos/globocom/huskyci/issues/comments{/number}","contents_url":"https://api.github.com/repos/globocom/huskyci/contents/{+path}","compare_url":"https://api.github.com/repos/globocom/huskyci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/globocom/huskyci/merges","archive_url":"https://api.github.com/repos/globocom/huskyci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/globocom/huskyci/downloads","issues_url":"https://api.github.com/repos/globocom/huskyci/issues{/number}","pulls_url":"https://api.github.com/repos/globocom/huskyci/pulls{/number}","milestones_url":"https://api.github.com/repos/globocom/huskyci/milestones{/number}","notifications_url":"https://api.github.com/repos/globocom/huskyci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/globocom/huskyci/labels{/name}","releases_url":"https://api.github.com/repos/globocom/huskyci/releases{/id}","deployments_url":"https://api.github.com/repos/globocom/huskyci/deployments","created_at":"2018-06-20T21:52:00Z","updated_at":"2019-03-19T20:16:40Z","pushed_at":"2019-03-22T20:04:50Z","git_url":"git://github.com/globocom/huskyci.git","ssh_url":"git@github.com:globocom/huskyci.git","clone_url":"https://github.com/globocom/huskyci.git","svn_url":"https://github.com/globocom/huskyci","homepage":"","size":3716,"stargazers_count":13,"watchers_count":13,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":10,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/globocom/huskyci/pulls/183"},"html":{"href":"https://github.com/globocom/huskyci/pull/183"},"issue":{"href":"https://api.github.com/repos/globocom/huskyci/issues/183"},"comments":{"href":"https://api.github.com/repos/globocom/huskyci/issues/183/comments"},"review_comments":{"href":"https://api.github.com/repos/globocom/huskyci/pulls/183/comments"},"review_comment":{"href":"https://api.github.com/repos/globocom/huskyci/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/globocom/huskyci/pulls/183/commits"},"statuses":{"href":"https://api.github.com/repos/globocom/huskyci/statuses/eede8b41bb63c79c62e9cf5f32a18d25059b519c"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":72,"deletions":33,"changed_files":6}}
other: {"actor":{"display_login":"Krlier"}}