mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
some initial work on a builtin build runner
This commit is contained in:
@@ -172,7 +172,11 @@ func GetHook(client *github.Client, owner, name, url string) (*github.Hook, erro
|
||||
return nil, err
|
||||
}
|
||||
for _, hook := range hooks {
|
||||
if strings.HasPrefix(hook.Config["url"].(string), url) {
|
||||
hookurl, ok := hook.Config["url"].(string)
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
if strings.HasPrefix(hookurl, url) {
|
||||
return &hook, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user