mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-04 20:28:14 +00:00
Fix submit queue when there are multiple LGTMs
This commit is contained in:
@@ -111,7 +111,9 @@ func validateLGTMAfterPush(client *github.Client, user, project string, pr *gith
|
||||
for ix := range events {
|
||||
event := &events[ix]
|
||||
if *event.Event == "labeled" && *event.Label.Name == "lgtm" {
|
||||
lgtmTime = event.CreatedAt
|
||||
if lgtmTime == nil || event.CreatedAt.After(*lgtmTime) {
|
||||
lgtmTime = event.CreatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
if lgtmTime == nil {
|
||||
|
||||
Reference in New Issue
Block a user