diff --git a/.github/workflows/pr-content.yml b/.github/workflows/pr-content.yml index 1d28148..22f09f9 100644 --- a/.github/workflows/pr-content.yml +++ b/.github/workflows/pr-content.yml @@ -133,7 +133,7 @@ jobs: const invalidCommits = commits .map((commit) => ({ sha: commit.sha, - subject: commit.commit.message.split("\n")[0], + subject: commit.commit.message.split(/\r?\n/)[0], isMerge: commit.parents.length > 1, })) .filter(({ subject, isMerge }) => !isMerge && !titlePattern.test(subject));