Skip to content

Commit 67f27ee

Browse files
committed
WIP: Pull request comment
1 parent 8b55263 commit 67f27ee

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Pull request
22

33
on:
4-
pull_request:
5-
types: [opened, reopened, synchronize]
4+
# pull_request:
5+
# types: [opened, reopened, synchronize]
6+
pull_request_review:
7+
types: [submitted, edited]
68

79
concurrency:
810
group: ${{ github.workflow }}-${{ github.ref }}
@@ -12,11 +14,13 @@ jobs:
1214
tests:
1315
name: Test
1416
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
17+
if: (github.event_name == 'pull_request') || (github.event_name == 'pull_request_review' && contains(github.event.review.state, 'Re-run GitHub Actions'))
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+
if: (github.event_name == 'pull_request') || (github.event_name == 'pull_request_review' && contains(github.event.review.state, 'Re-run GitHub Actions'))
2024
with:
2125
license_header_check_project_name: "Swift.org"
2226
api_breakage_check_allowlist_path: "api-breakages.txt"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Pull request comment
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
run_pr_tests:
9+
uses: ./.github/workflows/pull_request.yml

0 commit comments

Comments
 (0)