payload: {"action":"created","comment":{"url":"https://api.github.com/repos/valoricDe/apgdiff/pulls/comments/258831901","pull_request_review_id":206185662,"id":258831901,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1ODgzMTkwMQ==","diff_hunk":"@@ -75,6 +75,16 @@ public static void parse(final PgDatabase database,\n         final String relationName = parser.parseIdentifier();\n \n         trigger.setRelationName(ParserUtils.getObjectName(relationName));\n+        \n+        String referencing=\"REFERENCING\";\n+        if (parser.expectOptional(referencing)) {            \n+             trigger.setReferencing(\"\\t\"+referencing);             \n+\n+            while( !parser.getSubString(parser.getPosition()-5, parser.getPosition()-4).equals(System.getProperty(\"line.separator\"))){ ","path":"src/main/java/cz/startnet/utils/pgdiff/parsers/CreateTriggerParser.java","position":9,"original_position":9,"commit_id":"79bad94a1cb1bd2016c5ada48ff0062e1a443d3b","original_commit_id":"79bad94a1cb1bd2016c5ada48ff0062e1a443d3b","user":{"login":"ruslantalpa","id":5537246,"node_id":"MDQ6VXNlcjU1MzcyNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/5537246?v=4","gravatar_id":"","url":"https://api.github.com/users/ruslantalpa","html_url":"https://github.com/ruslantalpa","followers_url":"https://api.github.com/users/ruslantalpa/followers","following_url":"https://api.github.com/users/ruslantalpa/following{/other_user}","gists_url":"https://api.github.com/users/ruslantalpa/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslantalpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslantalpa/subscriptions","organizations_url":"https://api.github.com/users/ruslantalpa/orgs","repos_url":"https://api.github.com/users/ruslantalpa/repos","events_url":"https://api.github.com/users/ruslantalpa/events{/privacy}","received_events_url":"https://api.github.com/users/ruslantalpa/received_events","type":"User","site_admin":false},"body":"this condition is not quite ok, when running the tests on a windows box this fails, I suspect because of \"line.separator\"\r\nI looked at how the `parseReferencing is constructed and removed the `while` and replaced it with 2 consecutive calls to parseReferencing","created_at":"2019-02-21T08:58:17Z","updated_at":"2019-02-21T08:58:17Z","html_url":"https://github.com/valoricDe/apgdiff/pull/4#discussion_r258831901","pull_request_url":"https://api.github.com/repos/valoricDe/apgdiff/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/valoricDe/apgdiff/pulls/comments/258831901"},"html":{"href":"https://github.com/valoricDe/apgdiff/pull/4#discussion_r258831901"},"pull_request":{"href":"https://api.github.com/repos/valoricDe/apgdiff/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/valoricDe/apgdiff/pulls/4","id":230286123,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMjg2MTIz","html_url":"https://github.com/valoricDe/apgdiff/pull/4","diff_url":"https://github.com/valoricDe/apgdiff/pull/4.diff","patch_url":"https://github.com/valoricDe/apgdiff/pull/4.patch","issue_url":"https://api.github.com/repos/valoricDe/apgdiff/issues/4","number":4,"state":"open","locked":false,"title":"Develop triggers","user":{"login":"valoricDe","id":22564188,"node_id":"MDQ6VXNlcjIyNTY0MTg4","avatar_url":"https://avatars2.githubusercontent.com/u/22564188?v=4","gravatar_id":"","url":"https://api.github.com/users/valoricDe","html_url":"https://github.com/valoricDe","followers_url":"https://api.github.com/users/valoricDe/followers","following_url":"https://api.github.com/users/valoricDe/following{/other_user}","gists_url":"https://api.github.com/users/valoricDe/gists{/gist_id}","starred_url":"https://api.github.com/users/valoricDe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valoricDe/subscriptions","organizations_url":"https://api.github.com/users/valoricDe/orgs","repos_url":"https://api.github.com/users/valoricDe/repos","events_url":"https://api.github.com/users/valoricDe/events{/privacy}","received_events_url":"https://api.github.com/users/valoricDe/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-12T22:18:36Z","updated_at":"2019-02-21T08:58:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d91a837f57f79438eb6c071ebcb578b1118f7d7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/valoricDe/apgdiff/pulls/4/commits","review_comments_url":"https://api.github.com/repos/valoricDe/apgdiff/pulls/4/comments","review_comment_url":"https://api.github.com/repos/valoricDe/apgdiff/pulls/comments{/number}","comments_url":"https://api.github.com/repos/valoricDe/apgdiff/issues/4/comments","statuses_url":"https://api.github.com/repos/valoricDe/apgdiff/statuses/79bad94a1cb1bd2016c5ada48ff0062e1a443d3b","head":{"label":"jalissonmello:develop_triggers","ref":"develop_triggers","sha":"79bad94a1cb1bd2016c5ada48ff0062e1a443d3b","user":{"login":"jalissonmello","id":15096459,"node_id":"MDQ6VXNlcjE1MDk2NDU5","avatar_url":"https://avatars0.githubusercontent.com/u/15096459?v=4","gravatar_id":"","url":"https://api.github.com/users/jalissonmello","html_url":"https://github.com/jalissonmello","followers_url":"https://api.github.com/users/jalissonmello/followers","following_url":"https://api.github.com/users/jalissonmello/following{/other_user}","gists_url":"https://api.github.com/users/jalissonmello/gists{/gist_id}","starred_url":"https://api.github.com/users/jalissonmello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalissonmello/subscriptions","organizations_url":"https://api.github.com/users/jalissonmello/orgs","repos_url":"https://api.github.com/users/jalissonmello/repos","events_url":"https://api.github.com/users/jalissonmello/events{/privacy}","received_events_url":"https://api.github.com/users/jalissonmello/received_events","type":"User","site_admin":false},"repo":{"id":61571314,"node_id":"MDEwOlJlcG9zaXRvcnk2MTU3MTMxNA==","name":"apgdiff","full_name":"jalissonmello/apgdiff","private":false,"owner":{"login":"jalissonmello","id":15096459,"node_id":"MDQ6VXNlcjE1MDk2NDU5","avatar_url":"https://avatars0.githubusercontent.com/u/15096459?v=4","gravatar_id":"","url":"https://api.github.com/users/jalissonmello","html_url":"https://github.com/jalissonmello","followers_url":"https://api.github.com/users/jalissonmello/followers","following_url":"https://api.github.com/users/jalissonmello/following{/other_user}","gists_url":"https://api.github.com/users/jalissonmello/gists{/gist_id}","starred_url":"https://api.github.com/users/jalissonmello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalissonmello/subscriptions","organizations_url":"https://api.github.com/users/jalissonmello/orgs","repos_url":"https://api.github.com/users/jalissonmello/repos","events_url":"https://api.github.com/users/jalissonmello/events{/privacy}","received_events_url":"https://api.github.com/users/jalissonmello/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jalissonmello/apgdiff","description":"Another PostgreSQL Diff Tool","fork":true,"url":"https://api.github.com/repos/jalissonmello/apgdiff","forks_url":"https://api.github.com/repos/jalissonmello/apgdiff/forks","keys_url":"https://api.github.com/repos/jalissonmello/apgdiff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jalissonmello/apgdiff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jalissonmello/apgdiff/teams","hooks_url":"https://api.github.com/repos/jalissonmello/apgdiff/hooks","issue_events_url":"https://api.github.com/repos/jalissonmello/apgdiff/issues/events{/number}","events_url":"https://api.github.com/repos/jalissonmello/apgdiff/events","assignees_url":"https://api.github.com/repos/jalissonmello/apgdiff/assignees{/user}","branches_url":"https://api.github.com/repos/jalissonmello/apgdiff/branches{/branch}","tags_url":"https://api.github.com/repos/jalissonmello/apgdiff/tags","blobs_url":"https://api.github.com/repos/jalissonmello/apgdiff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jalissonmello/apgdiff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jalissonmello/apgdiff/git/refs{/sha}","trees_url":"https://api.github.com/repos/jalissonmello/apgdiff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jalissonmello/apgdiff/statuses/{sha}","languages_url":"https://api.github.com/repos/jalissonmello/apgdiff/languages","stargazers_url":"https://api.github.com/repos/jalissonmello/apgdiff/stargazers","contributors_url":"https://api.github.com/repos/jalissonmello/apgdiff/contributors","subscribers_url":"https://api.github.com/repos/jalissonmello/apgdiff/subscribers","subscription_url":"https://api.github.com/repos/jalissonmello/apgdiff/subscription","commits_url":"https://api.github.com/repos/jalissonmello/apgdiff/commits{/sha}","git_commits_url":"https://api.github.com/repos/jalissonmello/apgdiff/git/commits{/sha}","comments_url":"https://api.github.com/repos/jalissonmello/apgdiff/comments{/number}","issue_comment_url":"https://api.github.com/repos/jalissonmello/apgdiff/issues/comments{/number}","contents_url":"https://api.github.com/repos/jalissonmello/apgdiff/contents/{+path}","compare_url":"https://api.github.com/repos/jalissonmello/apgdiff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jalissonmello/apgdiff/merges","archive_url":"https://api.github.com/repos/jalissonmello/apgdiff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jalissonmello/apgdiff/downloads","issues_url":"https://api.github.com/repos/jalissonmello/apgdiff/issues{/number}","pulls_url":"https://api.github.com/repos/jalissonmello/apgdiff/pulls{/number}","milestones_url":"https://api.github.com/repos/jalissonmello/apgdiff/milestones{/number}","notifications_url":"https://api.github.com/repos/jalissonmello/apgdiff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jalissonmello/apgdiff/labels{/name}","releases_url":"https://api.github.com/repos/jalissonmello/apgdiff/releases{/id}","deployments_url":"https://api.github.com/repos/jalissonmello/apgdiff/deployments","created_at":"2016-06-20T18:36:24Z","updated_at":"2018-11-24T14:22:37Z","pushed_at":"2018-11-24T14:22:36Z","git_url":"git://github.com/jalissonmello/apgdiff.git","ssh_url":"git@github.com:jalissonmello/apgdiff.git","clone_url":"https://github.com/jalissonmello/apgdiff.git","svn_url":"https://github.com/jalissonmello/apgdiff","homepage":"http://www.apgdiff.com","size":955,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"valoricDe:develop","ref":"develop","sha":"e5980c682d550fcf282fdfb85f65283e3dd036b0","user":{"login":"valoricDe","id":22564188,"node_id":"MDQ6VXNlcjIyNTY0MTg4","avatar_url":"https://avatars2.githubusercontent.com/u/22564188?v=4","gravatar_id":"","url":"https://api.github.com/users/valoricDe","html_url":"https://github.com/valoricDe","followers_url":"https://api.github.com/users/valoricDe/followers","following_url":"https://api.github.com/users/valoricDe/following{/other_user}","gists_url":"https://api.github.com/users/valoricDe/gists{/gist_id}","starred_url":"https://api.github.com/users/valoricDe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valoricDe/subscriptions","organizations_url":"https://api.github.com/users/valoricDe/orgs","repos_url":"https://api.github.com/users/valoricDe/repos","events_url":"https://api.github.com/users/valoricDe/events{/privacy}","received_events_url":"https://api.github.com/users/valoricDe/received_events","type":"User","site_admin":false},"repo":{"id":155526302,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU1MjYzMDI=","name":"apgdiff","full_name":"valoricDe/apgdiff","private":false,"owner":{"login":"valoricDe","id":22564188,"node_id":"MDQ6VXNlcjIyNTY0MTg4","avatar_url":"https://avatars2.githubusercontent.com/u/22564188?v=4","gravatar_id":"","url":"https://api.github.com/users/valoricDe","html_url":"https://github.com/valoricDe","followers_url":"https://api.github.com/users/valoricDe/followers","following_url":"https://api.github.com/users/valoricDe/following{/other_user}","gists_url":"https://api.github.com/users/valoricDe/gists{/gist_id}","starred_url":"https://api.github.com/users/valoricDe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valoricDe/subscriptions","organizations_url":"https://api.github.com/users/valoricDe/orgs","repos_url":"https://api.github.com/users/valoricDe/repos","events_url":"https://api.github.com/users/valoricDe/events{/privacy}","received_events_url":"https://api.github.com/users/valoricDe/received_events","type":"User","site_admin":false},"html_url":"https://github.com/valoricDe/apgdiff","description":"Another PostgreSQL Diff Tool","fork":true,"url":"https://api.github.com/repos/valoricDe/apgdiff","forks_url":"https://api.github.com/repos/valoricDe/apgdiff/forks","keys_url":"https://api.github.com/repos/valoricDe/apgdiff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valoricDe/apgdiff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valoricDe/apgdiff/teams","hooks_url":"https://api.github.com/repos/valoricDe/apgdiff/hooks","issue_events_url":"https://api.github.com/repos/valoricDe/apgdiff/issues/events{/number}","events_url":"https://api.github.com/repos/valoricDe/apgdiff/events","assignees_url":"https://api.github.com/repos/valoricDe/apgdiff/assignees{/user}","branches_url":"https://api.github.com/repos/valoricDe/apgdiff/branches{/branch}","tags_url":"https://api.github.com/repos/valoricDe/apgdiff/tags","blobs_url":"https://api.github.com/repos/valoricDe/apgdiff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valoricDe/apgdiff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valoricDe/apgdiff/git/refs{/sha}","trees_url":"https://api.github.com/repos/valoricDe/apgdiff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valoricDe/apgdiff/statuses/{sha}","languages_url":"https://api.github.com/repos/valoricDe/apgdiff/languages","stargazers_url":"https://api.github.com/repos/valoricDe/apgdiff/stargazers","contributors_url":"https://api.github.com/repos/valoricDe/apgdiff/contributors","subscribers_url":"https://api.github.com/repos/valoricDe/apgdiff/subscribers","subscription_url":"https://api.github.com/repos/valoricDe/apgdiff/subscription","commits_url":"https://api.github.com/repos/valoricDe/apgdiff/commits{/sha}","git_commits_url":"https://api.github.com/repos/valoricDe/apgdiff/git/commits{/sha}","comments_url":"https://api.github.com/repos/valoricDe/apgdiff/comments{/number}","issue_comment_url":"https://api.github.com/repos/valoricDe/apgdiff/issues/comments{/number}","contents_url":"https://api.github.com/repos/valoricDe/apgdiff/contents/{+path}","compare_url":"https://api.github.com/repos/valoricDe/apgdiff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valoricDe/apgdiff/merges","archive_url":"https://api.github.com/repos/valoricDe/apgdiff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valoricDe/apgdiff/downloads","issues_url":"https://api.github.com/repos/valoricDe/apgdiff/issues{/number}","pulls_url":"https://api.github.com/repos/valoricDe/apgdiff/pulls{/number}","milestones_url":"https://api.github.com/repos/valoricDe/apgdiff/milestones{/number}","notifications_url":"https://api.github.com/repos/valoricDe/apgdiff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valoricDe/apgdiff/labels{/name}","releases_url":"https://api.github.com/repos/valoricDe/apgdiff/releases{/id}","deployments_url":"https://api.github.com/repos/valoricDe/apgdiff/deployments","created_at":"2018-10-31T08:50:24Z","updated_at":"2019-02-08T21:54:10Z","pushed_at":"2019-02-08T21:54:08Z","git_url":"git://github.com/valoricDe/apgdiff.git","ssh_url":"git@github.com:valoricDe/apgdiff.git","clone_url":"https://github.com/valoricDe/apgdiff.git","svn_url":"https://github.com/valoricDe/apgdiff","homepage":"http://www.apgdiff.com","size":1020,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/valoricDe/apgdiff/pulls/4"},"html":{"href":"https://github.com/valoricDe/apgdiff/pull/4"},"issue":{"href":"https://api.github.com/repos/valoricDe/apgdiff/issues/4"},"comments":{"href":"https://api.github.com/repos/valoricDe/apgdiff/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/valoricDe/apgdiff/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/valoricDe/apgdiff/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/valoricDe/apgdiff/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/valoricDe/apgdiff/statuses/79bad94a1cb1bd2016c5ada48ff0062e1a443d3b"}},"author_association":"OWNER"}}
other: {"actor":{"display_login":"ruslantalpa"}}