We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eab2a7 commit 3b28eeeCopy full SHA for 3b28eee
1 file changed
content-extractor-scripts/src/github-codeowner-file.ts
@@ -12,7 +12,7 @@ export async function extract(owner: string, repo: string, teams: string[], apiT
12
: { 'X-GitHub-Api-Version': '2022-11-28' };
13
14
const getCommitLink = async (path: string) => {
15
- const url = `https://api.github.com/repos/${owner}/${repo}/contents/${encodeURIComponent(path)}`;
+ const url = `https://api.github.com/repos/${owner}/${repo}/commits?path=${encodeURIComponent(path)}&per_page=1`;
16
try {
17
const commits = (await (
18
await fetch(url, { headers })
0 commit comments