{"action":"created","comment":{"url":"https://api.github.com/repos/opf/openproject/pulls/comments/26401237","id":26401237,"diff_hunk":"@@ -36,6 +36,14 @@ def all\n           @scms\n         end\n \n+        def configured\n+          @scms.select do |scm_name|\n+            klass = Kernel.const_get(\"Repository::#{scm_name}\")","path":"lib/redmine/scm/base.rb","position":6,"original_position":6,"commit_id":"4a7ca16e6b5057cb9f0c17c015dd65dacd8e0a03","original_commit_id":"4a7ca16e6b5057cb9f0c17c015dd65dacd8e0a03","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":"Useless assignment to variable - `klass`. Did you mean `lass`?","created_at":"2015-03-13T16:41:33Z","updated_at":"2015-03-13T16:41:33Z","html_url":"https://github.com/opf/openproject/pull/2696#discussion_r26401237","pull_request_url":"https://api.github.com/repos/opf/openproject/pulls/2696","_links":{"self":{"href":"https://api.github.com/repos/opf/openproject/pulls/comments/26401237"},"html":{"href":"https://github.com/opf/openproject/pull/2696#discussion_r26401237"},"pull_request":{"href":"https://api.github.com/repos/opf/openproject/pulls/2696"}}},"pull_request":{"url":"https://api.github.com/repos/opf/openproject/pulls/2696","id":31142190,"html_url":"https://github.com/opf/openproject/pull/2696","diff_url":"https://github.com/opf/openproject/pull/2696.diff","patch_url":"https://github.com/opf/openproject/pull/2696.patch","issue_url":"https://api.github.com/repos/opf/openproject/issues/2696","number":2696,"state":"open","locked":false,"title":"Hotfix/prevent filesystem scm path traversal","user":{"login":"ulferts","id":617519,"avatar_url":"https://avatars.githubusercontent.com/u/617519?v=3","gravatar_id":"","url":"https://api.github.com/users/ulferts","html_url":"https://github.com/ulferts","followers_url":"https://api.github.com/users/ulferts/followers","following_url":"https://api.github.com/users/ulferts/following{/other_user}","gists_url":"https://api.github.com/users/ulferts/gists{/gist_id}","starred_url":"https://api.github.com/users/ulferts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulferts/subscriptions","organizations_url":"https://api.github.com/users/ulferts/orgs","repos_url":"https://api.github.com/users/ulferts/repos","events_url":"https://api.github.com/users/ulferts/events{/privacy}","received_events_url":"https://api.github.com/users/ulferts/received_events","type":"User","site_admin":false},"body":"https://community.openproject.org/work_packages/19150","created_at":"2015-03-13T16:41:16Z","updated_at":"2015-03-13T16:41:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76d4576c456f388a08f78e2f0fb1ee287f01b8b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opf/openproject/pulls/2696/commits","review_comments_url":"https://api.github.com/repos/opf/openproject/pulls/2696/comments","review_comment_url":"https://api.github.com/repos/opf/openproject/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opf/openproject/issues/2696/comments","statuses_url":"https://api.github.com/repos/opf/openproject/statuses/4a7ca16e6b5057cb9f0c17c015dd65dacd8e0a03","head":{"label":"ulferts:hotfix/prevent_filesystem_scm_path_traversal","ref":"hotfix/prevent_filesystem_scm_path_traversal","sha":"4a7ca16e6b5057cb9f0c17c015dd65dacd8e0a03","user":{"login":"ulferts","id":617519,"avatar_url":"https://avatars.githubusercontent.com/u/617519?v=3","gravatar_id":"","url":"https://api.github.com/users/ulferts","html_url":"https://github.com/ulferts","followers_url":"https://api.github.com/users/ulferts/followers","following_url":"https://api.github.com/users/ulferts/following{/other_user}","gists_url":"https://api.github.com/users/ulferts/gists{/gist_id}","starred_url":"https://api.github.com/users/ulferts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulferts/subscriptions","organizations_url":"https://api.github.com/users/ulferts/orgs","repos_url":"https://api.github.com/users/ulferts/repos","events_url":"https://api.github.com/users/ulferts/events{/privacy}","received_events_url":"https://api.github.com/users/ulferts/received_events","type":"User","site_admin":false},"repo":{"id":31550602,"name":"openproject","full_name":"ulferts/openproject","owner":{"login":"ulferts","id":617519,"avatar_url":"https://avatars.githubusercontent.com/u/617519?v=3","gravatar_id":"","url":"https://api.github.com/users/ulferts","html_url":"https://github.com/ulferts","followers_url":"https://api.github.com/users/ulferts/followers","following_url":"https://api.github.com/users/ulferts/following{/other_user}","gists_url":"https://api.github.com/users/ulferts/gists{/gist_id}","starred_url":"https://api.github.com/users/ulferts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulferts/subscriptions","organizations_url":"https://api.github.com/users/ulferts/orgs","repos_url":"https://api.github.com/users/ulferts/repos","events_url":"https://api.github.com/users/ulferts/events{/privacy}","received_events_url":"https://api.github.com/users/ulferts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ulferts/openproject","description":"OpenProject is a web-based project management system built on Ruby on Rails","fork":true,"url":"https://api.github.com/repos/ulferts/openproject","forks_url":"https://api.github.com/repos/ulferts/openproject/forks","keys_url":"https://api.github.com/repos/ulferts/openproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ulferts/openproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ulferts/openproject/teams","hooks_url":"https://api.github.com/repos/ulferts/openproject/hooks","issue_events_url":"https://api.github.com/repos/ulferts/openproject/issues/events{/number}","events_url":"https://api.github.com/repos/ulferts/openproject/events","assignees_url":"https://api.github.com/repos/ulferts/openproject/assignees{/user}","branches_url":"https://api.github.com/repos/ulferts/openproject/branches{/branch}","tags_url":"https://api.github.com/repos/ulferts/openproject/tags","blobs_url":"https://api.github.com/repos/ulferts/openproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ulferts/openproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ulferts/openproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/ulferts/openproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ulferts/openproject/statuses/{sha}","languages_url":"https://api.github.com/repos/ulferts/openproject/languages","stargazers_url":"https://api.github.com/repos/ulferts/openproject/stargazers","contributors_url":"https://api.github.com/repos/ulferts/openproject/contributors","subscribers_url":"https://api.github.com/repos/ulferts/openproject/subscribers","subscription_url":"https://api.github.com/repos/ulferts/openproject/subscription","commits_url":"https://api.github.com/repos/ulferts/openproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/ulferts/openproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/ulferts/openproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/ulferts/openproject/issues/comments{/number}","contents_url":"https://api.github.com/repos/ulferts/openproject/contents/{+path}","compare_url":"https://api.github.com/repos/ulferts/openproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ulferts/openproject/merges","archive_url":"https://api.github.com/repos/ulferts/openproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ulferts/openproject/downloads","issues_url":"https://api.github.com/repos/ulferts/openproject/issues{/number}","pulls_url":"https://api.github.com/repos/ulferts/openproject/pulls{/number}","milestones_url":"https://api.github.com/repos/ulferts/openproject/milestones{/number}","notifications_url":"https://api.github.com/repos/ulferts/openproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ulferts/openproject/labels{/name}","releases_url":"https://api.github.com/repos/ulferts/openproject/releases{/id}","created_at":"2015-03-02T16:41:36Z","updated_at":"2015-03-10T13:57:29Z","pushed_at":"2015-03-13T16:36:55Z","git_url":"git://github.com/ulferts/openproject.git","ssh_url":"git@github.com:ulferts/openproject.git","clone_url":"https://github.com/ulferts/openproject.git","svn_url":"https://github.com/ulferts/openproject","homepage":"https://www.openproject.org","size":61983,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"dev"}},"base":{"label":"opf:release/4.0","ref":"release/4.0","sha":"5091286a12f81e95ba6921ec3004778eb2c3d7bd","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":6899875,"name":"openproject","full_name":"opf/openproject","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","description":"OpenProject is a web-based project management system built on Ruby on Rails","fork":false,"url":"https://api.github.com/repos/opf/openproject","forks_url":"https://api.github.com/repos/opf/openproject/forks","keys_url":"https://api.github.com/repos/opf/openproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opf/openproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opf/openproject/teams","hooks_url":"https://api.github.com/repos/opf/openproject/hooks","issue_events_url":"https://api.github.com/repos/opf/openproject/issues/events{/number}","events_url":"https://api.github.com/repos/opf/openproject/events","assignees_url":"https://api.github.com/repos/opf/openproject/assignees{/user}","branches_url":"https://api.github.com/repos/opf/openproject/branches{/branch}","tags_url":"https://api.github.com/repos/opf/openproject/tags","blobs_url":"https://api.github.com/repos/opf/openproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opf/openproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opf/openproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/opf/openproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opf/openproject/statuses/{sha}","languages_url":"https://api.github.com/repos/opf/openproject/languages","stargazers_url":"https://api.github.com/repos/opf/openproject/stargazers","contributors_url":"https://api.github.com/repos/opf/openproject/contributors","subscribers_url":"https://api.github.com/repos/opf/openproject/subscribers","subscription_url":"https://api.github.com/repos/opf/openproject/subscription","commits_url":"https://api.github.com/repos/opf/openproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/opf/openproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/opf/openproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/opf/openproject/issues/comments{/number}","contents_url":"https://api.github.com/repos/opf/openproject/contents/{+path}","compare_url":"https://api.github.com/repos/opf/openproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opf/openproject/merges","archive_url":"https://api.github.com/repos/opf/openproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opf/openproject/downloads","issues_url":"https://api.github.com/repos/opf/openproject/issues{/number}","pulls_url":"https://api.github.com/repos/opf/openproject/pulls{/number}","milestones_url":"https://api.github.com/repos/opf/openproject/milestones{/number}","notifications_url":"https://api.github.com/repos/opf/openproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opf/openproject/labels{/name}","releases_url":"https://api.github.com/repos/opf/openproject/releases{/id}","created_at":"2012-11-28T09:59:11Z","updated_at":"2015-03-13T15:21:26Z","pushed_at":"2015-03-13T15:21:26Z","git_url":"git://github.com/opf/openproject.git","ssh_url":"git@github.com:opf/openproject.git","clone_url":"https://github.com/opf/openproject.git","svn_url":"https://github.com/opf/openproject","homepage":"https://www.openproject.org","size":187596,"stargazers_count":541,"watchers_count":541,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":240,"mirror_url":null,"open_issues_count":64,"forks":240,"open_issues":64,"watchers":541,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/opf/openproject/pulls/2696"},"html":{"href":"https://github.com/opf/openproject/pull/2696"},"issue":{"href":"https://api.github.com/repos/opf/openproject/issues/2696"},"comments":{"href":"https://api.github.com/repos/opf/openproject/issues/2696/comments"},"review_comments":{"href":"https://api.github.com/repos/opf/openproject/pulls/2696/comments"},"review_comment":{"href":"https://api.github.com/repos/opf/openproject/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opf/openproject/pulls/2696/commits"},"statuses":{"href":"https://api.github.com/repos/opf/openproject/statuses/4a7ca16e6b5057cb9f0c17c015dd65dacd8e0a03"}}}}