Skip to content

Commit 4e92eba

Browse files
nam-hleclaude
andcommitted
chore: skip workflows on draft PRs instead of branch name
Use draft status check instead of release-please branch name filter. This way converting a draft PR to "Ready for review" triggers CI. Add ready_for_review event type so workflows re-trigger on conversion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 56ff1cf commit 4e92eba

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: CI
22

33
on:
44
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
56
paths-ignore:
67
- "*.md"
78
- "packages/docs/**"
@@ -36,7 +37,7 @@ concurrency:
3637
jobs:
3738
build:
3839
name: Build
39-
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'release-please--') }}
40+
if: ${{ github.event.pull_request.draft != true }}
4041
runs-on: ubuntu-latest
4142
timeout-minutes: 10
4243
steps:
@@ -72,7 +73,7 @@ jobs:
7273

7374
check:
7475
name: Lint
75-
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'release-please--') }}
76+
if: ${{ github.event.pull_request.draft != true }}
7677
runs-on: ubuntu-latest
7778
timeout-minutes: 10
7879
steps:
@@ -84,7 +85,7 @@ jobs:
8485

8586
test:
8687
name: Test Node ${{ matrix.node-version }} on ${{ matrix.os }}
87-
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'release-please--') }}
88+
if: ${{ github.event.pull_request.draft != true }}
8889
needs: [build]
8990
runs-on: ${{ matrix.os }}
9091
timeout-minutes: 15

.github/workflows/release-any-commit.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Release Any Commit
22

33
on:
44
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
56
paths-ignore:
67
- "*.md"
78
- "packages/docs/**"
@@ -24,7 +25,7 @@ concurrency:
2425
jobs:
2526
release-any-commit:
2627
name: Release Any Commit
27-
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'release-please--') }}
28+
if: ${{ github.event.pull_request.draft != true }}
2829
runs-on: ubuntu-latest
2930
timeout-minutes: 10
3031

.github/workflows/size-limit.yml

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

33
on:
44
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
56
branches:
67
- main
78
paths-ignore:
@@ -20,7 +21,7 @@ concurrency:
2021
jobs:
2122
size-limit:
2223
name: Size Limit
23-
if: ${{ !startsWith(github.head_ref, 'release-please--') }}
24+
if: ${{ github.event.pull_request.draft != true }}
2425
runs-on: ubuntu-latest
2526
timeout-minutes: 10
2627
strategy:

0 commit comments

Comments
 (0)