ci: check-coverage action pr commenting feature#2
Merged
benceharomi merged 2 commits intomainfrom Jun 30, 2025
Merged
Conversation
📊 Coverage Report
Details: 4 of 4 lines covered. |
There was a problem hiding this comment.
Pull Request Overview
This PR improves the check-coverage GitHub action by adding functionality to post and update PR comments with the code coverage results. Key changes include:
- Adding branch filtering for push events and providing a github-token in the workflow.
- Updating the composite action to include robust file checks, validations, and PR comment update/creation logic.
- Enhancing logging and error messages for improved clarity in the coverage process.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/ci.yaml | Added branch filter for push events and passed the github-token to the action. |
| .github/actions/check-coverage/action.yaml | Extended the coverage check action with PR commenting capabilities and improved error handling. |
Comments suppressed due to low confidence (1)
.github/actions/check-coverage/action.yaml:30
- [nitpick] Consider gating or consolidating debug log output with a verbosity flag to prevent excessive logging in production runs.
echo "🔍 Debug: Processing coverage file \"${{ inputs.lcov_file }}\""
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.
Description
Added PR commenting functionality to the check-coverage GitHub action (post a comment with the result of the code coverage check to an opened PR).
Functional requirements
Testing requirements
Test passing coverage checks (these are tested in PR #3):
Test failing coverage checks (these are tested in PR #4):