Skip to content

Commit b1858e8

Browse files
authored
Merge pull request #1008 from swiftlang/automerge/merge-main-2025-04-28_09-29
Merge `main` into `release/6.2`
2 parents 4d6bad1 + 4706050 commit b1858e8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Pull request
22

33
on:
44
pull_request:
5-
types: [opened, reopened, synchronize]
5+
types: [opened, reopened, synchronize, ready_for_review]
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
@@ -12,11 +12,17 @@ jobs:
1212
tests:
1313
name: Test
1414
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
15+
# PRs created by GitHub Actions don't kick off further actions (https://github.com/peter-evans/create-pull-request/blob/d57e551ebc1a16dee0b8c9ea6d24dba7627a6e35/docs/concepts-guidelines.md#triggering-further-workflow-runs).
16+
# As a workaround, we mark automerge PRs that are created by GitHub actions as draft and trigger the GitHub actions by marking the PR as ready for review. But we don't want to re-trigger testing this when a normal user's PR is marked as ready for review.
17+
if: (github.event.action != 'ready_for_review') || (github.event.action == 'ready_for_review' && github.event.pull_request.user.login == 'github-actions[bot]')
1518
with:
1619
linux_exclude_swift_versions: "[{\"swift_version\": \"5.8\"}]"
1720
soundness:
1821
name: Soundness
1922
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
23+
# PRs created by GitHub Actions don't kick off further actions (https://github.com/peter-evans/create-pull-request/blob/d57e551ebc1a16dee0b8c9ea6d24dba7627a6e35/docs/concepts-guidelines.md#triggering-further-workflow-runs).
24+
# As a workaround, we mark automerge PRs that are created by GitHub actions as draft and trigger the GitHub actions by marking the PR as ready for review. But we don't want to re-trigger testing this when a normal user's PR is marked as ready for review.
25+
if: (github.event.action != 'ready_for_review') || (github.event.action == 'ready_for_review' && github.event.pull_request.user.login == 'github-actions[bot]')
2026
with:
2127
license_header_check_project_name: "Swift.org"
2228
api_breakage_check_allowlist_path: "api-breakages.txt"

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ var targets: [Target] = [
9696
"_SwiftFormatInstructionCounter",
9797
"SwiftFormat",
9898
.product(name: "ArgumentParser", package: "swift-argument-parser"),
99-
] + swiftSyntaxDependencies(["SwiftParser", "SwiftSyntax"]),
99+
] + swiftSyntaxDependencies(["SwiftDiagnostics", "SwiftParser", "SwiftSyntax"]),
100100
exclude: ["CMakeLists.txt"],
101101
linkerSettings: swiftformatLinkSettings
102102
),

0 commit comments

Comments
 (0)