Skip to content

Commit

Permalink
adding token to converter call
Browse files Browse the repository at this point in the history
  • Loading branch information
bradrydzewski committed Mar 8, 2022
1 parent 0292909 commit f9e4fe3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions plugin/admission/admission.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ const (
type (
// Request defines an admission request.
Request struct {
Event string `json:"event,omitempty"`
User drone.User `json:"user,omitempty"`
Event string `json:"event,omitempty"`
User drone.User `json:"user,omitempty"`
Token drone.Token `json:"token,omitempty"`
}

// Plugin responds to a admission request.
Expand Down
1 change: 1 addition & 0 deletions plugin/converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type (
Build drone.Build `json:"build,omitempty"`
Config drone.Config `json:"config,omitempty"`
Repo drone.Repo `json:"repo,omitempty"`
Token drone.Token `json:"token,omitempty"`
}

// Plugin responds to a converter request.
Expand Down
2 changes: 1 addition & 1 deletion plugin/validator/validater.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type (
Build drone.Build `json:"build,omitempty"`
Config drone.Config `json:"config,omitempty"`
Repo drone.Repo `json:"repo,omitempty"`
Token drone.Token `json:"token,omitempty"`
Token drone.Token `json:"token,omitempty"` // not implemented
}

// Plugin responds to a validator request.
Expand Down

0 comments on commit f9e4fe3

Please sign in to comment.