{"action":"created","comment":{"url":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/comments/237392835","pull_request_review_id":179676067,"id":237392835,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzM5MjgzNQ==","diff_hunk":"@@ -0,0 +1,49 @@\n+const { createFilter } = require('rollup-pluginutils');\n+const fs = require('fs');\n+const MagicString = require('magic-string');\n+const path = require('path');\n+\n+module.exports = (opts = {}) => {\n+  const include = opts.include || '**/*.less';\n+  const { exclude } = opts;\n+  const filter = createFilter(include, exclude);\n+  const filtering = opts.filtering !== false;\n+  const paths = opts.paths || ['./node_modules'];\n+  return {\n+    name: 'less-import',\n+    transform(code, id) {\n+      if (filtering && !filter(id)) return null;\n+      const magicString = new MagicString(code);\n+      const reg = /(@import\\s*['\"]+)(~[^'\"]+)(['\"]+\\s*;)/g;\n+      let match = reg.exec(code);\n+\n+      while (match) {","path":"src/plugins/less-import.js","position":20,"original_position":20,"commit_id":"2dcb3e3bbcefda153ddd31820f78f3f6ef827a1b","original_commit_id":"2dcb3e3bbcefda153ddd31820f78f3f6ef827a1b","user":{"login":"FredericEspiau","id":7319147,"node_id":"MDQ6VXNlcjczMTkxNDc=","avatar_url":"https://avatars1.githubusercontent.com/u/7319147?v=4","gravatar_id":"","url":"https://api.github.com/users/FredericEspiau","html_url":"https://github.com/FredericEspiau","followers_url":"https://api.github.com/users/FredericEspiau/followers","following_url":"https://api.github.com/users/FredericEspiau/following{/other_user}","gists_url":"https://api.github.com/users/FredericEspiau/gists{/gist_id}","starred_url":"https://api.github.com/users/FredericEspiau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredericEspiau/subscriptions","organizations_url":"https://api.github.com/users/FredericEspiau/orgs","repos_url":"https://api.github.com/users/FredericEspiau/repos","events_url":"https://api.github.com/users/FredericEspiau/events{/privacy}","received_events_url":"https://api.github.com/users/FredericEspiau/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n      do {\r\n        match = reg.exec(code);\r\n        ...\r\n      } while (match);\r\n```","created_at":"2018-11-29T08:40:05Z","updated_at":"2018-11-29T08:41:16Z","html_url":"https://github.com/ovh-ux/component-rollup-config/pull/29#discussion_r237392835","pull_request_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/29","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/comments/237392835"},"html":{"href":"https://github.com/ovh-ux/component-rollup-config/pull/29#discussion_r237392835"},"pull_request":{"href":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/29","id":234348137,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0MzQ4MTM3","html_url":"https://github.com/ovh-ux/component-rollup-config/pull/29","diff_url":"https://github.com/ovh-ux/component-rollup-config/pull/29.diff","patch_url":"https://github.com/ovh-ux/component-rollup-config/pull/29.patch","issue_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/issues/29","number":29,"state":"open","locked":false,"title":"feat(plugins): add less import plugin","user":{"login":"frenautvh","id":30069190,"node_id":"MDQ6VXNlcjMwMDY5MTkw","avatar_url":"https://avatars1.githubusercontent.com/u/30069190?v=4","gravatar_id":"","url":"https://api.github.com/users/frenautvh","html_url":"https://github.com/frenautvh","followers_url":"https://api.github.com/users/frenautvh/followers","following_url":"https://api.github.com/users/frenautvh/following{/other_user}","gists_url":"https://api.github.com/users/frenautvh/gists{/gist_id}","starred_url":"https://api.github.com/users/frenautvh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenautvh/subscriptions","organizations_url":"https://api.github.com/users/frenautvh/orgs","repos_url":"https://api.github.com/users/frenautvh/repos","events_url":"https://api.github.com/users/frenautvh/events{/privacy}","received_events_url":"https://api.github.com/users/frenautvh/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-28T16:44:39Z","updated_at":"2018-11-29T08:41:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc099cc56a572cac40a910aef068d06b62349ceb","assignee":null,"assignees":[],"requested_reviewers":[{"login":"cbourgois","id":56223,"node_id":"MDQ6VXNlcjU2MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/56223?v=4","gravatar_id":"","url":"https://api.github.com/users/cbourgois","html_url":"https://github.com/cbourgois","followers_url":"https://api.github.com/users/cbourgois/followers","following_url":"https://api.github.com/users/cbourgois/following{/other_user}","gists_url":"https://api.github.com/users/cbourgois/gists{/gist_id}","starred_url":"https://api.github.com/users/cbourgois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbourgois/subscriptions","organizations_url":"https://api.github.com/users/cbourgois/orgs","repos_url":"https://api.github.com/users/cbourgois/repos","events_url":"https://api.github.com/users/cbourgois/events{/privacy}","received_events_url":"https://api.github.com/users/cbourgois/received_events","type":"User","site_admin":false},{"login":"antleblanc","id":428384,"node_id":"MDQ6VXNlcjQyODM4NA==","avatar_url":"https://avatars2.githubusercontent.com/u/428384?v=4","gravatar_id":"","url":"https://api.github.com/users/antleblanc","html_url":"https://github.com/antleblanc","followers_url":"https://api.github.com/users/antleblanc/followers","following_url":"https://api.github.com/users/antleblanc/following{/other_user}","gists_url":"https://api.github.com/users/antleblanc/gists{/gist_id}","starred_url":"https://api.github.com/users/antleblanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antleblanc/subscriptions","organizations_url":"https://api.github.com/users/antleblanc/orgs","repos_url":"https://api.github.com/users/antleblanc/repos","events_url":"https://api.github.com/users/antleblanc/events{/privacy}","received_events_url":"https://api.github.com/users/antleblanc/received_events","type":"User","site_admin":false},{"login":"jleveugle","id":1357733,"node_id":"MDQ6VXNlcjEzNTc3MzM=","avatar_url":"https://avatars2.githubusercontent.com/u/1357733?v=4","gravatar_id":"","url":"https://api.github.com/users/jleveugle","html_url":"https://github.com/jleveugle","followers_url":"https://api.github.com/users/jleveugle/followers","following_url":"https://api.github.com/users/jleveugle/following{/other_user}","gists_url":"https://api.github.com/users/jleveugle/gists{/gist_id}","starred_url":"https://api.github.com/users/jleveugle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jleveugle/subscriptions","organizations_url":"https://api.github.com/users/jleveugle/orgs","repos_url":"https://api.github.com/users/jleveugle/repos","events_url":"https://api.github.com/users/jleveugle/events{/privacy}","received_events_url":"https://api.github.com/users/jleveugle/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/29/commits","review_comments_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/29/comments","review_comment_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/issues/29/comments","statuses_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/statuses/2dcb3e3bbcefda153ddd31820f78f3f6ef827a1b","head":{"label":"ovh-ux:feat/less-imports","ref":"feat/less-imports","sha":"2dcb3e3bbcefda153ddd31820f78f3f6ef827a1b","user":{"login":"ovh-ux","id":26575234,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NTc1MjM0","avatar_url":"https://avatars2.githubusercontent.com/u/26575234?v=4","gravatar_id":"","url":"https://api.github.com/users/ovh-ux","html_url":"https://github.com/ovh-ux","followers_url":"https://api.github.com/users/ovh-ux/followers","following_url":"https://api.github.com/users/ovh-ux/following{/other_user}","gists_url":"https://api.github.com/users/ovh-ux/gists{/gist_id}","starred_url":"https://api.github.com/users/ovh-ux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovh-ux/subscriptions","organizations_url":"https://api.github.com/users/ovh-ux/orgs","repos_url":"https://api.github.com/users/ovh-ux/repos","events_url":"https://api.github.com/users/ovh-ux/events{/privacy}","received_events_url":"https://api.github.com/users/ovh-ux/received_events","type":"Organization","site_admin":false},"repo":{"id":153780540,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM3ODA1NDA=","name":"component-rollup-config","full_name":"ovh-ux/component-rollup-config","private":false,"owner":{"login":"ovh-ux","id":26575234,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NTc1MjM0","avatar_url":"https://avatars2.githubusercontent.com/u/26575234?v=4","gravatar_id":"","url":"https://api.github.com/users/ovh-ux","html_url":"https://github.com/ovh-ux","followers_url":"https://api.github.com/users/ovh-ux/followers","following_url":"https://api.github.com/users/ovh-ux/following{/other_user}","gists_url":"https://api.github.com/users/ovh-ux/gists{/gist_id}","starred_url":"https://api.github.com/users/ovh-ux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovh-ux/subscriptions","organizations_url":"https://api.github.com/users/ovh-ux/orgs","repos_url":"https://api.github.com/users/ovh-ux/repos","events_url":"https://api.github.com/users/ovh-ux/events{/privacy}","received_events_url":"https://api.github.com/users/ovh-ux/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ovh-ux/component-rollup-config","description":"Extensible rollup configuration to build OVH components","fork":false,"url":"https://api.github.com/repos/ovh-ux/component-rollup-config","forks_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/forks","keys_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/teams","hooks_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/hooks","issue_events_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/issues/events{/number}","events_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/events","assignees_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/assignees{/user}","branches_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/branches{/branch}","tags_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/tags","blobs_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/git/refs{/sha}","trees_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/statuses/{sha}","languages_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/languages","stargazers_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/stargazers","contributors_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/contributors","subscribers_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/subscribers","subscription_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/subscription","commits_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/commits{/sha}","git_commits_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/git/commits{/sha}","comments_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/comments{/number}","issue_comment_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/issues/comments{/number}","contents_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/contents/{+path}","compare_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/merges","archive_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/downloads","issues_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/issues{/number}","pulls_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls{/number}","milestones_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/milestones{/number}","notifications_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/labels{/name}","releases_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/releases{/id}","deployments_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/deployments","created_at":"2018-10-19T12:37:36Z","updated_at":"2018-11-21T15:09:26Z","pushed_at":"2018-11-28T16:44:40Z","git_url":"git://github.com/ovh-ux/component-rollup-config.git","ssh_url":"git@github.com:ovh-ux/component-rollup-config.git","clone_url":"https://github.com/ovh-ux/component-rollup-config.git","svn_url":"https://github.com/ovh-ux/component-rollup-config","homepage":"","size":193,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"ovh-ux:master","ref":"master","sha":"559229bb4df512fe72f5f4af3b334c6d9463927c","user":{"login":"ovh-ux","id":26575234,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NTc1MjM0","avatar_url":"https://avatars2.githubusercontent.com/u/26575234?v=4","gravatar_id":"","url":"https://api.github.com/users/ovh-ux","html_url":"https://github.com/ovh-ux","followers_url":"https://api.github.com/users/ovh-ux/followers","following_url":"https://api.github.com/users/ovh-ux/following{/other_user}","gists_url":"https://api.github.com/users/ovh-ux/gists{/gist_id}","starred_url":"https://api.github.com/users/ovh-ux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovh-ux/subscriptions","organizations_url":"https://api.github.com/users/ovh-ux/orgs","repos_url":"https://api.github.com/users/ovh-ux/repos","events_url":"https://api.github.com/users/ovh-ux/events{/privacy}","received_events_url":"https://api.github.com/users/ovh-ux/received_events","type":"Organization","site_admin":false},"repo":{"id":153780540,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM3ODA1NDA=","name":"component-rollup-config","full_name":"ovh-ux/component-rollup-config","private":false,"owner":{"login":"ovh-ux","id":26575234,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NTc1MjM0","avatar_url":"https://avatars2.githubusercontent.com/u/26575234?v=4","gravatar_id":"","url":"https://api.github.com/users/ovh-ux","html_url":"https://github.com/ovh-ux","followers_url":"https://api.github.com/users/ovh-ux/followers","following_url":"https://api.github.com/users/ovh-ux/following{/other_user}","gists_url":"https://api.github.com/users/ovh-ux/gists{/gist_id}","starred_url":"https://api.github.com/users/ovh-ux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovh-ux/subscriptions","organizations_url":"https://api.github.com/users/ovh-ux/orgs","repos_url":"https://api.github.com/users/ovh-ux/repos","events_url":"https://api.github.com/users/ovh-ux/events{/privacy}","received_events_url":"https://api.github.com/users/ovh-ux/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ovh-ux/component-rollup-config","description":"Extensible rollup configuration to build OVH components","fork":false,"url":"https://api.github.com/repos/ovh-ux/component-rollup-config","forks_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/forks","keys_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/teams","hooks_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/hooks","issue_events_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/issues/events{/number}","events_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/events","assignees_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/assignees{/user}","branches_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/branches{/branch}","tags_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/tags","blobs_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/git/refs{/sha}","trees_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/statuses/{sha}","languages_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/languages","stargazers_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/stargazers","contributors_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/contributors","subscribers_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/subscribers","subscription_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/subscription","commits_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/commits{/sha}","git_commits_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/git/commits{/sha}","comments_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/comments{/number}","issue_comment_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/issues/comments{/number}","contents_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/contents/{+path}","compare_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/merges","archive_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/downloads","issues_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/issues{/number}","pulls_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls{/number}","milestones_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/milestones{/number}","notifications_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/labels{/name}","releases_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/releases{/id}","deployments_url":"https://api.github.com/repos/ovh-ux/component-rollup-config/deployments","created_at":"2018-10-19T12:37:36Z","updated_at":"2018-11-21T15:09:26Z","pushed_at":"2018-11-28T16:44:40Z","git_url":"git://github.com/ovh-ux/component-rollup-config.git","ssh_url":"git@github.com:ovh-ux/component-rollup-config.git","clone_url":"https://github.com/ovh-ux/component-rollup-config.git","svn_url":"https://github.com/ovh-ux/component-rollup-config","homepage":"","size":193,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/29"},"html":{"href":"https://github.com/ovh-ux/component-rollup-config/pull/29"},"issue":{"href":"https://api.github.com/repos/ovh-ux/component-rollup-config/issues/29"},"comments":{"href":"https://api.github.com/repos/ovh-ux/component-rollup-config/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ovh-ux/component-rollup-config/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/ovh-ux/component-rollup-config/statuses/2dcb3e3bbcefda153ddd31820f78f3f6ef827a1b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"FredericEspiau"}}