mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +00:00
Merge remote-tracking branch 'origin/0.4.0' into 0.4.0
This commit is contained in:
commit
ef6b621f7f
3 changed files with 11 additions and 5 deletions
|
@ -26,7 +26,8 @@ secret = ""
|
||||||
expires = ""
|
expires = ""
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
path = "/etc/drone/drone.db"
|
driver="sqlite3"
|
||||||
|
datasource="/var/lib/drone/drone.sqlite"
|
||||||
|
|
||||||
[docker]
|
[docker]
|
||||||
cert = ""
|
cert = ""
|
||||||
|
|
6
dist/drone/etc/drone/drone.toml
vendored
6
dist/drone/etc/drone/drone.toml
vendored
|
@ -8,7 +8,8 @@ key = ""
|
||||||
# expires = ""
|
# expires = ""
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
path = "/var/lib/drone/drone.sqlite"
|
driver="sqlite3"
|
||||||
|
datasource="/var/lib/drone/drone.sqlite"
|
||||||
|
|
||||||
[docker]
|
[docker]
|
||||||
cert = ""
|
cert = ""
|
||||||
|
@ -16,7 +17,7 @@ key = ""
|
||||||
addr = "unix:///var/run/docker.sock"
|
addr = "unix:///var/run/docker.sock"
|
||||||
swarm = ""
|
swarm = ""
|
||||||
|
|
||||||
# [service]
|
# [remote]
|
||||||
# kind = "github"
|
# kind = "github"
|
||||||
# base = "https://github.com"
|
# base = "https://github.com"
|
||||||
# orgs = []
|
# orgs = []
|
||||||
|
@ -33,4 +34,3 @@ swarm = ""
|
||||||
|
|
||||||
# [agents]
|
# [agents]
|
||||||
# secret = ""
|
# secret = ""
|
||||||
|
|
||||||
|
|
|
@ -251,6 +251,10 @@ func (g *GitHub) push(r *http.Request) (*common.Hook, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if hook.Deleted {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
repo := &common.Repo{}
|
repo := &common.Repo{}
|
||||||
repo.Owner = hook.Repo.Owner.Login
|
repo.Owner = hook.Repo.Owner.Login
|
||||||
if len(repo.Owner) == 0 {
|
if len(repo.Owner) == 0 {
|
||||||
|
@ -336,7 +340,8 @@ func (g *GitHub) pullRequest(r *http.Request) (*common.Hook, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type pushHook struct {
|
type pushHook struct {
|
||||||
Ref string `json:"ref"`
|
Ref string `json:"ref"`
|
||||||
|
Deleted bool `json:"deleted"`
|
||||||
|
|
||||||
Head struct {
|
Head struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
|
|
Loading…
Reference in a new issue