From adfd6c9b168833c2e55d0407190028aeeab473b4 Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Wed, 4 May 2022 12:21:29 -0400 Subject: [PATCH] use `pull_request.head.label` in comparisons to allow for forks --- .github/actions-scripts/content-changes-table-comment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions-scripts/content-changes-table-comment.js b/.github/actions-scripts/content-changes-table-comment.js index f325faf4c4..67a63fc73b 100755 --- a/.github/actions-scripts/content-changes-table-comment.js +++ b/.github/actions-scripts/content-changes-table-comment.js @@ -25,7 +25,7 @@ const octokit = github.getOctokit(GITHUB_TOKEN) const response = await octokit.rest.repos.compareCommitsWithBasehead({ owner: context.repo.owner, repo: context.payload.repository.name, - basehead: `${context.payload.pull_request.base.ref}...${context.payload.pull_request.head.ref}`, + basehead: `${context.payload.pull_request.base.ref}...${context.payload.pull_request.head.label}`, }) const { files } = response.data