mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 08:23:48 +02:00
fixe #620
This commit is contained in:
parent
38fd589083
commit
1fd1c5e292
@ -225,8 +225,7 @@ func CreateUpdateKey(client *github.Client, owner, name, title, key string) (*gi
|
||||
if k != nil {
|
||||
k.Title = github.String(title)
|
||||
k.Key = github.String(key)
|
||||
var updated, _, err = client.Repositories.EditKey(owner, name, *k.ID, k)
|
||||
return updated, err
|
||||
client.Repositories.DeleteKey(owner, name, *k.ID)
|
||||
}
|
||||
|
||||
return CreateKey(client, owner, name, title, key)
|
||||
|
Loading…
Reference in New Issue
Block a user