Add GitHub Actions job summary support for issues summary #611
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.
This PR implements GitHub Actions job summary support for the issues summary feature, enabling builds running on GitHub Actions to display a formatted summary of code issues directly in the job summary view.
What's Changed
Previously, the
CreateSummaryIssuesReport
method inGitHubActionsBuildServer
was not implemented and simply contained a comment stating "Summary issues report is not supported for GitHub Actions." This meant that when running Cake Issues Recipe on GitHub Actions with summary reports enabled, users would not see any summary output.This change implements the missing functionality by:
GitHubActionsSummary.cshtml
) for both Cake Script and Frosting versions that format issues into a clean, readable tableCreateSummaryIssuesReport
method to generate the summary and append it to the$GITHUB_STEP_SUMMARY
environment variable fileHow It Works
When issues summary is enabled and the build runs on GitHub Actions:
$GITHUB_STEP_SUMMARY
environment variableExample Output
When issues are found:
When no issues are found:
Both Cake Script and Frosting versions are kept in sync and maintain identical functionality.
Fixes #610.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.