mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-17 07:58:27 +00:00
Allow empty diff
This commit is contained in:
parent
3de9823efc
commit
2bb22067f1
3 changed files with 0 additions and 13 deletions
4
dist/post_run/index.js
vendored
4
dist/post_run/index.js
vendored
|
|
@ -67793,10 +67793,6 @@ function fetchPatch() {
|
||||||
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 ``;
|
||||||
}
|
}
|
||||||
if (!patch) {
|
|
||||||
core.info(`Not using patch for showing only new issues because it's empty`);
|
|
||||||
return ``;
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
const tempDir = yield createTempDir();
|
const tempDir = yield createTempDir();
|
||||||
const patchPath = path.join(tempDir, "pull.patch");
|
const patchPath = path.join(tempDir, "pull.patch");
|
||||||
|
|
|
||||||
4
dist/run/index.js
vendored
4
dist/run/index.js
vendored
|
|
@ -67793,10 +67793,6 @@ function fetchPatch() {
|
||||||
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 ``;
|
||||||
}
|
}
|
||||||
if (!patch) {
|
|
||||||
core.info(`Not using patch for showing only new issues because it's empty`);
|
|
||||||
return ``;
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
const tempDir = yield createTempDir();
|
const tempDir = yield createTempDir();
|
||||||
const patchPath = path.join(tempDir, "pull.patch");
|
const patchPath = path.join(tempDir, "pull.patch");
|
||||||
|
|
|
||||||
|
|
@ -40,11 +40,6 @@ async function fetchPatch(): Promise<string> {
|
||||||
return ``
|
return ``
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!patch) {
|
|
||||||
core.info(`Not using patch for showing only new issues because it's empty`)
|
|
||||||
return ``
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const tempDir = await createTempDir()
|
const tempDir = await createTempDir()
|
||||||
const patchPath = path.join(tempDir, "pull.patch")
|
const patchPath = path.join(tempDir, "pull.patch")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue