Skip to content

Commit

Permalink
use HEAD instead of main to refer the default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Jul 30, 2022
1 parent 16b4ec6 commit 056c6e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fetch/meeting-notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
2 changes: 1 addition & 1 deletion src/fetch/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 056c6e3

Please sign in to comment.