Update announcements message to link to releases (#14168)

This commit is contained in:
Reuben Tier
2025-08-01 20:58:26 +01:00
committed by GitHub
parent 1e1cef04b5
commit 0d5b6907f6

View File

@@ -3,8 +3,7 @@ import { fileURLToPath } from 'node:url';
import { glob } from 'tinyglobby';
import { setOutput } from './utils.mjs';
const { GITHUB_REF = 'main' } = process.env;
const baseUrl = new URL(`https://github.com/withastro/astro/blob/${GITHUB_REF}/`);
const baseUrl = new URL(`https://github.com/withastro/astro/releases/tag/`);
const emojis = ['🎉', '🥳', '🚀', '🧑', '🎊', '🏆', '✅', '🤩', '🤖', '🙌'];
const descriptors = [
@@ -110,7 +109,7 @@ async function generateMessage() {
return {
name,
version,
url: new URL(`${p}/CHANGELOG.md#${version.replace(/\./g, '')}`, baseUrl).toString(),
url: new URL(encodeURIComponent(`${name}@${version}`), baseUrl).toString(),
};
}),
);