feat: uses 2 dots compare syntax for push diff (#1030)

This commit is contained in:
Ludovic Fernandez
2024-05-04 16:54:30 +02:00
committed by GitHub
parent 046435d14c
commit ecb32920c6
4 changed files with 11 additions and 11 deletions

5
dist/run/index.js generated vendored
View File

@ -89221,11 +89221,10 @@ async function fetchPushPatch(ctx) {
const octokit = github.getOctokit(core.getInput(`github-token`, { required: true }));
let patch;
try {
const patchResp = await octokit.rest.repos.compareCommits({
const patchResp = await octokit.rest.repos.compareCommitsWithBasehead({
owner: ctx.repo.owner,
repo: ctx.repo.repo,
base: ctx.payload.before,
head: ctx.payload.after,
basehead: `${ctx.payload.before}..${ctx.payload.after}`,
mediaType: {
format: `diff`,
},