{"action":"created","comment":{"url":"https://api.github.com/repos/idagds/LicenseFinder/pulls/comments/81674242","pull_request_review_id":2637179,"id":81674242,"diff_hunk":"@@ -31,7 +31,17 @@ def approved?(name, version=nil)\n     end\n \n     def whitelisted?(lic)\n-      @whitelisted.include?(lic)\n+      @whitelisted.include?(lic) || whitelist_regex_match?(lic)\n+    end\n+\n+    def whitelist_regex_match?(lic)","path":"lib/license_finder/decisions.rb","position":8,"original_position":8,"commit_id":"b9fa56fa1a69fa750bdc70c69ba1eb0d74657b86","original_commit_id":"b9fa56fa1a69fa750bdc70c69ba1eb0d74657b86","user":{"login":"lawliet89","id":983101,"avatar_url":"https://avatars.githubusercontent.com/u/983101?v=3","gravatar_id":"","url":"https://api.github.com/users/lawliet89","html_url":"https://github.com/lawliet89","followers_url":"https://api.github.com/users/lawliet89/followers","following_url":"https://api.github.com/users/lawliet89/following{/other_user}","gists_url":"https://api.github.com/users/lawliet89/gists{/gist_id}","starred_url":"https://api.github.com/users/lawliet89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawliet89/subscriptions","organizations_url":"https://api.github.com/users/lawliet89/orgs","repos_url":"https://api.github.com/users/lawliet89/repos","events_url":"https://api.github.com/users/lawliet89/events{/privacy}","received_events_url":"https://api.github.com/users/lawliet89/received_events","type":"User","site_admin":false},"body":"```ruby\r\ndef whitelist_regex_match?(lic)\r\n  @whitelisted.each do |l|\r\n    if lic.name.to_s =~ RegexParser.parse(l.name)\r\n      return true\r\n    end\r\n  end\r\n  false\r\nend\r\n```","created_at":"2016-10-04T01:42:32Z","updated_at":"2016-10-04T01:49:19Z","html_url":"https://github.com/idagds/LicenseFinder/pull/2#discussion_r81674242","pull_request_url":"https://api.github.com/repos/idagds/LicenseFinder/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/idagds/LicenseFinder/pulls/comments/81674242"},"html":{"href":"https://github.com/idagds/LicenseFinder/pull/2#discussion_r81674242"},"pull_request":{"href":"https://api.github.com/repos/idagds/LicenseFinder/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/idagds/LicenseFinder/pulls/2","id":87696312,"html_url":"https://github.com/idagds/LicenseFinder/pull/2","diff_url":"https://github.com/idagds/LicenseFinder/pull/2.diff","patch_url":"https://github.com/idagds/LicenseFinder/pull/2.patch","issue_url":"https://api.github.com/repos/idagds/LicenseFinder/issues/2","number":2,"state":"open","locked":false,"title":"Add regex matching for whitelist","user":{"login":"ylhlh","id":13707713,"avatar_url":"https://avatars.githubusercontent.com/u/13707713?v=3","gravatar_id":"","url":"https://api.github.com/users/ylhlh","html_url":"https://github.com/ylhlh","followers_url":"https://api.github.com/users/ylhlh/followers","following_url":"https://api.github.com/users/ylhlh/following{/other_user}","gists_url":"https://api.github.com/users/ylhlh/gists{/gist_id}","starred_url":"https://api.github.com/users/ylhlh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ylhlh/subscriptions","organizations_url":"https://api.github.com/users/ylhlh/orgs","repos_url":"https://api.github.com/users/ylhlh/repos","events_url":"https://api.github.com/users/ylhlh/events{/privacy}","received_events_url":"https://api.github.com/users/ylhlh/received_events","type":"User","site_admin":false},"body":"Fixes #1 ","created_at":"2016-10-03T10:50:18Z","updated_at":"2016-10-04T01:49:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a43c64920d2e1df53103091502c1a46681186c96","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/idagds/LicenseFinder/pulls/2/commits","review_comments_url":"https://api.github.com/repos/idagds/LicenseFinder/pulls/2/comments","review_comment_url":"https://api.github.com/repos/idagds/LicenseFinder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/idagds/LicenseFinder/issues/2/comments","statuses_url":"https://api.github.com/repos/idagds/LicenseFinder/statuses/b9fa56fa1a69fa750bdc70c69ba1eb0d74657b86","head":{"label":"ylhlh:add-regex-matching","ref":"add-regex-matching","sha":"b9fa56fa1a69fa750bdc70c69ba1eb0d74657b86","user":{"login":"ylhlh","id":13707713,"avatar_url":"https://avatars.githubusercontent.com/u/13707713?v=3","gravatar_id":"","url":"https://api.github.com/users/ylhlh","html_url":"https://github.com/ylhlh","followers_url":"https://api.github.com/users/ylhlh/followers","following_url":"https://api.github.com/users/ylhlh/following{/other_user}","gists_url":"https://api.github.com/users/ylhlh/gists{/gist_id}","starred_url":"https://api.github.com/users/ylhlh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ylhlh/subscriptions","organizations_url":"https://api.github.com/users/ylhlh/orgs","repos_url":"https://api.github.com/users/ylhlh/repos","events_url":"https://api.github.com/users/ylhlh/events{/privacy}","received_events_url":"https://api.github.com/users/ylhlh/received_events","type":"User","site_admin":false},"repo":{"id":69805586,"name":"LicenseFinder","full_name":"ylhlh/LicenseFinder","owner":{"login":"ylhlh","id":13707713,"avatar_url":"https://avatars.githubusercontent.com/u/13707713?v=3","gravatar_id":"","url":"https://api.github.com/users/ylhlh","html_url":"https://github.com/ylhlh","followers_url":"https://api.github.com/users/ylhlh/followers","following_url":"https://api.github.com/users/ylhlh/following{/other_user}","gists_url":"https://api.github.com/users/ylhlh/gists{/gist_id}","starred_url":"https://api.github.com/users/ylhlh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ylhlh/subscriptions","organizations_url":"https://api.github.com/users/ylhlh/orgs","repos_url":"https://api.github.com/users/ylhlh/repos","events_url":"https://api.github.com/users/ylhlh/events{/privacy}","received_events_url":"https://api.github.com/users/ylhlh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ylhlh/LicenseFinder","description":"Find licenses for your project's dependencies.","fork":true,"url":"https://api.github.com/repos/ylhlh/LicenseFinder","forks_url":"https://api.github.com/repos/ylhlh/LicenseFinder/forks","keys_url":"https://api.github.com/repos/ylhlh/LicenseFinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ylhlh/LicenseFinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ylhlh/LicenseFinder/teams","hooks_url":"https://api.github.com/repos/ylhlh/LicenseFinder/hooks","issue_events_url":"https://api.github.com/repos/ylhlh/LicenseFinder/issues/events{/number}","events_url":"https://api.github.com/repos/ylhlh/LicenseFinder/events","assignees_url":"https://api.github.com/repos/ylhlh/LicenseFinder/assignees{/user}","branches_url":"https://api.github.com/repos/ylhlh/LicenseFinder/branches{/branch}","tags_url":"https://api.github.com/repos/ylhlh/LicenseFinder/tags","blobs_url":"https://api.github.com/repos/ylhlh/LicenseFinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ylhlh/LicenseFinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ylhlh/LicenseFinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/ylhlh/LicenseFinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ylhlh/LicenseFinder/statuses/{sha}","languages_url":"https://api.github.com/repos/ylhlh/LicenseFinder/languages","stargazers_url":"https://api.github.com/repos/ylhlh/LicenseFinder/stargazers","contributors_url":"https://api.github.com/repos/ylhlh/LicenseFinder/contributors","subscribers_url":"https://api.github.com/repos/ylhlh/LicenseFinder/subscribers","subscription_url":"https://api.github.com/repos/ylhlh/LicenseFinder/subscription","commits_url":"https://api.github.com/repos/ylhlh/LicenseFinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/ylhlh/LicenseFinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/ylhlh/LicenseFinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/ylhlh/LicenseFinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/ylhlh/LicenseFinder/contents/{+path}","compare_url":"https://api.github.com/repos/ylhlh/LicenseFinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ylhlh/LicenseFinder/merges","archive_url":"https://api.github.com/repos/ylhlh/LicenseFinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ylhlh/LicenseFinder/downloads","issues_url":"https://api.github.com/repos/ylhlh/LicenseFinder/issues{/number}","pulls_url":"https://api.github.com/repos/ylhlh/LicenseFinder/pulls{/number}","milestones_url":"https://api.github.com/repos/ylhlh/LicenseFinder/milestones{/number}","notifications_url":"https://api.github.com/repos/ylhlh/LicenseFinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ylhlh/LicenseFinder/labels{/name}","releases_url":"https://api.github.com/repos/ylhlh/LicenseFinder/releases{/id}","deployments_url":"https://api.github.com/repos/ylhlh/LicenseFinder/deployments","created_at":"2016-10-02T15:42:16Z","updated_at":"2016-10-02T15:42:17Z","pushed_at":"2016-10-03T10:46:46Z","git_url":"git://github.com/ylhlh/LicenseFinder.git","ssh_url":"git@github.com:ylhlh/LicenseFinder.git","clone_url":"https://github.com/ylhlh/LicenseFinder.git","svn_url":"https://github.com/ylhlh/LicenseFinder","homepage":"","size":2485,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"idagds:master","ref":"master","sha":"a02ecbbd95c27e23077a5ce0282b17b2b346f4d7","user":{"login":"idagds","id":12439141,"avatar_url":"https://avatars.githubusercontent.com/u/12439141?v=3","gravatar_id":"","url":"https://api.github.com/users/idagds","html_url":"https://github.com/idagds","followers_url":"https://api.github.com/users/idagds/followers","following_url":"https://api.github.com/users/idagds/following{/other_user}","gists_url":"https://api.github.com/users/idagds/gists{/gist_id}","starred_url":"https://api.github.com/users/idagds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idagds/subscriptions","organizations_url":"https://api.github.com/users/idagds/orgs","repos_url":"https://api.github.com/users/idagds/repos","events_url":"https://api.github.com/users/idagds/events{/privacy}","received_events_url":"https://api.github.com/users/idagds/received_events","type":"Organization","site_admin":false},"repo":{"id":68272400,"name":"LicenseFinder","full_name":"idagds/LicenseFinder","owner":{"login":"idagds","id":12439141,"avatar_url":"https://avatars.githubusercontent.com/u/12439141?v=3","gravatar_id":"","url":"https://api.github.com/users/idagds","html_url":"https://github.com/idagds","followers_url":"https://api.github.com/users/idagds/followers","following_url":"https://api.github.com/users/idagds/following{/other_user}","gists_url":"https://api.github.com/users/idagds/gists{/gist_id}","starred_url":"https://api.github.com/users/idagds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idagds/subscriptions","organizations_url":"https://api.github.com/users/idagds/orgs","repos_url":"https://api.github.com/users/idagds/repos","events_url":"https://api.github.com/users/idagds/events{/privacy}","received_events_url":"https://api.github.com/users/idagds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/idagds/LicenseFinder","description":"Find licenses for your project's dependencies.","fork":true,"url":"https://api.github.com/repos/idagds/LicenseFinder","forks_url":"https://api.github.com/repos/idagds/LicenseFinder/forks","keys_url":"https://api.github.com/repos/idagds/LicenseFinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idagds/LicenseFinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idagds/LicenseFinder/teams","hooks_url":"https://api.github.com/repos/idagds/LicenseFinder/hooks","issue_events_url":"https://api.github.com/repos/idagds/LicenseFinder/issues/events{/number}","events_url":"https://api.github.com/repos/idagds/LicenseFinder/events","assignees_url":"https://api.github.com/repos/idagds/LicenseFinder/assignees{/user}","branches_url":"https://api.github.com/repos/idagds/LicenseFinder/branches{/branch}","tags_url":"https://api.github.com/repos/idagds/LicenseFinder/tags","blobs_url":"https://api.github.com/repos/idagds/LicenseFinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idagds/LicenseFinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idagds/LicenseFinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/idagds/LicenseFinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idagds/LicenseFinder/statuses/{sha}","languages_url":"https://api.github.com/repos/idagds/LicenseFinder/languages","stargazers_url":"https://api.github.com/repos/idagds/LicenseFinder/stargazers","contributors_url":"https://api.github.com/repos/idagds/LicenseFinder/contributors","subscribers_url":"https://api.github.com/repos/idagds/LicenseFinder/subscribers","subscription_url":"https://api.github.com/repos/idagds/LicenseFinder/subscription","commits_url":"https://api.github.com/repos/idagds/LicenseFinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/idagds/LicenseFinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/idagds/LicenseFinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/idagds/LicenseFinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/idagds/LicenseFinder/contents/{+path}","compare_url":"https://api.github.com/repos/idagds/LicenseFinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idagds/LicenseFinder/merges","archive_url":"https://api.github.com/repos/idagds/LicenseFinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idagds/LicenseFinder/downloads","issues_url":"https://api.github.com/repos/idagds/LicenseFinder/issues{/number}","pulls_url":"https://api.github.com/repos/idagds/LicenseFinder/pulls{/number}","milestones_url":"https://api.github.com/repos/idagds/LicenseFinder/milestones{/number}","notifications_url":"https://api.github.com/repos/idagds/LicenseFinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idagds/LicenseFinder/labels{/name}","releases_url":"https://api.github.com/repos/idagds/LicenseFinder/releases{/id}","deployments_url":"https://api.github.com/repos/idagds/LicenseFinder/deployments","created_at":"2016-09-15T06:46:11Z","updated_at":"2016-09-28T09:26:53Z","pushed_at":"2016-10-03T10:50:18Z","git_url":"git://github.com/idagds/LicenseFinder.git","ssh_url":"git@github.com:idagds/LicenseFinder.git","clone_url":"https://github.com/idagds/LicenseFinder.git","svn_url":"https://github.com/idagds/LicenseFinder","homepage":"","size":2613,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/idagds/LicenseFinder/pulls/2"},"html":{"href":"https://github.com/idagds/LicenseFinder/pull/2"},"issue":{"href":"https://api.github.com/repos/idagds/LicenseFinder/issues/2"},"comments":{"href":"https://api.github.com/repos/idagds/LicenseFinder/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/idagds/LicenseFinder/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/idagds/LicenseFinder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/idagds/LicenseFinder/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/idagds/LicenseFinder/statuses/b9fa56fa1a69fa750bdc70c69ba1eb0d74657b86"}}}}
{"actor":{"display_login":"lawliet89"}}