fix: use 3-dots syntax for diff on push (#1040)

This commit is contained in:
Ludovic Fernandez 2024-05-08 05:51:20 +02:00 committed by GitHub
parent 5815a4b917
commit a4f60bb28d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

2
dist/post_run/index.js generated vendored
View File

@ -89228,7 +89228,7 @@ async function fetchPushPatch(ctx) {
const patchResp = await octokit.rest.repos.compareCommitsWithBasehead({
owner: ctx.repo.owner,
repo: ctx.repo.repo,
basehead: `${ctx.payload.before}..${ctx.payload.after}`,
basehead: `${ctx.payload.before}...${ctx.payload.after}`,
mediaType: {
format: `diff`,
},

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

@ -89228,7 +89228,7 @@ async function fetchPushPatch(ctx) {
const patchResp = await octokit.rest.repos.compareCommitsWithBasehead({
owner: ctx.repo.owner,
repo: ctx.repo.repo,
basehead: `${ctx.payload.before}..${ctx.payload.after}`,
basehead: `${ctx.payload.before}...${ctx.payload.after}`,
mediaType: {
format: `diff`,
},

View File

@ -101,7 +101,7 @@ async function fetchPushPatch(ctx: Context): Promise<string> {
const patchResp = await octokit.rest.repos.compareCommitsWithBasehead({
owner: ctx.repo.owner,
repo: ctx.repo.repo,
basehead: `${ctx.payload.before}..${ctx.payload.after}`,
basehead: `${ctx.payload.before}...${ctx.payload.after}`,
mediaType: {
format: `diff`,
},