-
Notifications
You must be signed in to change notification settings - Fork 43
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
Remove versioner in favor of adding the function to the providers #3345
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.
✅ No Invisible Unicode Characters Detected.
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.
just comments since the lint needs to be fixed anyway. Looking good though!
|
||
GetCredential() GitHubCredential | ||
GetRepository(context.Context, string, string) (*github.Repository, error) | ||
GetBranchProtection(context.Context, string, string, string) (*github.Protection, error) | ||
UpdateBranchProtection(context.Context, string, string, string, *github.ProtectionRequest) error | ||
ListPackagesByRepository(context.Context, string, string, int64, int, int) ([]*github.Package, error) | ||
GetPackageByName(context.Context, string, string, string) (*github.Package, error) | ||
GetPackageVersions(context.Context, string, string, string) ([]*github.PackageVersion, error) | ||
GetPackageVersionByTag(context.Context, string, string, string, string) (*github.PackageVersion, error) |
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.
love this
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.
✅ No Invisible Unicode Characters Detected.
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.
✅ No Mixed Scripts Detected.
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.
✅ No Invisible Unicode Characters Detected.
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.
✅ No Mixed Scripts Detected.
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.
✅ No Invisible Unicode Characters Detected.
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.
✅ No Mixed Scripts Detected.
This removes the `versioner` from the artifact ingester. Instead of having this logic be part of the ingester, this simplifies things by moving the details to the relevant providers. Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
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 and manual tests with ghcr and the github attestation work went fine. Just be mindful of prod freeze and the upcoming prod deployment when merging.
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.
I love how this change ended up, great work!
Summary
This removes the
versioner
from the artifact ingester. Instead ofhaving this logic be part of the ingester, this simplifies things by
moving the details to the relevant providers.
Change Type
Mark the type of change your PR introduces:
Testing
Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.
Review Checklist: