Skip to content

Commit 53a00e9

Browse files
committed
chore: fetch CODEOWNERS using PR head SHA to read correct team_members definition
1 parent 06c3f2a commit 53a00e9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/assign-reviewers.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ jobs:
117117
owner: context.repo.owner,
118118
repo: context.repo.repo,
119119
path: '.github/CODEOWNERS',
120+
ref: context.payload.pull_request.head.sha,
120121
});
121122
const content = Buffer.from(codeownersData.content, 'base64').toString('utf-8');
122123
const lines = content.split('\n');

0 commit comments

Comments
 (0)