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

View File

@ -104,11 +104,10 @@ async function fetchPushPatch(ctx: Context): Promise<string> {
let patch: string
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`,
},