Skip to content

Commit

Permalink
Adjust URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
atuchin-m committed Nov 6, 2024
1 parent 93138ec commit f1e2cec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function getGitHubDiffUrl(
oldPriority: StudyPriority,
commit: string,
): string {
const path = `study/all-by-name/${study}`;
const path = `study/all-by-name/${study}.json5`;
const pathHash = sha256(path);
return `${url_utils.getGitHubStorageUrl()}/commit/${commit}#diff-${pathHash}`;
}
Expand Down
3 changes: 1 addition & 2 deletions src/core/url_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ export function getStudyRawConfigUrl(
return (
'https://github.com/search?type=code' +
'&q=repo%3Abrave%2Fbrave-variations' +
'+path%3A%2F%5Eseed%5C%2Fseed.json%7C%5Estudies%5C%2F*.json5%2F+' +
`"%5C"name%5C"%3A+%5C"${encodeURIComponent(study)}%5C""`
`+path%3Astudies%2F+%22name%3A+%27${encodeURIComponent(study)}%27%22`
);
}

Expand Down

0 comments on commit f1e2cec

Please sign in to comment.