diff --git a/webhook.go b/webhook.go index 63531d3..d5d41a1 100644 --- a/webhook.go +++ b/webhook.go @@ -73,8 +73,8 @@ func (w *webhooks) List(ctx context.Context, options WebhookListOptions) (*Webho type Event string const ( - EventWorkflowCompleted = "workflow-completed" - EventJobCompleted = "job-completed" + EventWorkflowCompleted Event = "workflow-completed" + EventJobCompleted Event = "job-completed" ) type WebhookCreateOptions struct { diff --git a/webhook_test.go b/webhook_test.go index ab684e6..e05b082 100644 --- a/webhook_test.go +++ b/webhook_test.go @@ -69,7 +69,7 @@ func Test_webhooks_Create(t *testing.T) { ID: "123", Type: "project", }, - Events: []*Event{EventType("workflow-completed")}, + Events: []*Event{EventType(EventWorkflowCompleted)}, VerifyTLS: Bool(false), }) if err != nil {