Skip to content

Commit 1d527e1

Browse files
authored
Merge pull request #27476 from github/fix-preview-table-contents
Use sha instead of ref to get file contents
2 parents dd13da6 + 06daa25 commit 1d527e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions-scripts/content-changes-table-comment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ for (const file of articleFiles) {
4747
const fileContents = await getContents(
4848
context.repo.owner,
4949
context.payload.repository.name,
50-
context.payload.pull_request.head.ref,
50+
context.payload.pull_request.head.sha,
5151
file.filename
5252
)
5353

0 commit comments

Comments
 (0)