mirror of
https://github.com/withastro/astro.git
synced 2025-12-05 18:56:38 -06:00
Update announcements message to link to releases (#14168)
This commit is contained in:
5
.github/scripts/announce.mjs
vendored
5
.github/scripts/announce.mjs
vendored
@@ -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(),
|
||||
};
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user