Skip to content

Commit bda458e

Browse files
pr-labelsを指定しなかった場合のエラー修正 (#2094)
* pr-labelsを指定しなかった場合のエラー修正 * format修正 (#2095) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5af05be commit bda458e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/update_pull_request.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/update_pull_request.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export async function script(
2525
await github.rest.pulls.update(pullsUpdateParams);
2626
}
2727

28-
const labels: string[] | undefined = process.env.PR_LABELS?.split(",");
28+
const labels: string[] | undefined = process.env.PR_LABELS?.split(
29+
",",
30+
).filter((l) => l !== "");
2931

3032
if (labels === undefined || labels.length === 0) {
3133
continue;

0 commit comments

Comments
 (0)