Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
trigger: Name isn't required, can be auto-generated
Browse files Browse the repository at this point in the history
  • Loading branch information
briancain committed May 3, 2023
1 parent 75ced63 commit 361ed11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/ptypes/trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func ValidateUpsertTriggerRequest(v *pb.UpsertTriggerRequest) error {
validation.Field(&v.Trigger.Project, validation.Required),
// Trigger Name is also the "path" in the HTTP request, so we will
// validate the name against our valid path token check
validation.Field(&v.Trigger.Name, validation.Required, validation.By(validatePathToken)),
validation.Field(&v.Trigger.Name, validation.By(validatePathToken)),
}
}),
))
Expand Down

0 comments on commit 361ed11

Please sign in to comment.