-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a webhook event struct (#48)
- Loading branch information
Neal
committed
Apr 9, 2020
1 parent
5750ec2
commit 80de769
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |