mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-27 03:53:19 +00:00
Add cron feature (#934)
https://woodpecker-ci.org/docs/usage/cron Co-authored-by: Anbraten <anton@ju60.de> Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
@@ -291,6 +291,12 @@ func (c *Coding) Branches(ctx context.Context, u *model.User, r *model.Repo) ([]
|
||||
return []string{r.Branch}, nil
|
||||
}
|
||||
|
||||
// BranchHead returns the sha of the head (lastest commit) of the specified branch
|
||||
func (c *Coding) BranchHead(ctx context.Context, u *model.User, r *model.Repo, branch string) (string, error) {
|
||||
// TODO(1138): missing implementation
|
||||
return "", fmt.Errorf("missing implementation")
|
||||
}
|
||||
|
||||
// Hook parses the post-commit hook from the Request body and returns the
|
||||
// required data in a standard format.
|
||||
func (c *Coding) Hook(ctx context.Context, r *http.Request) (*model.Repo, *model.Build, error) {
|
||||
|
||||
Reference in New Issue
Block a user