include token in extension request

pull/72/head
Brad Rydzewski 2 years ago
parent 2e6d0f21d2
commit 0292909783

@ -375,6 +375,13 @@ type (
Password string `json:"password"`
}
// Token provides an access and refresh token.
Token struct {
Access string `json:"access"`
Refresh string `json:"refresh"`
}
// CardInput provides adaptive card schema and data.
CardInput struct {
Schema string `json:"schema"`
Data json.RawMessage `json:"data"`

@ -28,6 +28,7 @@ type (
Request struct {
Build drone.Build `json:"build,omitempty"`
Repo drone.Repo `json:"repo,omitempty"`
Token drone.Token `json:"token,omitempty"`
}
// Plugin responds to a configuration request.

@ -38,6 +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"`
}
// Plugin responds to a validator request.

Loading…
Cancel
Save