-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature description
Description
Currently, the coverage-action uses a dedicated storage branch (_xml_coverage_reports by default) to persist coverage reports for diff purposes, with one directory per branch.
Over time, as pull requests are merged and branches deleted, these directories accumulate and are no longer relevant.
Proposed feature
It would be useful if the action could automatically clean up old per-branch directories corresponding to branches that no longer exist on the remote.
A possible approach:
- When the action runs (e.g. during a PR build), it fetches the list of directories in the configured storage branch.
- It also retrieves the list of current remote branches.
- It compares the two lists.
- Any directories that don’t match an existing branch name can be safely deleted.
- The cleanup could then be committed and pushed automatically, or optionally gated behind a configuration flag (e.g.
cleanup-diff-storage: true).
I am not sure if this type of automatic cleanup would be in scope for this action, looking forward to hearing your feedback!
If you feel like this would be useful I can provide a PR.
Code of Conduct
- I agree to follow this project's Code of Conduct.
Contribution Guidelines
- I agree to follow this project's Contribution Guidelines.
Security Policy
- I agree to follow this project's Security Policy.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request