-
Notifications
You must be signed in to change notification settings - Fork 167
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
feat: allow warehouse git subs to select commits by tag #1446
Conversation
✅ Deploy Preview for docs-kargo-akuity-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1446 +/- ##
==========================================
+ Coverage 48.31% 48.77% +0.46%
==========================================
Files 131 131
Lines 11894 12026 +132
==========================================
+ Hits 5746 5866 +120
- Misses 5948 5959 +11
- Partials 200 201 +1 ☔ View full report in Codecov by Sentry. |
a6887ea
to
516a960
Compare
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
516a960
to
d3262a6
Compare
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
// IgnoreTags is a list of tags that must be ignored when determining the | ||
// newest commit of interest. No regular expressions or glob patterns are | ||
// supported yet. The value in this field only has any effect when the | ||
// CommitSelectionStrategy is Lexical, NewestTag, or SemVer. This field is | ||
// optional. | ||
// | ||
//+kubebuilder:validation:Optional | ||
IgnoreTags []string `json:"ignoreTags,omitempty"` |
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 question the need for ignoreTags, when:
- allowTags is a regular expression. And exclusion would be possible with a "negative lookahead":
https://stackoverflow.com/a/2078953 - The fact that ignoreTags is a list of explicit strings, whereas allowTags is a regexp, making them not symetrical. If we do decide to support ignoreTags, I would have expected that to be a regexp.
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.
Discussed offline. Image tag selection already has this feature and so it's worthwhile to offer the same with git.
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.
Great feature!
@jessesuen thank you so much for reviewing! |
Fixes #816
This is much smaller than it looks once you ignore codegen.
This works similarly to image selection by tag: