Skip to content

Commit

Permalink
Merge pull request #27 from Nezz7/main
Browse files Browse the repository at this point in the history
Fix EventWorkflowCompleted and EventJobCompleted type
  • Loading branch information
grezar committed Oct 26, 2022
2 parents d3a1dcd + e5c6b11 commit add5515
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit add5515

Please sign in to comment.