Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements for the GitHub Annotations limit #527

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

Timbals
Copy link
Contributor

@Timbals Timbals commented Feb 28, 2024

GitHub only displays 10 error annotations and silently drops the rest.
https://github.com/orgs/community/discussions/26680
https://github.com/orgs/community/discussions/68471

This PR adds a warning message when more than 10 violations are found.
Additionally, the GitHubAnnotationReporter now also outputs the normal command line report, so that the log contains all necessary information when not everything can be displayed using annotations.
The action setup also uses some grouping now to de-clutter the log.

Example run with more than 10 violations:
https://github.com/Timbals/CryptoAnalysis-demo/actions/runs/8086032882

This removes some noise from the logs by creating a grouping that it collapsed by default.
This gets output in addition to the normal annotations. The GitHub interface only displays 10 error annotations, so this is useful when the number of violations exceeds that amount.

Also outputs grouping commands so that the report can be found more easily among the other noise in the log.
@schlichtig schlichtig requested a review from smeyer198 March 8, 2024 15:02
@schlichtig schlichtig merged commit b440c21 into CROSSINGTUD:develop Mar 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants