We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 986bba6 commit e3fcf55Copy full SHA for e3fcf55
.github/workflows/commit.yaml
@@ -5,6 +5,10 @@ on:
5
branches:
6
- "**"
7
8
+ pull_request:
9
+ branches:
10
+ - main
11
+
12
# Allow manual trigger
13
workflow_dispatch:
14
@@ -47,7 +51,8 @@ jobs:
47
51
id: affected
48
52
uses: loadingalias/cargo-rail-action@88618d12427cee84efbe1ef556dd9f8445acad95 # v1.0.2
49
53
with:
50
- since: ${{ github.event.before }}
54
+ # For push: compare against previous commit; for PR: compare against base branch
55
+ since: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
56
57
# ==========================================================================
58
# Job 2: CI (skipped if docs-only)
0 commit comments