{"action":"created","comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments/199937104","pull_request_review_id":134154039,"id":199937104,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTkzNzEwNA==","diff_hunk":"@@ -2,239 +2,246 @@ const Promise = require('bluebird');\n const fs = require('fs');\n const fsExtra = require('fs-extra');\n const Path = require('path');\n-const Chalk = require('chalk');\n+const chalk = require('chalk');\n+const rootPath = require('./rootpath.js')._();\n \n-// Various variables\n-const rootPath = __dirname.replace('/build/build-modules-js', '').replace('\\\\build\\\\build-modules-js', '');\n const xmlVersionStr = /(<version>)(\\d+.\\d+.\\d+)(<\\/version>)/;\n \n // rm -rf media/vendor\n-cleanVendors = () => {\n-\t// Let's keep some tinyMCE folders\n-\tfsExtra.copySync(Path.join(rootPath, 'media/vendor/tinymce/langs'), Path.join(rootPath, 'build/tiny_langs'));\n-\tfsExtra.copySync(Path.join(rootPath, 'media/vendor/tinymce/templates'), Path.join(rootPath, 'build/tiny_templates'));\n-\tfsExtra.copySync(Path.join(rootPath, 'media/vendor/jquery-ui'), Path.join(rootPath, 'build/jquery-ui'));\n-\n-\tfsExtra.removeSync(Path.join(rootPath, 'media/vendor'));\n-\tfsExtra.removeSync(Path.join(rootPath, 'media/system/js/polyfills'));\n-\n-\t// Restore and erase the tmp folders\n-\tfsExtra.copySync(Path.join(rootPath, 'build/tiny_langs'), Path.join(rootPath, 'media/vendor/tinymce/langs'));\n-\tfsExtra.copySync(Path.join(rootPath, 'build/tiny_templates'), Path.join(rootPath, 'media/vendor/tinymce/templates'));\n-\tfsExtra.copySync(Path.join(rootPath, 'build/jquery-ui'), Path.join(rootPath, 'media/vendor/jquery-ui'));\n-\tfsExtra.removeSync(Path.join(rootPath, 'build/tiny_langs'));\n-\tfsExtra.removeSync(Path.join(rootPath, 'build/tiny_templates'));\n-\tfsExtra.removeSync(Path.join(rootPath, 'build/jquery-ui'));\n-\n-\tconsole.log(Chalk.blue('/media/vendor has been removed.'));\n+const cleanVendors = () => {\n+  // Let's keep some tinyMCE folders\n+  fsExtra.copySync(Path.join(rootPath, 'media/vendor/tinymce/langs'), Path.join(rootPath, 'build/tiny_langs'));\n+  fsExtra.copySync(Path.join(rootPath, 'media/vendor/tinymce/templates'), Path.join(rootPath, 'build/tiny_templates'));\n+  fsExtra.copySync(Path.join(rootPath, 'media/vendor/jquery-ui'), Path.join(rootPath, 'build/jquery-ui'));\n+\n+  fsExtra.removeSync(Path.join(rootPath, 'media/vendor'));\n+  fsExtra.removeSync(Path.join(rootPath, 'media/system/js/polyfills'));\n+\n+  // Restore and erase the tmp folders\n+  fsExtra.copySync(Path.join(rootPath, 'build/tiny_langs'), Path.join(rootPath, 'media/vendor/tinymce/langs'));\n+  fsExtra.copySync(Path.join(rootPath, 'build/tiny_templates'), Path.join(rootPath, 'media/vendor/tinymce/templates'));\n+  fsExtra.copySync(Path.join(rootPath, 'build/jquery-ui'), Path.join(rootPath, 'media/vendor/jquery-ui'));\n+  fsExtra.removeSync(Path.join(rootPath, 'build/tiny_langs'));\n+  fsExtra.removeSync(Path.join(rootPath, 'build/tiny_templates'));\n+  fsExtra.removeSync(Path.join(rootPath, 'build/jquery-ui'));\n+\n+  // eslint-disable-next-line no-console\n+  console.error(chalk.blue('/media/vendor has been removed.'));\n };\n \n // Copies all the files from a directory\n-copyAll = (dirName, name, type) => {\n-\tconst folderName = dirName === '/' ? '/' : '/' + dirName;\n-\tfsExtra.copySync(Path.join(rootPath, 'node_modules/' + name + '/' + folderName),\n-\tPath.join(rootPath, 'media/vendor/' + name.replace(/.+\\//, '') + '/' + type));\n+const copyAll = (dirName, name, type) => {\n+  const folderName = dirName === '/' ? '/' : `/${dirName}`;\n+  fsExtra.copySync(Path.join(rootPath, `node_modules/${name}/${folderName}`),\n+    Path.join(rootPath, `media/vendor/${name.replace(/.+\\//, '')}/${type}`));","path":"build/build-modules-js/update.js","position":60,"original_position":60,"commit_id":"66b108d012a268bb6f7239e4abf03c22784884ae","original_commit_id":"66b108d012a268bb6f7239e4abf03c22784884ae","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected a newline before ')'  function-paren-newline","created_at":"2018-07-03T20:15:10Z","updated_at":"2018-07-03T20:15:12Z","html_url":"https://github.com/joomla/joomla-cms/pull/20954#discussion_r199937104","pull_request_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/20954","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments/199937104"},"html":{"href":"https://github.com/joomla/joomla-cms/pull/20954#discussion_r199937104"},"pull_request":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/20954"}}},"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/20954","id":198662655,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NjYyNjU1","html_url":"https://github.com/joomla/joomla-cms/pull/20954","diff_url":"https://github.com/joomla/joomla-cms/pull/20954.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/20954.patch","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/20954","number":20954,"state":"open","locked":false,"title":"Transpile es6 files","user":{"login":"dgrammatiko","id":3889375,"node_id":"MDQ6VXNlcjM4ODkzNzU=","avatar_url":"https://avatars0.githubusercontent.com/u/3889375?v=4","gravatar_id":"","url":"https://api.github.com/users/dgrammatiko","html_url":"https://github.com/dgrammatiko","followers_url":"https://api.github.com/users/dgrammatiko/followers","following_url":"https://api.github.com/users/dgrammatiko/following{/other_user}","gists_url":"https://api.github.com/users/dgrammatiko/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrammatiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrammatiko/subscriptions","organizations_url":"https://api.github.com/users/dgrammatiko/orgs","repos_url":"https://api.github.com/users/dgrammatiko/repos","events_url":"https://api.github.com/users/dgrammatiko/events{/privacy}","received_events_url":"https://api.github.com/users/dgrammatiko/received_events","type":"User","site_admin":false},"body":"as part of the --compilejs command\r\n\r\nPull Request for Issue # .\r\n\r\n### Summary of Changes\r\n\r\n\r\n\r\n### Testing Instructions\r\n\r\n\r\n\r\n### Expected result\r\n\r\n\r\n\r\n### Actual result\r\n\r\n\r\n\r\n### Documentation Changes Required\r\n\r\n","created_at":"2018-07-02T12:23:24Z","updated_at":"2018-07-03T20:15:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"791cf9c02b6cf1a83340a35f24894274966e2a07","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":444033883,"node_id":"MDU6TGFiZWw0NDQwMzM4ODM=","url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-4.0-dev","name":"PR-4.0-dev","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/20954/commits","review_comments_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/20954/comments","review_comment_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/20954/comments","statuses_url":"https://api.github.com/repos/joomla/joomla-cms/statuses/66b108d012a268bb6f7239e4abf03c22784884ae","head":{"label":"dgrammatiko:patch-7","ref":"patch-7","sha":"66b108d012a268bb6f7239e4abf03c22784884ae","user":{"login":"dgrammatiko","id":3889375,"node_id":"MDQ6VXNlcjM4ODkzNzU=","avatar_url":"https://avatars0.githubusercontent.com/u/3889375?v=4","gravatar_id":"","url":"https://api.github.com/users/dgrammatiko","html_url":"https://github.com/dgrammatiko","followers_url":"https://api.github.com/users/dgrammatiko/followers","following_url":"https://api.github.com/users/dgrammatiko/following{/other_user}","gists_url":"https://api.github.com/users/dgrammatiko/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrammatiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrammatiko/subscriptions","organizations_url":"https://api.github.com/users/dgrammatiko/orgs","repos_url":"https://api.github.com/users/dgrammatiko/repos","events_url":"https://api.github.com/users/dgrammatiko/events{/privacy}","received_events_url":"https://api.github.com/users/dgrammatiko/received_events","type":"User","site_admin":false},"repo":{"id":17825580,"node_id":"MDEwOlJlcG9zaXRvcnkxNzgyNTU4MA==","name":"joomla-cms","full_name":"dgrammatiko/joomla-cms","owner":{"login":"dgrammatiko","id":3889375,"node_id":"MDQ6VXNlcjM4ODkzNzU=","avatar_url":"https://avatars0.githubusercontent.com/u/3889375?v=4","gravatar_id":"","url":"https://api.github.com/users/dgrammatiko","html_url":"https://github.com/dgrammatiko","followers_url":"https://api.github.com/users/dgrammatiko/followers","following_url":"https://api.github.com/users/dgrammatiko/following{/other_user}","gists_url":"https://api.github.com/users/dgrammatiko/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrammatiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrammatiko/subscriptions","organizations_url":"https://api.github.com/users/dgrammatiko/orgs","repos_url":"https://api.github.com/users/dgrammatiko/repos","events_url":"https://api.github.com/users/dgrammatiko/events{/privacy}","received_events_url":"https://api.github.com/users/dgrammatiko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgrammatiko/joomla-cms","description":"Home of the Joomla! Content Management System","fork":true,"url":"https://api.github.com/repos/dgrammatiko/joomla-cms","forks_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/forks","keys_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/teams","hooks_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/events","assignees_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/tags","blobs_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/subscription","commits_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/merges","archive_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/downloads","issues_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/releases{/id}","deployments_url":"https://api.github.com/repos/dgrammatiko/joomla-cms/deployments","created_at":"2014-03-17T11:18:00Z","updated_at":"2017-08-31T20:50:11Z","pushed_at":"2018-07-03T20:14:53Z","git_url":"git://github.com/dgrammatiko/joomla-cms.git","ssh_url":"git@github.com:dgrammatiko/joomla-cms.git","clone_url":"https://github.com/dgrammatiko/joomla-cms.git","svn_url":"https://github.com/dgrammatiko/joomla-cms","homepage":"http://joomla.org","size":239128,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":1,"open_issues":0,"watchers":1,"default_branch":"4.0-dev"}},"base":{"label":"joomla:4.0-dev","ref":"4.0-dev","sha":"b6db76f79f52f448609a26dcc7d52e889bff6dc9","user":{"login":"joomla","id":751633,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1MTYzMw==","avatar_url":"https://avatars3.githubusercontent.com/u/751633?v=4","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"repo":{"id":2464908,"node_id":"MDEwOlJlcG9zaXRvcnkyNDY0OTA4","name":"joomla-cms","full_name":"joomla/joomla-cms","owner":{"login":"joomla","id":751633,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc1MTYzMw==","avatar_url":"https://avatars3.githubusercontent.com/u/751633?v=4","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla/joomla-cms","description":"Home of the Joomla! Content Management System","fork":false,"url":"https://api.github.com/repos/joomla/joomla-cms","forks_url":"https://api.github.com/repos/joomla/joomla-cms/forks","keys_url":"https://api.github.com/repos/joomla/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla/joomla-cms/teams","hooks_url":"https://api.github.com/repos/joomla/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/joomla/joomla-cms/events","assignees_url":"https://api.github.com/repos/joomla/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/joomla/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/joomla/joomla-cms/tags","blobs_url":"https://api.github.com/repos/joomla/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/joomla/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/joomla/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/joomla/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/joomla/joomla-cms/subscription","commits_url":"https://api.github.com/repos/joomla/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/joomla/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla/joomla-cms/merges","archive_url":"https://api.github.com/repos/joomla/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla/joomla-cms/downloads","issues_url":"https://api.github.com/repos/joomla/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/joomla/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/joomla/joomla-cms/releases{/id}","deployments_url":"https://api.github.com/repos/joomla/joomla-cms/deployments","created_at":"2011-09-27T02:07:38Z","updated_at":"2018-07-03T15:52:42Z","pushed_at":"2018-07-03T20:15:10Z","git_url":"git://github.com/joomla/joomla-cms.git","ssh_url":"git@github.com:joomla/joomla-cms.git","clone_url":"https://github.com/joomla/joomla-cms.git","svn_url":"https://github.com/joomla/joomla-cms","homepage":"https://www.joomla.org","size":236995,"stargazers_count":2786,"watchers_count":2786,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2699,"mirror_url":null,"archived":false,"open_issues_count":825,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":2699,"open_issues":825,"watchers":2786,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/20954"},"html":{"href":"https://github.com/joomla/joomla-cms/pull/20954"},"issue":{"href":"https://api.github.com/repos/joomla/joomla-cms/issues/20954"},"comments":{"href":"https://api.github.com/repos/joomla/joomla-cms/issues/20954/comments"},"review_comments":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/20954/comments"},"review_comment":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/20954/commits"},"statuses":{"href":"https://api.github.com/repos/joomla/joomla-cms/statuses/66b108d012a268bb6f7239e4abf03c22784884ae"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"houndci-bot"}}