diff --git a/.github/scripts/announce.mjs b/.github/scripts/announce.mjs index 2e05a7ae8a..df73040372 100755 --- a/.github/scripts/announce.mjs +++ b/.github/scripts/announce.mjs @@ -6,7 +6,7 @@ import { setOutput } from './utils.mjs'; const { GITHUB_REF = 'main' } = process.env; const baseUrl = new URL(`https://github.com/withastro/astro/blob/${GITHUB_REF}/`); -const emojis = ['šŸŽ‰', 'šŸ„³', 'šŸš€', 'šŸ§‘ā€šŸš€', 'šŸŽŠ', 'šŸ†', 'āœ…', 'šŸ¤©', 'šŸ¤–', 'šŸ™Œ']; +const emojis = ['šŸŽ‰', 'šŸ„³', 'šŸš€', 'šŸ§‘', 'šŸŽŠ', 'šŸ†', 'āœ…', 'šŸ¤©', 'šŸ¤–', 'šŸ™Œ']; const descriptors = [ 'new releases', 'hot and fresh updates', @@ -141,7 +141,7 @@ async function generateMessage() { message += `\nAlso ${item(extraVerbs)}:`; const remainingPackages = packages.filter((p) => p.name !== name); - for (const { name, version, url } of remainingPackages) { + for (const { name, version, _url } of remainingPackages) { message += `\nā€¢ \`${name}@${version}\``; } @@ -159,7 +159,7 @@ async function generateMessage() { async function run() { const content = await generateMessage(); - console.log(content); + console.info(content); setOutput('DISCORD_MESSAGE', content); } diff --git a/benchmark/bench/_template.js b/benchmark/bench/_template.js index 867ecf13b6..ae96d72ad5 100644 --- a/benchmark/bench/_template.js +++ b/benchmark/bench/_template.js @@ -6,7 +6,7 @@ export const defaultProject = 'project-name'; * Use `console.log` to report the results too. Logs that start with 10 `=` * and end with 10 `=` will be extracted by CI to display in the PR comment. * Usually after the first 10 `=` you'll want to add a title like `#### Test`. - * @param {URL} projectDir - * @param {URL} outputFile + * @param {URL} _projectDir + * @param {URL} _outputFile */ -export async function run(projectDir, outputFile) {} +export async function run(_projectDir, _outputFile) {} diff --git a/scripts/cmd/build.js b/scripts/cmd/build.js index e1c7129938..3fd24c1da1 100644 --- a/scripts/cmd/build.js +++ b/scripts/cmd/build.js @@ -101,11 +101,11 @@ export default async function build(...args) { console.error(dim(`[${date}] `) + red(error || result.errors.join('\n'))); } else { if (result.warnings.length) { - console.log( - dim(`[${date}] `) + yellow('āš  updated with warnings:\n' + result.warnings.join('\n')), + console.info( + dim(`[${date}] `) + yellow('! updated with warnings:\n' + result.warnings.join('\n')), ); } - console.log(dim(`[${date}] `) + green('āœ” updated')); + console.info(dim(`[${date}] `) + green('āˆš updated')); } }); },