-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Description
Being able to view a summary of the PaC results as a job summary and as a comment when running in a PR, as opposed to the current error and warning annotations visible when you view the run of the action, would greatly improve the user experience for developers. This would be particularly useful for teams that use PaC as check on their PRs.
Potential Solution
Add the ability to enable PR comments with an argvs
flag, similar to --display
. Adding the flag would cause PaC to add a comment to the PR if it is running in a PR and have no effect otherwise.
The comment should include an indication of the status of the policy checks. For example, how many violations were found for each technology type. When the --display
flag is enabled, it could also add information about the violations in a list or table format, allowing devs to easily identify the source(s) of the violations.
This would involve:
- Adding an
argvs
flag for enabling the PR comment, e.g.--pr-comment
- Tracking policy warnings and violations instead of just tracking the number of warnings and violations
- Building a summary of the results, either during the checks or afterwards
- Output the summary to both the Job Summary output (viewable in the Summary view of the workflow run) and as a comment in the PR (when the flag is enabled, and the action runs in a PR)
Would potentially include some changes to ghastoolkit to help enable these changes.