Skip to content

Commit f9e4fe3

Browse files
committed
adding token to converter call
1 parent 0292909 commit f9e4fe3

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

plugin/admission/admission.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ const (
3232
type (
3333
// Request defines an admission request.
3434
Request struct {
35-
Event string `json:"event,omitempty"`
36-
User drone.User `json:"user,omitempty"`
35+
Event string `json:"event,omitempty"`
36+
User drone.User `json:"user,omitempty"`
37+
Token drone.Token `json:"token,omitempty"`
3738
}
3839

3940
// Plugin responds to a admission request.

plugin/converter/converter.go

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type (
2929
Build drone.Build `json:"build,omitempty"`
3030
Config drone.Config `json:"config,omitempty"`
3131
Repo drone.Repo `json:"repo,omitempty"`
32+
Token drone.Token `json:"token,omitempty"`
3233
}
3334

3435
// Plugin responds to a converter request.

plugin/validator/validater.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type (
3838
Build drone.Build `json:"build,omitempty"`
3939
Config drone.Config `json:"config,omitempty"`
4040
Repo drone.Repo `json:"repo,omitempty"`
41-
Token drone.Token `json:"token,omitempty"`
41+
Token drone.Token `json:"token,omitempty"` // not implemented
4242
}
4343

4444
// Plugin responds to a validator request.

0 commit comments

Comments
 (0)