Repository navigation
ci: post coverage after merge and compare against main - #15
Merged
Merged
Conversation
Coverage
Least-covered classes
For 7cfa655. Full report in the CI run summary. |
Coverage after merge
Least-covered classes
For af8d9ce on main. Full report in the CI run summary. No earlier coverage of main to compare with. |
Merged
SamElhagDev
added a commit
that referenced
this pull request
Nov 30, 2026
Release **1.0.2**: `<Version>1.0.2</Version>` and a `CHANGELOG.md` entry. This is also the first real run of `release-draft.yml`. When this merges, a **draft** `v1.0.2` should appear on the merged commit with the 1.0.2 notes. Publishing that draft deploys it. Changes since 1.0.1 (release tooling only, nothing visitors see): - #16 drafts the GitHub Release automatically when a version merges. - #15 adds a coverage comment after merge, and a comparison with `main`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The coverage comment now covers a pull request from open to merged, for every merge style.
While the PR is open: the existing Coverage comment, updated in place on every push, now has a vs main column, the change against the latest coverage of
main.After it merges: CI on the commit that lands on
mainadds a Coverage after merge comment to the merged PR, compared withmainbefore the merge. The workflow finds the PR whosemerge_commit_shais that commit, which is:mainthat CI runs onBefore this, the push to
mainskipped the comment, so a PR never showed what actually landed (#12 is the example).Changes
ci.yml: on pushes tomain, keepSummary.jsonas amain-coverageartifact (90 days). That artifact is the baseline for the comparison.coverage-comment.yml: handles both cases. The security model is unchanged: it runs frommain, never checks out PR code, checks the PR number against the run's commit, and builds the comment from numbers only.Testing: both scripts were syntax-checked and dry-run against a real
Summary.jsonwith a mocked API, which confirmed that the open-PR comment updates in place and the merged comment is a separate one.A
workflow_runworkflow always runs frommain, so this PR still gets the old-style comment. Its own merge is the first real run of the new one: it will post "Coverage after merge" here, and because nomain-coverageartifact exists yet, that comment will have no comparison column. From the next PR on, the comparison column appears.No release needed: this changes CI only.