mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-17 07:58:27 +00:00
format
This commit is contained in:
parent
2bb22067f1
commit
4ed8444b70
3 changed files with 7 additions and 5 deletions
2
dist/post_run/index.js
vendored
2
dist/post_run/index.js
vendored
|
|
@ -67856,7 +67856,7 @@ function patchFromPush(ctx) {
|
||||||
head: ctx.sha,
|
head: ctx.sha,
|
||||||
mediaType: {
|
mediaType: {
|
||||||
format: `diff`,
|
format: `diff`,
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
if (patchResp.status !== 200) {
|
if (patchResp.status !== 200) {
|
||||||
core.warning(`failed to fetch pull request patch: response status is ${patchResp.status}`);
|
core.warning(`failed to fetch pull request patch: response status is ${patchResp.status}`);
|
||||||
|
|
|
||||||
2
dist/run/index.js
vendored
2
dist/run/index.js
vendored
|
|
@ -67856,7 +67856,7 @@ function patchFromPush(ctx) {
|
||||||
head: ctx.sha,
|
head: ctx.sha,
|
||||||
mediaType: {
|
mediaType: {
|
||||||
format: `diff`,
|
format: `diff`,
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
if (patchResp.status !== 200) {
|
if (patchResp.status !== 200) {
|
||||||
core.warning(`failed to fetch pull request patch: response status is ${patchResp.status}`);
|
core.warning(`failed to fetch pull request patch: response status is ${patchResp.status}`);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import * as core from "@actions/core"
|
import * as core from "@actions/core"
|
||||||
import * as github from "@actions/github"
|
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 { exec, ExecOptions } from "child_process"
|
||||||
import * as fs from "fs"
|
import * as fs from "fs"
|
||||||
import * as path from "path"
|
import * as path from "path"
|
||||||
|
|
@ -36,7 +36,9 @@ async function fetchPatch(): Promise<string> {
|
||||||
} else if (ctx.eventName === `push`) {
|
} else if (ctx.eventName === `push`) {
|
||||||
patch = await patchFromPush(ctx)
|
patch = await patchFromPush(ctx)
|
||||||
} else {
|
} 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 ``
|
return ``
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -104,7 +106,7 @@ async function patchFromPush(ctx: Context): Promise<string> {
|
||||||
head: ctx.sha,
|
head: ctx.sha,
|
||||||
mediaType: {
|
mediaType: {
|
||||||
format: `diff`,
|
format: `diff`,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
if (patchResp.status !== 200) {
|
if (patchResp.status !== 200) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue