{"action":"created","comment":{"url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/comments/231822379","pull_request_review_id":172875609,"id":231822379,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTgyMjM3OQ==","diff_hunk":"@@ -0,0 +1,74 @@\n+package no.bibsys.handler;\n+\n+import com.amazonaws.services.codepipeline.AWSCodePipeline;\n+import com.amazonaws.services.codepipeline.AWSCodePipelineClientBuilder;\n+import com.amazonaws.services.codepipeline.model.ExecutionDetails;\n+import com.amazonaws.services.codepipeline.model.FailureDetails;\n+import com.amazonaws.services.codepipeline.model.FailureType;\n+import com.amazonaws.services.codepipeline.model.PutJobFailureResultRequest;\n+import com.amazonaws.services.codepipeline.model.PutJobSuccessResultRequest;\n+import java.io.BufferedWriter;\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.io.OutputStreamWriter;\n+import java.util.Optional;\n+import no.bibsys.handler.requests.CodePipelineEvent;\n+import no.bibsys.utils.IoUtils;\n+\n+public abstract class CodePipelineFunctionHandler<O> extends HandlerTemplate<CodePipelineEvent,O> {\n+\n+    private final transient AWSCodePipeline pipeline=AWSCodePipelineClientBuilder.defaultClient();\n+\n+    public CodePipelineFunctionHandler() {\n+        super(CodePipelineEvent.class);\n+    }\n+\n+    @Override\n+    protected final CodePipelineEvent parseInput(InputStream inputStream) throws IOException {\n+        String jsonSting= IoUtils.streamToString(inputStream);\n+        System.out.println(jsonSting);","path":"src/main/java/no/bibsys/handler/CodePipelineFunctionHandler.java","position":29,"original_position":29,"commit_id":"1474e4f208304eee944afa1c97d7d3858c858e3d","original_commit_id":"1474e4f208304eee944afa1c97d7d3858c858e3d","user":{"login":"axthosarouris","id":4091790,"node_id":"MDQ6VXNlcjQwOTE3OTA=","avatar_url":"https://avatars2.githubusercontent.com/u/4091790?v=4","gravatar_id":"","url":"https://api.github.com/users/axthosarouris","html_url":"https://github.com/axthosarouris","followers_url":"https://api.github.com/users/axthosarouris/followers","following_url":"https://api.github.com/users/axthosarouris/following{/other_user}","gists_url":"https://api.github.com/users/axthosarouris/gists{/gist_id}","starred_url":"https://api.github.com/users/axthosarouris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axthosarouris/subscriptions","organizations_url":"https://api.github.com/users/axthosarouris/orgs","repos_url":"https://api.github.com/users/axthosarouris/repos","events_url":"https://api.github.com/users/axthosarouris/events{/privacy}","received_events_url":"https://api.github.com/users/axthosarouris/received_events","type":"User","site_admin":false},"body":"I agree. I tried to use logging but I was doing something wrong and I could not get logs. \r\nWe should create a task for logging","created_at":"2018-11-08T09:50:02Z","updated_at":"2018-11-08T09:50:02Z","html_url":"https://github.com/BIBSYSDEV/authority-registry-infrastructure/pull/18#discussion_r231822379","pull_request_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/18","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/comments/231822379"},"html":{"href":"https://github.com/BIBSYSDEV/authority-registry-infrastructure/pull/18#discussion_r231822379"},"pull_request":{"href":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/18"}},"in_reply_to_id":231811104},"pull_request":{"url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/18","id":229276034,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5Mjc2MDM0","html_url":"https://github.com/BIBSYSDEV/authority-registry-infrastructure/pull/18","diff_url":"https://github.com/BIBSYSDEV/authority-registry-infrastructure/pull/18.diff","patch_url":"https://github.com/BIBSYSDEV/authority-registry-infrastructure/pull/18.patch","issue_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/issues/18","number":18,"state":"open","locked":false,"title":"Autreg 58 openapi lambdab","user":{"login":"axthosarouris","id":4091790,"node_id":"MDQ6VXNlcjQwOTE3OTA=","avatar_url":"https://avatars2.githubusercontent.com/u/4091790?v=4","gravatar_id":"","url":"https://api.github.com/users/axthosarouris","html_url":"https://github.com/axthosarouris","followers_url":"https://api.github.com/users/axthosarouris/followers","following_url":"https://api.github.com/users/axthosarouris/following{/other_user}","gists_url":"https://api.github.com/users/axthosarouris/gists{/gist_id}","starred_url":"https://api.github.com/users/axthosarouris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axthosarouris/subscriptions","organizations_url":"https://api.github.com/users/axthosarouris/orgs","repos_url":"https://api.github.com/users/axthosarouris/repos","events_url":"https://api.github.com/users/axthosarouris/events{/privacy}","received_events_url":"https://api.github.com/users/axthosarouris/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-08T07:48:27Z","updated_at":"2018-11-08T09:50:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b87b134ef588bdceff7725c7eb0af5e90313aec5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/18/commits","review_comments_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/18/comments","review_comment_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/issues/18/comments","statuses_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/statuses/1474e4f208304eee944afa1c97d7d3858c858e3d","head":{"label":"BIBSYSDEV:autreg-58-openapi-lambdab","ref":"autreg-58-openapi-lambdab","sha":"1474e4f208304eee944afa1c97d7d3858c858e3d","user":{"login":"BIBSYSDEV","id":16898221,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODk4MjIx","avatar_url":"https://avatars0.githubusercontent.com/u/16898221?v=4","gravatar_id":"","url":"https://api.github.com/users/BIBSYSDEV","html_url":"https://github.com/BIBSYSDEV","followers_url":"https://api.github.com/users/BIBSYSDEV/followers","following_url":"https://api.github.com/users/BIBSYSDEV/following{/other_user}","gists_url":"https://api.github.com/users/BIBSYSDEV/gists{/gist_id}","starred_url":"https://api.github.com/users/BIBSYSDEV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BIBSYSDEV/subscriptions","organizations_url":"https://api.github.com/users/BIBSYSDEV/orgs","repos_url":"https://api.github.com/users/BIBSYSDEV/repos","events_url":"https://api.github.com/users/BIBSYSDEV/events{/privacy}","received_events_url":"https://api.github.com/users/BIBSYSDEV/received_events","type":"Organization","site_admin":false},"repo":{"id":150566218,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA1NjYyMTg=","name":"authority-registry-infrastructure","full_name":"BIBSYSDEV/authority-registry-infrastructure","private":false,"owner":{"login":"BIBSYSDEV","id":16898221,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODk4MjIx","avatar_url":"https://avatars0.githubusercontent.com/u/16898221?v=4","gravatar_id":"","url":"https://api.github.com/users/BIBSYSDEV","html_url":"https://github.com/BIBSYSDEV","followers_url":"https://api.github.com/users/BIBSYSDEV/followers","following_url":"https://api.github.com/users/BIBSYSDEV/following{/other_user}","gists_url":"https://api.github.com/users/BIBSYSDEV/gists{/gist_id}","starred_url":"https://api.github.com/users/BIBSYSDEV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BIBSYSDEV/subscriptions","organizations_url":"https://api.github.com/users/BIBSYSDEV/orgs","repos_url":"https://api.github.com/users/BIBSYSDEV/repos","events_url":"https://api.github.com/users/BIBSYSDEV/events{/privacy}","received_events_url":"https://api.github.com/users/BIBSYSDEV/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BIBSYSDEV/authority-registry-infrastructure","description":null,"fork":false,"url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure","forks_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/forks","keys_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/teams","hooks_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/hooks","issue_events_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/issues/events{/number}","events_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/events","assignees_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/assignees{/user}","branches_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/branches{/branch}","tags_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/tags","blobs_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/git/refs{/sha}","trees_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/statuses/{sha}","languages_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/languages","stargazers_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/stargazers","contributors_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/contributors","subscribers_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/subscribers","subscription_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/subscription","commits_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/commits{/sha}","git_commits_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/git/commits{/sha}","comments_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/comments{/number}","issue_comment_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/issues/comments{/number}","contents_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/contents/{+path}","compare_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/merges","archive_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/downloads","issues_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/issues{/number}","pulls_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls{/number}","milestones_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/milestones{/number}","notifications_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/labels{/name}","releases_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/releases{/id}","deployments_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/deployments","created_at":"2018-09-27T09:59:04Z","updated_at":"2018-11-07T10:01:36Z","pushed_at":"2018-11-08T07:48:28Z","git_url":"git://github.com/BIBSYSDEV/authority-registry-infrastructure.git","ssh_url":"git@github.com:BIBSYSDEV/authority-registry-infrastructure.git","clone_url":"https://github.com/BIBSYSDEV/authority-registry-infrastructure.git","svn_url":"https://github.com/BIBSYSDEV/authority-registry-infrastructure","homepage":null,"size":429,"stargazers_count":0,"watchers_count":0,"language":"Java","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":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"BIBSYSDEV:master","ref":"master","sha":"99334f430f03f35b53660bb7bf6ef883d1cd112b","user":{"login":"BIBSYSDEV","id":16898221,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODk4MjIx","avatar_url":"https://avatars0.githubusercontent.com/u/16898221?v=4","gravatar_id":"","url":"https://api.github.com/users/BIBSYSDEV","html_url":"https://github.com/BIBSYSDEV","followers_url":"https://api.github.com/users/BIBSYSDEV/followers","following_url":"https://api.github.com/users/BIBSYSDEV/following{/other_user}","gists_url":"https://api.github.com/users/BIBSYSDEV/gists{/gist_id}","starred_url":"https://api.github.com/users/BIBSYSDEV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BIBSYSDEV/subscriptions","organizations_url":"https://api.github.com/users/BIBSYSDEV/orgs","repos_url":"https://api.github.com/users/BIBSYSDEV/repos","events_url":"https://api.github.com/users/BIBSYSDEV/events{/privacy}","received_events_url":"https://api.github.com/users/BIBSYSDEV/received_events","type":"Organization","site_admin":false},"repo":{"id":150566218,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA1NjYyMTg=","name":"authority-registry-infrastructure","full_name":"BIBSYSDEV/authority-registry-infrastructure","private":false,"owner":{"login":"BIBSYSDEV","id":16898221,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2ODk4MjIx","avatar_url":"https://avatars0.githubusercontent.com/u/16898221?v=4","gravatar_id":"","url":"https://api.github.com/users/BIBSYSDEV","html_url":"https://github.com/BIBSYSDEV","followers_url":"https://api.github.com/users/BIBSYSDEV/followers","following_url":"https://api.github.com/users/BIBSYSDEV/following{/other_user}","gists_url":"https://api.github.com/users/BIBSYSDEV/gists{/gist_id}","starred_url":"https://api.github.com/users/BIBSYSDEV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BIBSYSDEV/subscriptions","organizations_url":"https://api.github.com/users/BIBSYSDEV/orgs","repos_url":"https://api.github.com/users/BIBSYSDEV/repos","events_url":"https://api.github.com/users/BIBSYSDEV/events{/privacy}","received_events_url":"https://api.github.com/users/BIBSYSDEV/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BIBSYSDEV/authority-registry-infrastructure","description":null,"fork":false,"url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure","forks_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/forks","keys_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/teams","hooks_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/hooks","issue_events_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/issues/events{/number}","events_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/events","assignees_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/assignees{/user}","branches_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/branches{/branch}","tags_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/tags","blobs_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/git/refs{/sha}","trees_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/statuses/{sha}","languages_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/languages","stargazers_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/stargazers","contributors_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/contributors","subscribers_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/subscribers","subscription_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/subscription","commits_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/commits{/sha}","git_commits_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/git/commits{/sha}","comments_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/comments{/number}","issue_comment_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/issues/comments{/number}","contents_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/contents/{+path}","compare_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/merges","archive_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/downloads","issues_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/issues{/number}","pulls_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls{/number}","milestones_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/milestones{/number}","notifications_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/labels{/name}","releases_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/releases{/id}","deployments_url":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/deployments","created_at":"2018-09-27T09:59:04Z","updated_at":"2018-11-07T10:01:36Z","pushed_at":"2018-11-08T07:48:28Z","git_url":"git://github.com/BIBSYSDEV/authority-registry-infrastructure.git","ssh_url":"git@github.com:BIBSYSDEV/authority-registry-infrastructure.git","clone_url":"https://github.com/BIBSYSDEV/authority-registry-infrastructure.git","svn_url":"https://github.com/BIBSYSDEV/authority-registry-infrastructure","homepage":null,"size":429,"stargazers_count":0,"watchers_count":0,"language":"Java","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":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/18"},"html":{"href":"https://github.com/BIBSYSDEV/authority-registry-infrastructure/pull/18"},"issue":{"href":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/issues/18"},"comments":{"href":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/BIBSYSDEV/authority-registry-infrastructure/statuses/1474e4f208304eee944afa1c97d7d3858c858e3d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"axthosarouris"}}