[CI] Fix by-code-owner labelling (#9661)

This commit is contained in:
Jesse Hills 2025-07-18 23:24:06 +12:00 committed by GitHub
parent afc48812fa
commit b5b301f935
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -305,8 +305,7 @@ jobs:
const { data: codeownersFile } = await github.rest.repos.getContent({ const { data: codeownersFile } = await github.rest.repos.getContent({
owner, owner,
repo, repo,
path: '.github/CODEOWNERS', path: 'CODEOWNERS',
ref: context.payload.pull_request.head.sha
}); });
const codeownersContent = Buffer.from(codeownersFile.content, 'base64').toString('utf8'); const codeownersContent = Buffer.from(codeownersFile.content, 'base64').toString('utf8');