Support ChangedFiles for Github & Gitlab PRs and Gitlab pushes (#697)

This commit is contained in:
Anbraten
2022-01-17 23:46:59 +01:00
committed by GitHub
parent 50570cba5c
commit 401072abb1
27 changed files with 849 additions and 565 deletions

View File

@@ -284,7 +284,7 @@ func (c *Coding) Branches(ctx context.Context, u *model.User, r *model.Repo) ([]
// Hook parses the post-commit hook from the Request body and returns the
// required data in a standard format.
func (c *Coding) Hook(r *http.Request) (*model.Repo, *model.Build, error) {
func (c *Coding) Hook(ctx context.Context, r *http.Request) (*model.Repo, *model.Build, error) {
repo, build, err := parseHook(r)
if build != nil {
build.Avatar = c.resourceLink(build.Avatar)