Skip to content

Commit

Permalink
feat: add a webhook event struct (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neal committed Apr 9, 2020
1 parent 5750ec2 commit 80de769
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions webhook.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright (c) 2020 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.

package types

import "github.com/go-vela/types/library"

// Webhook defines a struct that is used to return
// the required data when processing webhook event
// a for a source provider event.
type Webhook struct {
Comment string
PRNumber int
Hook *library.Hook
Repo *library.Repo
Build *library.Build
}

0 comments on commit 80de769

Please sign in to comment.