{"action":"created","comment":{"url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/comments/145094136","pull_request_review_id":69839143,"id":145094136,"diff_hunk":"@@ -1,12 +1,13 @@\n import LoggerAPI\n+import CloudEnvironment\n import MongoKitten\n \n-var mongodb: Database!\n-\n-func initializeServiceMongodb() throws {\n+func initializeServiceMongodb(cloudEnv: CloudEnv) throws -> Database {\n+    let mongodb: Database","path":"generators/service-mongodb/templates/swift/instrumentation.swift","position":9,"original_position":9,"commit_id":"d86f8c2856f26cfd2948f8851fbd0cecefa69d74","original_commit_id":"d86f8c2856f26cfd2948f8851fbd0cecefa69d74","user":{"login":"tunniclm","id":5011883,"avatar_url":"https://avatars2.githubusercontent.com/u/5011883?v=4","gravatar_id":"","url":"https://api.github.com/users/tunniclm","html_url":"https://github.com/tunniclm","followers_url":"https://api.github.com/users/tunniclm/followers","following_url":"https://api.github.com/users/tunniclm/following{/other_user}","gists_url":"https://api.github.com/users/tunniclm/gists{/gist_id}","starred_url":"https://api.github.com/users/tunniclm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunniclm/subscriptions","organizations_url":"https://api.github.com/users/tunniclm/orgs","repos_url":"https://api.github.com/users/tunniclm/repos","events_url":"https://api.github.com/users/tunniclm/events{/privacy}","received_events_url":"https://api.github.com/users/tunniclm/received_events","type":"User","site_admin":false},"body":"If you move this declaration below the guard you won't need the type annotation since it would be inferred by the assignment.","created_at":"2017-10-17T10:53:39Z","updated_at":"2017-10-17T11:03:43Z","html_url":"https://github.com/ibm-developer/generator-ibm-service-enablement/pull/86#discussion_r145094136","pull_request_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/86","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/comments/145094136"},"html":{"href":"https://github.com/ibm-developer/generator-ibm-service-enablement/pull/86#discussion_r145094136"},"pull_request":{"href":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/86"}}},"pull_request":{"url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/86","id":146985333,"html_url":"https://github.com/ibm-developer/generator-ibm-service-enablement/pull/86","diff_url":"https://github.com/ibm-developer/generator-ibm-service-enablement/pull/86.diff","patch_url":"https://github.com/ibm-developer/generator-ibm-service-enablement/pull/86.patch","issue_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/issues/86","number":86,"state":"open","locked":false,"title":"swift services made more swifty","user":{"login":"nhardman","id":18440568,"avatar_url":"https://avatars3.githubusercontent.com/u/18440568?v=4","gravatar_id":"","url":"https://api.github.com/users/nhardman","html_url":"https://github.com/nhardman","followers_url":"https://api.github.com/users/nhardman/followers","following_url":"https://api.github.com/users/nhardman/following{/other_user}","gists_url":"https://api.github.com/users/nhardman/gists{/gist_id}","starred_url":"https://api.github.com/users/nhardman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhardman/subscriptions","organizations_url":"https://api.github.com/users/nhardman/orgs","repos_url":"https://api.github.com/users/nhardman/repos","events_url":"https://api.github.com/users/nhardman/events{/privacy}","received_events_url":"https://api.github.com/users/nhardman/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-17T09:24:09Z","updated_at":"2017-10-17T11:03:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bb2e02b521480604d24c61701252f685a4f4f0c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/86/commits","review_comments_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/86/comments","review_comment_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/issues/86/comments","statuses_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/statuses/d86f8c2856f26cfd2948f8851fbd0cecefa69d74","head":{"label":"nhardman:make-swifty","ref":"make-swifty","sha":"d86f8c2856f26cfd2948f8851fbd0cecefa69d74","user":{"login":"nhardman","id":18440568,"avatar_url":"https://avatars3.githubusercontent.com/u/18440568?v=4","gravatar_id":"","url":"https://api.github.com/users/nhardman","html_url":"https://github.com/nhardman","followers_url":"https://api.github.com/users/nhardman/followers","following_url":"https://api.github.com/users/nhardman/following{/other_user}","gists_url":"https://api.github.com/users/nhardman/gists{/gist_id}","starred_url":"https://api.github.com/users/nhardman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhardman/subscriptions","organizations_url":"https://api.github.com/users/nhardman/orgs","repos_url":"https://api.github.com/users/nhardman/repos","events_url":"https://api.github.com/users/nhardman/events{/privacy}","received_events_url":"https://api.github.com/users/nhardman/received_events","type":"User","site_admin":false},"repo":{"id":105747609,"name":"generator-ibm-service-enablement","full_name":"nhardman/generator-ibm-service-enablement","owner":{"login":"nhardman","id":18440568,"avatar_url":"https://avatars3.githubusercontent.com/u/18440568?v=4","gravatar_id":"","url":"https://api.github.com/users/nhardman","html_url":"https://github.com/nhardman","followers_url":"https://api.github.com/users/nhardman/followers","following_url":"https://api.github.com/users/nhardman/following{/other_user}","gists_url":"https://api.github.com/users/nhardman/gists{/gist_id}","starred_url":"https://api.github.com/users/nhardman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhardman/subscriptions","organizations_url":"https://api.github.com/users/nhardman/orgs","repos_url":"https://api.github.com/users/nhardman/repos","events_url":"https://api.github.com/users/nhardman/events{/privacy}","received_events_url":"https://api.github.com/users/nhardman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nhardman/generator-ibm-service-enablement","description":"IBM Service Enablement Yeoman Generator","fork":true,"url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement","forks_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/forks","keys_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/teams","hooks_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/hooks","issue_events_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/issues/events{/number}","events_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/events","assignees_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/assignees{/user}","branches_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/branches{/branch}","tags_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/tags","blobs_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/git/refs{/sha}","trees_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/statuses/{sha}","languages_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/languages","stargazers_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/stargazers","contributors_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/contributors","subscribers_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/subscribers","subscription_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/subscription","commits_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/commits{/sha}","git_commits_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/git/commits{/sha}","comments_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/comments{/number}","issue_comment_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/issues/comments{/number}","contents_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/contents/{+path}","compare_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/merges","archive_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/downloads","issues_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/issues{/number}","pulls_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/pulls{/number}","milestones_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/milestones{/number}","notifications_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/labels{/name}","releases_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/releases{/id}","deployments_url":"https://api.github.com/repos/nhardman/generator-ibm-service-enablement/deployments","created_at":"2017-10-04T08:43:32Z","updated_at":"2017-10-04T08:43:34Z","pushed_at":"2017-10-16T16:07:00Z","git_url":"git://github.com/nhardman/generator-ibm-service-enablement.git","ssh_url":"git@github.com:nhardman/generator-ibm-service-enablement.git","clone_url":"https://github.com/nhardman/generator-ibm-service-enablement.git","svn_url":"https://github.com/nhardman/generator-ibm-service-enablement","homepage":"","size":440,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"ibm-developer:development","ref":"development","sha":"1de4c6105cdb98cb90454be7a8faf851c9a9973f","user":{"login":"ibm-developer","id":29288762,"avatar_url":"https://avatars1.githubusercontent.com/u/29288762?v=4","gravatar_id":"","url":"https://api.github.com/users/ibm-developer","html_url":"https://github.com/ibm-developer","followers_url":"https://api.github.com/users/ibm-developer/followers","following_url":"https://api.github.com/users/ibm-developer/following{/other_user}","gists_url":"https://api.github.com/users/ibm-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/ibm-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibm-developer/subscriptions","organizations_url":"https://api.github.com/users/ibm-developer/orgs","repos_url":"https://api.github.com/users/ibm-developer/repos","events_url":"https://api.github.com/users/ibm-developer/events{/privacy}","received_events_url":"https://api.github.com/users/ibm-developer/received_events","type":"Organization","site_admin":false},"repo":{"id":98924758,"name":"generator-ibm-service-enablement","full_name":"ibm-developer/generator-ibm-service-enablement","owner":{"login":"ibm-developer","id":29288762,"avatar_url":"https://avatars1.githubusercontent.com/u/29288762?v=4","gravatar_id":"","url":"https://api.github.com/users/ibm-developer","html_url":"https://github.com/ibm-developer","followers_url":"https://api.github.com/users/ibm-developer/followers","following_url":"https://api.github.com/users/ibm-developer/following{/other_user}","gists_url":"https://api.github.com/users/ibm-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/ibm-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibm-developer/subscriptions","organizations_url":"https://api.github.com/users/ibm-developer/orgs","repos_url":"https://api.github.com/users/ibm-developer/repos","events_url":"https://api.github.com/users/ibm-developer/events{/privacy}","received_events_url":"https://api.github.com/users/ibm-developer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ibm-developer/generator-ibm-service-enablement","description":"IBM Service Enablement Yeoman Generator","fork":false,"url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement","forks_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/forks","keys_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/teams","hooks_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/hooks","issue_events_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/issues/events{/number}","events_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/events","assignees_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/assignees{/user}","branches_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/branches{/branch}","tags_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/tags","blobs_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/git/refs{/sha}","trees_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/statuses/{sha}","languages_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/languages","stargazers_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/stargazers","contributors_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/contributors","subscribers_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/subscribers","subscription_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/subscription","commits_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/commits{/sha}","git_commits_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/git/commits{/sha}","comments_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/comments{/number}","issue_comment_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/issues/comments{/number}","contents_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/contents/{+path}","compare_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/merges","archive_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/downloads","issues_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/issues{/number}","pulls_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls{/number}","milestones_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/milestones{/number}","notifications_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/labels{/name}","releases_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/releases{/id}","deployments_url":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/deployments","created_at":"2017-07-31T19:57:59Z","updated_at":"2017-09-11T21:23:51Z","pushed_at":"2017-10-17T09:24:10Z","git_url":"git://github.com/ibm-developer/generator-ibm-service-enablement.git","ssh_url":"git@github.com:ibm-developer/generator-ibm-service-enablement.git","clone_url":"https://github.com/ibm-developer/generator-ibm-service-enablement.git","svn_url":"https://github.com/ibm-developer/generator-ibm-service-enablement","homepage":"","size":437,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":1,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/86"},"html":{"href":"https://github.com/ibm-developer/generator-ibm-service-enablement/pull/86"},"issue":{"href":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/issues/86"},"comments":{"href":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/ibm-developer/generator-ibm-service-enablement/statuses/d86f8c2856f26cfd2948f8851fbd0cecefa69d74"}},"author_association":"NONE"}}
{"actor":{"display_login":"tunniclm"}}