mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
Send both build and config in SenderAllowed
This commit is contained in:
parent
16b6f48213
commit
9d8320e5ea
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,11 @@ func NewRemote(endpoint string) model.SenderService {
|
|||
|
||||
func (p *plugin) SenderAllowed(user *model.User, repo *model.Repo, build *model.Build, conf *model.Config) (bool, error) {
|
||||
path := fmt.Sprintf("%s/senders/%s/%s/%s/verify", p.endpoint, repo.Owner, repo.Name, build.Sender)
|
||||
err := internal.Send("POST", path, build, nil)
|
||||
data := map[string]interface{}{
|
||||
"build": build,
|
||||
"config": conf,
|
||||
}
|
||||
err := internal.Send("POST", path, &data, nil)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue