From 056c6e36556d4710a869273acc5bef8249c99b4a Mon Sep 17 00:00:00 2001 From: Jack Works Date: Sat, 30 Jul 2022 21:41:36 +0800 Subject: [PATCH] use HEAD instead of main to refer the default branch --- src/fetch/meeting-notes.ts | 2 +- src/fetch/proposals.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fetch/meeting-notes.ts b/src/fetch/meeting-notes.ts index fbbde89..f54e026 100644 --- a/src/fetch/meeting-notes.ts +++ b/src/fetch/meeting-notes.ts @@ -42,5 +42,5 @@ function pathToURL_DatePair(path: string): [string, Date] { console.log(year, month, dayInMonth); const date = new Date(`${year}-${month}-${dayInMonth}`); - return [`https://github.com/tc39/notes/blob/main/meetings/${yearMonth}/${monthDay}`, date]; + return [`https://github.com/tc39/notes/blob/HEAD/meetings/${yearMonth}/${monthDay}`, date]; } diff --git a/src/fetch/proposals.ts b/src/fetch/proposals.ts index b9b07b2..1a6d40d 100644 --- a/src/fetch/proposals.ts +++ b/src/fetch/proposals.ts @@ -38,7 +38,7 @@ export async function getProposals() { const response = await fetch(specURL, { redirect: 'manual' }); - // This is the default spec text at https://github.com/tc39/template-for-proposals/blob/main/spec.emu + // This is the default spec text at https://github.com/tc39/template-for-proposals/blob/HEAD/spec.emu if (response.status !== 200) spec = undefined; else if ((await response.text()).includes('Proposal Title Goes Here')) spec = undefined; else spec = specURL;