checkPlugins: no need to let user know badge links, they will be auto added

This commit is contained in:
John McLear 2021-02-08 12:25:56 +00:00
parent 4f02575088
commit 7db1e55290

View file

@ -323,9 +323,7 @@ fs.readdir(pluginPath, (err, rootFiles) => {
// eslint-disable-next-line max-len // eslint-disable-next-line max-len
const badgeTwo = `![Publish Status](https://github.com/ether/${pluginName}/workflows/Node.js%20Package/badge.svg)`; const badgeTwo = `![Publish Status](https://github.com/ether/${pluginName}/workflows/Node.js%20Package/badge.svg)`;
if (readme.toLowerCase().indexOf('travis') !== -1) { if (readme.toLowerCase().indexOf('travis') !== -1) {
console.warn('Replacing Travis badge with Github actions.'); console.warn('Remove Travis badges');
console.warn(badgeOne);
console.warn(badgeTwo);
} }
if (readme.toLowerCase().indexOf('workflows/Node.js%20Package/badge.svg') === -1) { if (readme.toLowerCase().indexOf('workflows/Node.js%20Package/badge.svg') === -1) {
console.warn('No Github workflow badge detected') console.warn('No Github workflow badge detected')