Skip to content

Commit 3b28eee

Browse files
committed
fix: correct AI slop in the GitHub CODEOWNER extractor
1 parent 0eab2a7 commit 3b28eee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content-extractor-scripts/src/github-codeowner-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function extract(owner: string, repo: string, teams: string[], apiT
1212
: { 'X-GitHub-Api-Version': '2022-11-28' };
1313

1414
const getCommitLink = async (path: string) => {
15-
const url = `https://api.github.com/repos/${owner}/${repo}/contents/${encodeURIComponent(path)}`;
15+
const url = `https://api.github.com/repos/${owner}/${repo}/commits?path=${encodeURIComponent(path)}&per_page=1`;
1616
try {
1717
const commits = (await (
1818
await fetch(url, { headers })

0 commit comments

Comments
 (0)