Skip coverage upload for merge queue runs

Merge queue commits are ephemeral — coverage was already uploaded
during the PR, and the push to the default branch will upload
results for the final landed commit. Log a warning and exit
successfully instead of wasting an API call.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Joshua Hale
2026-04-01 12:27:06 +01:00
parent 44487309c0
commit d237c0c90e
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -104,3 +104,4 @@ The repository must have the following feature flags enabled:
## Caveats
- **Fork PRs are not supported.** Pull requests from forks don't have write access to the base repository, so the action cannot upload coverage. When a fork PR is detected, the action exits gracefully with a notice — it won't fail your CI.
- **Merge queue runs are skipped.** Coverage should be uploaded for PRs and the default branch, making merge queue uploads unnecessary. The action logs a warning and exits successfully.