Skip to content

Commit fce80ae

Browse files
authored
Don't error on removed changesets in PRs (#8549)
1 parent 0435d8e commit fce80ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/deployments/open-v3-pr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { execSync } from "node:child_process";
2-
import { readFileSync } from "node:fs";
2+
import { existsSync, readFileSync } from "node:fs";
33
import parseChangeset from "@changesets/parse";
44

55
/* eslint-disable turbo/no-undeclared-env-vars */
@@ -32,7 +32,7 @@ if (require.main === module) {
3232
export function isWranglerPatch(changedFilesJson: string) {
3333
const changedFiles = JSON.parse(changedFilesJson) as string[];
3434
const changesets = changedFiles
35-
.filter((f) => f.startsWith(".changeset/"))
35+
.filter((f) => f.startsWith(".changeset/") && existsSync(f))
3636
.map((c) => parseChangeset(readFileSync(c, "utf8")));
3737

3838
let hasWranglerPatch = false;

0 commit comments

Comments
 (0)