1
0
mirror of synced 2025-12-30 03:01:36 -05:00

use shas instead of labels for comparisons

This commit is contained in:
Hector Alfaro
2022-05-04 13:19:06 -04:00
parent e6d3588bd9
commit 0f8b5cc642

View File

@@ -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.label}`,
basehead: `${context.payload.pull_request.base.sha}...${context.payload.pull_request.head.sha}`,
})
const { files } = response.data