From 8f4def32d64b46076f3d842e21e943e16c0a41b0 Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Tue, 24 Mar 2026 08:57:54 +0100 Subject: [PATCH] When splitting lines for the cross-PR checkout also split on \r\n It seems like GitHub sometime in the last year started representing newlines in the PR description using \r\n instead of \n. Respect those as well to split the description into lines and find the linked PR indicator. --- .github/workflows/scripts/cross-pr-checkout.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scripts/cross-pr-checkout.swift b/.github/workflows/scripts/cross-pr-checkout.swift index 7a4550ab..d9f1ed2a 100644 --- a/.github/workflows/scripts/cross-pr-checkout.swift +++ b/.github/workflows/scripts/cross-pr-checkout.swift @@ -142,7 +142,7 @@ struct CrossRepoPR { func getCrossRepoPrs(repository: String, prNumber: String) async throws -> [CrossRepoPR] { var result: [CrossRepoPR] = [] let prInfo = try await getPRInfo(repository: repository, prNumber: prNumber) - for line in prInfo.body?.split(separator: "\n") ?? [] { + for line in prInfo.body?.split(whereSeparator: \.isNewline) ?? [] { guard line.lowercased().starts(with: "linked pr:") else { continue }