mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-02 12:42:21 +00:00
Manage TAG and BRANCH events sent from gogs
This commit is contained in:
parent
82c534ad18
commit
c8d1fe0468
2 changed files with 1 additions and 1 deletions
|
@ -5,6 +5,7 @@ const (
|
||||||
EventPull = "pull_request"
|
EventPull = "pull_request"
|
||||||
EventTag = "tag"
|
EventTag = "tag"
|
||||||
EventDeploy = "deployment"
|
EventDeploy = "deployment"
|
||||||
|
EventBranch = "branch"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -171,7 +171,6 @@ func (c *client) File(u *model.User, r *model.Repo, b *model.Build, f string) ([
|
||||||
buildRef = b.Ref
|
buildRef = b.Ref
|
||||||
}
|
}
|
||||||
cfg, err := client.GetFile(r.Owner, r.Name, buildRef, f)
|
cfg, err := client.GetFile(r.Owner, r.Name, buildRef, f)
|
||||||
|
|
||||||
return cfg, err
|
return cfg, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue