-
Notifications
You must be signed in to change notification settings - Fork 60
[FEATURE] Allow conventions to append additional information to job summary #2974
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allow registering conventions by using the IRuntimeServiceCollection
interface. Similar to AddService
add a method for AddConvention
.
Added |
fb70d04
to
f2bbe27
Compare
f2bbe27
to
92218c7
Compare
This PR implements the ability for conventions to contribute custom content to PSRule job summaries, providing extensibility for the generated output.
Changes Made
Core Implementation
IJobSummaryContributor
interface: Allows conventions to provide custom content sectionsJobSummarySection
class: Represents custom sections with title and markdown contentJobSummaryWriter
: Now collects and displays convention contributions in job summariesAssertPipelineBuilder
: Passes convention contributors toJobSummaryWriter
during pipeline constructionKey Features
Usage Example
Conventions can implement the
IJobSummaryContributor
interface to add custom sections:The job summary will include additional sections after the standard PSRule content:
Testing
This implementation provides the requested extensibility for job summaries while maintaining all existing functionality and following PSRule's architectural patterns.
Fixes #2667.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.