Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
szechyjs authored and ldez committed Feb 24, 2023
1 parent 2bb2206 commit 4ed8444
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/post_run/index.js
Expand Up @@ -67856,7 +67856,7 @@ function patchFromPush(ctx) {
head: ctx.sha,
mediaType: {
format: `diff`,
}
},
});
if (patchResp.status !== 200) {
core.warning(`failed to fetch pull request patch: response status is ${patchResp.status}`);
Expand Down
2 changes: 1 addition & 1 deletion dist/run/index.js
Expand Up @@ -67856,7 +67856,7 @@ function patchFromPush(ctx) {
head: ctx.sha,
mediaType: {
format: `diff`,
}
},
});
if (patchResp.status !== 200) {
core.warning(`failed to fetch pull request patch: response status is ${patchResp.status}`);
Expand Down
8 changes: 5 additions & 3 deletions src/run.ts
@@ -1,6 +1,6 @@
import * as core from "@actions/core"
import * as github from "@actions/github"
import { Context } from '@actions/github/lib/context'
import { Context } from "@actions/github/lib/context"
import { exec, ExecOptions } from "child_process"
import * as fs from "fs"
import * as path from "path"
Expand Down Expand Up @@ -36,7 +36,9 @@ async function fetchPatch(): Promise<string> {
} else if (ctx.eventName === `push`) {
patch = await patchFromPush(ctx)
} else {
core.info(`Not fetching patch for showing only new issues because it's not a pull request or push context: event name is ${ctx.eventName}`)
core.info(
`Not fetching patch for showing only new issues because it's not a pull request or push context: event name is ${ctx.eventName}`
)
return ``
}

Expand Down Expand Up @@ -104,7 +106,7 @@ async function patchFromPush(ctx: Context): Promise<string> {
head: ctx.sha,
mediaType: {
format: `diff`,
}
},
})

if (patchResp.status !== 200) {
Expand Down

0 comments on commit 4ed8444

Please sign in to comment.