{"action":"created","comment":{"url":"https://api.github.com/repos/opf/openproject-documents/pulls/comments/43555424","id":43555424,"diff_hunk":"@@ -36,8 +36,14 @@ def self.included(base)\n       base.class_eval do\n \n         def parse_redmine_links_with_documents(text, project, obj, attr, only_path, options)\n-          text.gsub!(/([\\s\\(,\\-\\[\\>]|^)(!)?(([a-z0-9\\-_]+):)?(document)((#+|r)(\\d+)|(:)([^\"\\s<>][^\\s<>]*?|\"[^\"]+?\"))(?=(?=[[:punct:]]\\W)|,|\\s|\\]|<|$)/) do |m|\n-            leading, esc, project_prefix, project_identifier, prefix, sep, identifier = $1, $2, $3, $4, $5, $7 || $9, $8 || $10\n+          text.gsub!(/([\\s\\(,\\-\\[\\>]|^)(!)?(([a-z0-9\\-_]+):)?(document)((#+|r)(\\d+)|(:)([^\"\\s<>][^\\s<>]*?|\"[^\"]+?\"))(?=(?=[[:punct:]]\\W)|,|\\s|\\]|<|$)/) do |_m|","path":"lib/open_project/documents/patches/text_formatting_patch.rb","position":6,"original_position":6,"commit_id":"463a115d6ccd79ae4bf92da3424b3c2f9ec6ea2d","original_commit_id":"463a115d6ccd79ae4bf92da3424b3c2f9ec6ea2d","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [159/120]","created_at":"2015-10-30T21:40:16Z","updated_at":"2015-10-30T21:40:16Z","html_url":"https://github.com/opf/openproject-documents/pull/40#discussion_r43555424","pull_request_url":"https://api.github.com/repos/opf/openproject-documents/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/opf/openproject-documents/pulls/comments/43555424"},"html":{"href":"https://github.com/opf/openproject-documents/pull/40#discussion_r43555424"},"pull_request":{"href":"https://api.github.com/repos/opf/openproject-documents/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/opf/openproject-documents/pulls/40","id":49325725,"html_url":"https://github.com/opf/openproject-documents/pull/40","diff_url":"https://github.com/opf/openproject-documents/pull/40.diff","patch_url":"https://github.com/opf/openproject-documents/pull/40.patch","issue_url":"https://api.github.com/repos/opf/openproject-documents/issues/40","number":40,"state":"open","locked":false,"title":"Rubocop issues","user":{"login":"basiszwo","id":24071,"avatar_url":"https://avatars.githubusercontent.com/u/24071?v=3","gravatar_id":"","url":"https://api.github.com/users/basiszwo","html_url":"https://github.com/basiszwo","followers_url":"https://api.github.com/users/basiszwo/followers","following_url":"https://api.github.com/users/basiszwo/following{/other_user}","gists_url":"https://api.github.com/users/basiszwo/gists{/gist_id}","starred_url":"https://api.github.com/users/basiszwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basiszwo/subscriptions","organizations_url":"https://api.github.com/users/basiszwo/orgs","repos_url":"https://api.github.com/users/basiszwo/repos","events_url":"https://api.github.com/users/basiszwo/events{/privacy}","received_events_url":"https://api.github.com/users/basiszwo/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-10-30T21:40:06Z","updated_at":"2015-10-30T21:40:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e8191880ba396baf3014e1099dd96d4aabf596a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opf/openproject-documents/pulls/40/commits","review_comments_url":"https://api.github.com/repos/opf/openproject-documents/pulls/40/comments","review_comment_url":"https://api.github.com/repos/opf/openproject-documents/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opf/openproject-documents/issues/40/comments","statuses_url":"https://api.github.com/repos/opf/openproject-documents/statuses/463a115d6ccd79ae4bf92da3424b3c2f9ec6ea2d","head":{"label":"opf:rubocop","ref":"rubocop","sha":"463a115d6ccd79ae4bf92da3424b3c2f9ec6ea2d","user":{"login":"opf","id":1756674,"avatar_url":"https://avatars.githubusercontent.com/u/1756674?v=3","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"repo":{"id":11951042,"name":"openproject-documents","full_name":"opf/openproject-documents","owner":{"login":"opf","id":1756674,"avatar_url":"https://avatars.githubusercontent.com/u/1756674?v=3","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opf/openproject-documents","description":"","fork":false,"url":"https://api.github.com/repos/opf/openproject-documents","forks_url":"https://api.github.com/repos/opf/openproject-documents/forks","keys_url":"https://api.github.com/repos/opf/openproject-documents/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opf/openproject-documents/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opf/openproject-documents/teams","hooks_url":"https://api.github.com/repos/opf/openproject-documents/hooks","issue_events_url":"https://api.github.com/repos/opf/openproject-documents/issues/events{/number}","events_url":"https://api.github.com/repos/opf/openproject-documents/events","assignees_url":"https://api.github.com/repos/opf/openproject-documents/assignees{/user}","branches_url":"https://api.github.com/repos/opf/openproject-documents/branches{/branch}","tags_url":"https://api.github.com/repos/opf/openproject-documents/tags","blobs_url":"https://api.github.com/repos/opf/openproject-documents/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opf/openproject-documents/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opf/openproject-documents/git/refs{/sha}","trees_url":"https://api.github.com/repos/opf/openproject-documents/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opf/openproject-documents/statuses/{sha}","languages_url":"https://api.github.com/repos/opf/openproject-documents/languages","stargazers_url":"https://api.github.com/repos/opf/openproject-documents/stargazers","contributors_url":"https://api.github.com/repos/opf/openproject-documents/contributors","subscribers_url":"https://api.github.com/repos/opf/openproject-documents/subscribers","subscription_url":"https://api.github.com/repos/opf/openproject-documents/subscription","commits_url":"https://api.github.com/repos/opf/openproject-documents/commits{/sha}","git_commits_url":"https://api.github.com/repos/opf/openproject-documents/git/commits{/sha}","comments_url":"https://api.github.com/repos/opf/openproject-documents/comments{/number}","issue_comment_url":"https://api.github.com/repos/opf/openproject-documents/issues/comments{/number}","contents_url":"https://api.github.com/repos/opf/openproject-documents/contents/{+path}","compare_url":"https://api.github.com/repos/opf/openproject-documents/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opf/openproject-documents/merges","archive_url":"https://api.github.com/repos/opf/openproject-documents/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opf/openproject-documents/downloads","issues_url":"https://api.github.com/repos/opf/openproject-documents/issues{/number}","pulls_url":"https://api.github.com/repos/opf/openproject-documents/pulls{/number}","milestones_url":"https://api.github.com/repos/opf/openproject-documents/milestones{/number}","notifications_url":"https://api.github.com/repos/opf/openproject-documents/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opf/openproject-documents/labels{/name}","releases_url":"https://api.github.com/repos/opf/openproject-documents/releases{/id}","created_at":"2013-08-07T13:51:14Z","updated_at":"2015-09-15T00:07:43Z","pushed_at":"2015-10-30T21:40:06Z","git_url":"git://github.com/opf/openproject-documents.git","ssh_url":"git@github.com:opf/openproject-documents.git","clone_url":"https://github.com/opf/openproject-documents.git","svn_url":"https://github.com/opf/openproject-documents","homepage":null,"size":948,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":4,"default_branch":"dev"}},"base":{"label":"opf:dev","ref":"dev","sha":"06dffd7ee1a120200940c3031650655232767f06","user":{"login":"opf","id":1756674,"avatar_url":"https://avatars.githubusercontent.com/u/1756674?v=3","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"repo":{"id":11951042,"name":"openproject-documents","full_name":"opf/openproject-documents","owner":{"login":"opf","id":1756674,"avatar_url":"https://avatars.githubusercontent.com/u/1756674?v=3","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opf/openproject-documents","description":"","fork":false,"url":"https://api.github.com/repos/opf/openproject-documents","forks_url":"https://api.github.com/repos/opf/openproject-documents/forks","keys_url":"https://api.github.com/repos/opf/openproject-documents/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opf/openproject-documents/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opf/openproject-documents/teams","hooks_url":"https://api.github.com/repos/opf/openproject-documents/hooks","issue_events_url":"https://api.github.com/repos/opf/openproject-documents/issues/events{/number}","events_url":"https://api.github.com/repos/opf/openproject-documents/events","assignees_url":"https://api.github.com/repos/opf/openproject-documents/assignees{/user}","branches_url":"https://api.github.com/repos/opf/openproject-documents/branches{/branch}","tags_url":"https://api.github.com/repos/opf/openproject-documents/tags","blobs_url":"https://api.github.com/repos/opf/openproject-documents/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opf/openproject-documents/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opf/openproject-documents/git/refs{/sha}","trees_url":"https://api.github.com/repos/opf/openproject-documents/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opf/openproject-documents/statuses/{sha}","languages_url":"https://api.github.com/repos/opf/openproject-documents/languages","stargazers_url":"https://api.github.com/repos/opf/openproject-documents/stargazers","contributors_url":"https://api.github.com/repos/opf/openproject-documents/contributors","subscribers_url":"https://api.github.com/repos/opf/openproject-documents/subscribers","subscription_url":"https://api.github.com/repos/opf/openproject-documents/subscription","commits_url":"https://api.github.com/repos/opf/openproject-documents/commits{/sha}","git_commits_url":"https://api.github.com/repos/opf/openproject-documents/git/commits{/sha}","comments_url":"https://api.github.com/repos/opf/openproject-documents/comments{/number}","issue_comment_url":"https://api.github.com/repos/opf/openproject-documents/issues/comments{/number}","contents_url":"https://api.github.com/repos/opf/openproject-documents/contents/{+path}","compare_url":"https://api.github.com/repos/opf/openproject-documents/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opf/openproject-documents/merges","archive_url":"https://api.github.com/repos/opf/openproject-documents/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opf/openproject-documents/downloads","issues_url":"https://api.github.com/repos/opf/openproject-documents/issues{/number}","pulls_url":"https://api.github.com/repos/opf/openproject-documents/pulls{/number}","milestones_url":"https://api.github.com/repos/opf/openproject-documents/milestones{/number}","notifications_url":"https://api.github.com/repos/opf/openproject-documents/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opf/openproject-documents/labels{/name}","releases_url":"https://api.github.com/repos/opf/openproject-documents/releases{/id}","created_at":"2013-08-07T13:51:14Z","updated_at":"2015-09-15T00:07:43Z","pushed_at":"2015-10-30T21:40:06Z","git_url":"git://github.com/opf/openproject-documents.git","ssh_url":"git@github.com:opf/openproject-documents.git","clone_url":"https://github.com/opf/openproject-documents.git","svn_url":"https://github.com/opf/openproject-documents","homepage":null,"size":948,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":4,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/opf/openproject-documents/pulls/40"},"html":{"href":"https://github.com/opf/openproject-documents/pull/40"},"issue":{"href":"https://api.github.com/repos/opf/openproject-documents/issues/40"},"comments":{"href":"https://api.github.com/repos/opf/openproject-documents/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/opf/openproject-documents/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/opf/openproject-documents/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opf/openproject-documents/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/opf/openproject-documents/statuses/463a115d6ccd79ae4bf92da3424b3c2f9ec6ea2d"}}}}