8 lines
246 B
Go
8 lines
246 B
Go
package workintake
|
|
|
|
// RequiresLabel reports whether the dispatch trigger matches on a label and
|
|
// therefore needs a non-empty label to be meaningful.
|
|
func RequiresLabel(trigger string) bool {
|
|
return trigger == "label" || trigger == "either"
|
|
}
|