Skip to content

Commit 348cf46

Browse files
committed
Allow empty diff
1 parent 7c950bd commit 348cf46

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

dist/post_run/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66949,10 +66949,6 @@ function fetchPatch() {
6694966949
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}`);
6695066950
return ``;
6695166951
}
66952-
if (!patch) {
66953-
core.info(`Not using patch for showing only new issues because it's empty`);
66954-
return ``;
66955-
}
6695666952
try {
6695766953
const tempDir = yield createTempDir();
6695866954
const patchPath = path.join(tempDir, "pull.patch");

dist/run/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66949,10 +66949,6 @@ function fetchPatch() {
6694966949
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}`);
6695066950
return ``;
6695166951
}
66952-
if (!patch) {
66953-
core.info(`Not using patch for showing only new issues because it's empty`);
66954-
return ``;
66955-
}
6695666952
try {
6695766953
const tempDir = yield createTempDir();
6695866954
const patchPath = path.join(tempDir, "pull.patch");

src/run.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ async function fetchPatch(): Promise<string> {
4040
return ``
4141
}
4242

43-
if (!patch) {
44-
core.info(`Not using patch for showing only new issues because it's empty`)
45-
return ``
46-
}
47-
4843
try {
4944
const tempDir = await createTempDir()
5045
const patchPath = path.join(tempDir, "pull.patch")

0 commit comments

Comments
 (0)