Remove extra ) in GitHub new file page URL

This commit is contained in:
Maciej Pędzich 2023-02-02 17:15:01 +01:00
parent 9ac861a397
commit 1d28169283

2
bot.ts
View File

@ -162,7 +162,7 @@ export const bot: ApplicationFunction = (app) => {
const baseUrl = `${payload.pull_request.head.repo.html_url}/new/main/playlists/registry/FOO`; const baseUrl = `${payload.pull_request.head.repo.html_url}/new/main/playlists/registry/FOO`;
const linkList = urlFilenameEntries.map(({ url }) => { const linkList = urlFilenameEntries.map(({ url }) => {
const playlistId = getPlaylistIdFromUrl(url); const playlistId = getPlaylistIdFromUrl(url);
const createFilePageUrl = `${baseUrl}?filename=${playlistId}&value=REMOVE%20THIS%20TEXT%20FIRST)`; const createFilePageUrl = `${baseUrl}?filename=${playlistId}&value=REMOVE%20THIS%20TEXT%20FIRST`;
return `\t- [Create \`${playlistId}\`](${createFilePageUrl})`; return `\t- [Create \`${playlistId}\`](${createFilePageUrl})`;
}); });