Allow empty diff

This commit is contained in:
Jared Szechy 2022-07-20 14:23:47 -04:00 committed by Fernandez Ludovic
parent 3de9823efc
commit 2bb22067f1
3 changed files with 0 additions and 13 deletions

View file

@ -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
View file

@ -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");

View file

@ -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")