issue 974: two work-queue streams for the checks of pull requests (CHECKS_READY, CHECKS_OTHER), their workers, grants and writer
This commit is contained in:
@@ -671,6 +671,8 @@ func consumerWho(stream, consumer string) string {
|
||||
switch {
|
||||
case consumer == broker.ControllerName || consumer == broker.MergesConsumerName:
|
||||
return "the controller"
|
||||
case broker.IsCheckStream(stream):
|
||||
return "the holder of " + broker.TheBuildSeat
|
||||
case strings.HasPrefix(stream, "SEAT_") && strings.HasSuffix(consumer, "_worker"):
|
||||
seat := strings.ToLower(strings.ReplaceAll(strings.TrimSuffix(strings.TrimPrefix(consumer, "SEAT_"), "_worker"), "_", "-"))
|
||||
return "the holder of " + seat
|
||||
|
||||
Reference in New Issue
Block a user