-
Notifications
You must be signed in to change notification settings - Fork 38
feat: Add support for JUnit XML material type (#120) #135
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
Conversation
Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
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.
Cool, good start
…dded tests Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
…o mod tidy Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
…efactoring Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
…evert the comment change Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
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.
Looks pretty good!
The only issue I'd ask review for is the need of having a non-used context. Other than that see some optional nitpicks about readability.
Thanks!
…pply feedback from the PR review Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
…pply feedback from the PR review, remove unnecessary tests Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
…pply feedback from the PR review Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
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.
LGTM!
…pply feedback from the PR review Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
…pply feedback from the PR review Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
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.
LGTM! 🚀 it!
This PR aims to add support for a new material type: JUnit XML.
We know that more types will be added in the future, so I propose to extract the upload&craft code and move it to a new reusable private function uploadAndCraft. All similar materials, such as SBOMs (SPDX, CycloneDX), Artifact, and more, may use this function instead of duplicating the code in the Craft method.
Documentation is updated in this PR chainloop-dev/docs#126
closes #120