diff options
-rw-r--r-- | models/action.go | 1 | ||||
-rw-r--r-- | vendor/github.com/gogs/go-gogs-client/repo_hook.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/models/action.go b/models/action.go index 7d196652..c19101b5 100644 --- a/models/action.go +++ b/models/action.go @@ -604,6 +604,7 @@ func CommitRepoAction(opts CommitRepoActionOptions) error { if err = PrepareWebhooks(repo, HOOK_EVENT_CREATE, &api.CreatePayload{ Ref: refName, RefType: "tag", + Sha: opts.NewCommitID, DefaultBranch: repo.DefaultBranch, Repo: apiRepo, Sender: apiPusher, diff --git a/vendor/github.com/gogs/go-gogs-client/repo_hook.go b/vendor/github.com/gogs/go-gogs-client/repo_hook.go index 3d06b9fc..7f878915 100644 --- a/vendor/github.com/gogs/go-gogs-client/repo_hook.go +++ b/vendor/github.com/gogs/go-gogs-client/repo_hook.go @@ -114,6 +114,7 @@ var ( type CreatePayload struct { Ref string `json:"ref"` RefType string `json:"ref_type"` + Sha string `json:"sha"` DefaultBranch string `json:"default_branch"` Repo *Repository `json:"repository"` Sender *User `json:"sender"` |