-
Notifications
You must be signed in to change notification settings - Fork 6.3k
feat: support gitea PR labels filter in applicationset PR generator (#21115) #21148
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: support gitea PR labels filter in applicationset PR generator (#21115) #21148
Conversation
❗ Preview Environment undeploy from Bunnyshell failedSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21148 +/- ##
==========================================
+ Coverage 59.97% 60.01% +0.04%
==========================================
Files 344 344
Lines 57765 57778 +13
==========================================
+ Hits 34644 34677 +33
+ Misses 20357 20340 -17
+ Partials 2764 2761 -3 ☔ View full report in Codecov by Sentry. |
Signed-off-by: livelxw <livelxw@live.cn>
fbc0f3e
to
d65d300
Compare
Signed-off-by: livelxw <livelxw@live.cn>
There is an error in unit tests. How to fix that? |
Signed-off-by: livelxw <livelxw@live.cn>
Signed-off-by: livelxw <livelxw@live.cn>
// containLabels returns true if gotLabels contains expectedLabels | ||
func giteaContainLabels(expectedLabels []string, gotLabels []*gitea.Label) bool { | ||
gotLabelNamesMap := make(map[string]bool) | ||
for i := 0; i < len(gotLabels); i += 1 { |
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.
Do i++
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.
Fixed.
Signed-off-by: livelxw <livelxw@live.cn>
Signed-off-by: livelxw <livelxw@live.cn>
Signed-off-by: livelxw <livelxw@live.cn>
Signed-off-by: livelxw <livelxw@live.cn>
Hi! Sorry for my impatience. Any updates on this? I'm looking forward to this PR to be used with Forgejo flows |
…itea-pr-labels-filter Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.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
…#21115) (argoproj#21148) Signed-off-by: livelxw <livelxw@live.cn> Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
…#21115) (argoproj#21148) Signed-off-by: livelxw <livelxw@live.cn> Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Signed-off-by: Kanika Rana <krana@redhat.com>
…#21115) (argoproj#21148) Signed-off-by: livelxw <livelxw@live.cn> Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Signed-off-by: Oliver Gondža <ogondza@gmail.com>
…#21115) (argoproj#21148) Signed-off-by: livelxw <livelxw@live.cn> Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
…#21115) (argoproj#21148) Signed-off-by: livelxw <livelxw@live.cn> Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com> Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Fixes #21115
Checklist: