Skip to content

Commit 608458d

Browse files
authored
Skip changing removed files (#348)
Signed-off-by: Gavin John <[email protected]>
1 parent f133dd3 commit 608458d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/merge.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ export async function preMergeChanges(octokit: Octokit, _: Config, repository: R
150150
let oldEipToNewEip: { [key: string]: string } = {};
151151
for (let file of files) {
152152
file = { ...file };
153+
if (file.status == 'removed') {
154+
continue; // Don't need to do stuff with removed files
155+
}
153156
if (file.filename.endsWith('.md')) {
154157
// Parse file
155158
const fileContent = file.contents as string;

0 commit comments

Comments
 (0)