You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cd112d6
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
## Unreleased
4
4
5
+
### Fixed
6
+
7
+
- Non-default branch pushes no longer associate coverage with an unrelated fork pull request that uses the same branch name.
8
+
- When a pushed branch has multiple open pull requests, the action prefers the pull request targeting the default branch. If no unique default-branch target exists, the upload skips successfully instead of selecting arbitrarily or failing CI.
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,8 @@ The action auto-detects the event type and resolves the correct behavior:
89
89
- **Non-default branch `push` with an open PR**: Looks up the PR number and uploads coverage for the pushed commit.
90
90
- **Non-default branch `push` without an open PR**: Skips successfully instead of sending an upload request the API cannot associate with a PR.
91
91
92
+
When a pushed branch has multiple open pull requests in the repository, the action prefers the pull request targeting the default branch because coverage comparisons currently use the default branch as their baseline. If there is no unique default-branch target, the action skips the upload successfully and logs a warning.
93
+
92
94
Configure workflows to run for pull requests and pushes to the default branch:
Copy file name to clipboardExpand all lines: docs/workflow-strategies.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ In a separate-job layout, the test job generates the report and the upload job r
25
25
- Pushes with an open pull request upload using the discovered PR number.
26
26
- Pushes without an open pull request skip successfully.
27
27
28
+
If the same pushed branch has multiple open pull requests, the action prefers the pull request targeting the default branch because coverage comparisons currently use the default branch as their baseline. If no unique default-branch target exists, the action skips successfully with a warning rather than choosing arbitrarily or failing CI.
29
+
28
30
If a branch is pushed before its pull request is opened, coverage is not uploaded until the next push. To upload coverage when a pull request is opened without requiring another push, use a `pull_request` trigger.
29
31
30
32
Push-only workflows have an existing requirement to grant the upload job `pull-requests: read`:
0 commit comments