Skip to content

Commit 2bb2206

Browse files
szechyjsldez
authored andcommitted
Allow empty diff
1 parent 3de9823 commit 2bb2206

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
@@ -67793,10 +67793,6 @@ function fetchPatch() {
6779367793
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}`);
6779467794
return ``;
6779567795
}
67796-
if (!patch) {
67797-
core.info(`Not using patch for showing only new issues because it's empty`);
67798-
return ``;
67799-
}
6780067796
try {
6780167797
const tempDir = yield createTempDir();
6780267798
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
@@ -67793,10 +67793,6 @@ function fetchPatch() {
6779367793
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}`);
6779467794
return ``;
6779567795
}
67796-
if (!patch) {
67797-
core.info(`Not using patch for showing only new issues because it's empty`);
67798-
return ``;
67799-
}
6780067796
try {
6780167797
const tempDir = yield createTempDir();
6780267798
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)