{"action":"created","comment":{"url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/comments/190486481","pull_request_review_id":122870075,"id":190486481,"diff_hunk":"@@ -10,23 +10,37 @@ import UIKit\n \n extension UIView  {\n \n+    var parentViewController: UIViewController? {\n+        var parentResponder: UIResponder? = self\n+        while parentResponder != nil {\n+            parentResponder = parentResponder!.next\n+            if let viewController = parentResponder as? UIViewController {\n+                return viewController\n+            }\n+        }\n+        return nil\n+    }\n     func goToView(goToView : String)\n     {\n         let targetVC = UIStoryboard(name: \"Main\", bundle: nil).instantiateViewController(withIdentifier: goToView)\n         var topVC = UIApplication.shared.keyWindow?.rootViewController\n         while((topVC!.presentedViewController) != nil) {\n             topVC = topVC!.presentedViewController\n         }\n-        //let dashboardVC = UIStoryboard(name: \"Main\", bundle: nil).instantiateViewController(withIdentifier: \"DashboardVC\")\n-        //dashboardVC.navigationController?.pushViewController(targetVC, animated: true)\n-        //dashboardVC.parent?.navigationController?.pushViewController(targetVC, animated: true)\n-        let navigatorVC = UIStoryboard(name: \"Main\", bundle: nil).instantiateViewController(withIdentifier: \"MainNavigateVC\") as! MainNavigateVC\n-        navigatorVC.pushViewController(targetVC, animated: true)\n-        topVC?.navigationController?.pushViewController(targetVC, animated: true)\n-        topVC?.show(targetVC, sender: self)\n+        let dashboardVC = UIStoryboard(name: \"Main\", bundle: nil).instantiateViewController(withIdentifier: \"DashboardVC\")\n+        dashboardVC.navigationController?.pushViewController(targetVC, animated: true)\n+        //topVC?.navigationController?.pushViewController(targetVC, animated: true)\n+        if let navigator = topVC?.navigationController {\n+           navigator.pushViewController(targetVC, animated: true)\n+        }\n+        self.parentViewController?.navigationController?.pushViewController(targetVC, animated: true)\n+      //  topVC?.show(targetVC, sender: self)\n+\n     }\n     \n     @objc func dismissView() {\n          self.removeFromSuperview()\n     }\n }\n+\n+","path":"portfolio/ifintech/v1/imob/ios/iERP/iERP/Custom/CustomView.swift","position":44,"original_position":44,"commit_id":"0f524f1e6ebd50043140f728733f3c76dd799387","original_commit_id":"0f524f1e6ebd50043140f728733f3c76dd799387","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Vertical Whitespace Violation: Limit vertical whitespace to a single empty line. Currently 2. (vertical_whitespace)<br>Trailing Newline Violation: Files should have a single trailing newline. (trailing_newline)","created_at":"2018-05-24T07:19:18Z","updated_at":"2018-05-24T07:19:19Z","html_url":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1936#discussion_r190486481","pull_request_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1936","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/comments/190486481"},"html":{"href":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1936#discussion_r190486481"},"pull_request":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1936"}}},"pull_request":{"url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1936","id":190190559,"html_url":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1936","diff_url":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1936.diff","patch_url":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1936.patch","issue_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/1936","number":1936,"state":"closed","locked":false,"title":"Tl1revbranch ui1branch","user":{"login":"ui-1","id":34981821,"avatar_url":"https://avatars2.githubusercontent.com/u/34981821?v=4","gravatar_id":"","url":"https://api.github.com/users/ui-1","html_url":"https://github.com/ui-1","followers_url":"https://api.github.com/users/ui-1/followers","following_url":"https://api.github.com/users/ui-1/following{/other_user}","gists_url":"https://api.github.com/users/ui-1/gists{/gist_id}","starred_url":"https://api.github.com/users/ui-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ui-1/subscriptions","organizations_url":"https://api.github.com/users/ui-1/orgs","repos_url":"https://api.github.com/users/ui-1/repos","events_url":"https://api.github.com/users/ui-1/events{/privacy}","received_events_url":"https://api.github.com/users/ui-1/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-24T07:15:58Z","updated_at":"2018-05-24T07:19:19Z","closed_at":"2018-05-24T07:16:17Z","merged_at":"2018-05-24T07:16:17Z","merge_commit_sha":"ace1d59a41386d9d899ac1570fadb546fbc55a99","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1936/commits","review_comments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1936/comments","review_comment_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/1936/comments","statuses_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/statuses/0f524f1e6ebd50043140f728733f3c76dd799387","head":{"label":"IAS-SYSTEMS-CSC:tl1revbranch","ref":"tl1revbranch","sha":"0f524f1e6ebd50043140f728733f3c76dd799387","user":{"login":"IAS-SYSTEMS-CSC","id":34696817,"avatar_url":"https://avatars3.githubusercontent.com/u/34696817?v=4","gravatar_id":"","url":"https://api.github.com/users/IAS-SYSTEMS-CSC","html_url":"https://github.com/IAS-SYSTEMS-CSC","followers_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/followers","following_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/following{/other_user}","gists_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/gists{/gist_id}","starred_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/subscriptions","organizations_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/orgs","repos_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/repos","events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/events{/privacy}","received_events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/received_events","type":"Organization","site_admin":false},"repo":{"id":115261553,"name":"spring","full_name":"IAS-SYSTEMS-CSC/spring","owner":{"login":"IAS-SYSTEMS-CSC","id":34696817,"avatar_url":"https://avatars3.githubusercontent.com/u/34696817?v=4","gravatar_id":"","url":"https://api.github.com/users/IAS-SYSTEMS-CSC","html_url":"https://github.com/IAS-SYSTEMS-CSC","followers_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/followers","following_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/following{/other_user}","gists_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/gists{/gist_id}","starred_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/subscriptions","organizations_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/orgs","repos_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/repos","events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/events{/privacy}","received_events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IAS-SYSTEMS-CSC/spring","description":"entire ias-systems work!","fork":false,"url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring","forks_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/forks","keys_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/teams","hooks_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/hooks","issue_events_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/events{/number}","events_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/events","assignees_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/assignees{/user}","branches_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/branches{/branch}","tags_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/tags","blobs_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/refs{/sha}","trees_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/statuses/{sha}","languages_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/languages","stargazers_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/stargazers","contributors_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/contributors","subscribers_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/subscribers","subscription_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/subscription","commits_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/commits{/sha}","git_commits_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/commits{/sha}","comments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/comments{/number}","issue_comment_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/comments{/number}","contents_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/contents/{+path}","compare_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/merges","archive_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/downloads","issues_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues{/number}","pulls_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls{/number}","milestones_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/milestones{/number}","notifications_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/labels{/name}","releases_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/releases{/id}","deployments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/deployments","created_at":"2017-12-24T12:30:17Z","updated_at":"2018-05-13T13:19:32Z","pushed_at":"2018-05-24T07:16:19Z","git_url":"git://github.com/IAS-SYSTEMS-CSC/spring.git","ssh_url":"git@github.com:IAS-SYSTEMS-CSC/spring.git","clone_url":"https://github.com/IAS-SYSTEMS-CSC/spring.git","svn_url":"https://github.com/IAS-SYSTEMS-CSC/spring","homepage":null,"size":637123,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":16,"license":null,"forks":0,"open_issues":16,"watchers":0,"default_branch":"master"}},"base":{"label":"IAS-SYSTEMS-CSC:ui1branch","ref":"ui1branch","sha":"62005395b49d92120755a95198816350c155b75b","user":{"login":"IAS-SYSTEMS-CSC","id":34696817,"avatar_url":"https://avatars3.githubusercontent.com/u/34696817?v=4","gravatar_id":"","url":"https://api.github.com/users/IAS-SYSTEMS-CSC","html_url":"https://github.com/IAS-SYSTEMS-CSC","followers_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/followers","following_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/following{/other_user}","gists_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/gists{/gist_id}","starred_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/subscriptions","organizations_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/orgs","repos_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/repos","events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/events{/privacy}","received_events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/received_events","type":"Organization","site_admin":false},"repo":{"id":115261553,"name":"spring","full_name":"IAS-SYSTEMS-CSC/spring","owner":{"login":"IAS-SYSTEMS-CSC","id":34696817,"avatar_url":"https://avatars3.githubusercontent.com/u/34696817?v=4","gravatar_id":"","url":"https://api.github.com/users/IAS-SYSTEMS-CSC","html_url":"https://github.com/IAS-SYSTEMS-CSC","followers_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/followers","following_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/following{/other_user}","gists_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/gists{/gist_id}","starred_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/subscriptions","organizations_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/orgs","repos_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/repos","events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/events{/privacy}","received_events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IAS-SYSTEMS-CSC/spring","description":"entire ias-systems work!","fork":false,"url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring","forks_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/forks","keys_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/teams","hooks_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/hooks","issue_events_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/events{/number}","events_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/events","assignees_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/assignees{/user}","branches_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/branches{/branch}","tags_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/tags","blobs_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/refs{/sha}","trees_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/statuses/{sha}","languages_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/languages","stargazers_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/stargazers","contributors_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/contributors","subscribers_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/subscribers","subscription_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/subscription","commits_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/commits{/sha}","git_commits_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/commits{/sha}","comments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/comments{/number}","issue_comment_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/comments{/number}","contents_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/contents/{+path}","compare_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/merges","archive_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/downloads","issues_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues{/number}","pulls_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls{/number}","milestones_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/milestones{/number}","notifications_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/labels{/name}","releases_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/releases{/id}","deployments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/deployments","created_at":"2017-12-24T12:30:17Z","updated_at":"2018-05-13T13:19:32Z","pushed_at":"2018-05-24T07:16:19Z","git_url":"git://github.com/IAS-SYSTEMS-CSC/spring.git","ssh_url":"git@github.com:IAS-SYSTEMS-CSC/spring.git","clone_url":"https://github.com/IAS-SYSTEMS-CSC/spring.git","svn_url":"https://github.com/IAS-SYSTEMS-CSC/spring","homepage":null,"size":637123,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":16,"license":null,"forks":0,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1936"},"html":{"href":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1936"},"issue":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/1936"},"comments":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/1936/comments"},"review_comments":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1936/comments"},"review_comment":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1936/commits"},"statuses":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/statuses/0f524f1e6ebd50043140f728733f3c76dd799387"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}