Skip to content

Commit

Permalink
get sha of tag in gitea
Browse files Browse the repository at this point in the history
  • Loading branch information
techknowlogick committed Apr 18, 2019
1 parent b318186 commit 599d25c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scm/driver/gitea/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ type (
createHook struct {
Ref string `json:"ref"`
RefType string `json:"ref_type"`
Sha string `json:"sha"`
DefaultBranch string `json:"default_branch"`
Repository repository `json:"repository"`
Sender user `json:"sender"`
Expand Down Expand Up @@ -172,6 +173,7 @@ func convertTagHook(dst *createHook, action scm.Action) *scm.TagHook {
Action: action,
Ref: scm.Reference{
Name: dst.Ref,
Sha: dst.Sha,
},
Repo: *convertRepository(&dst.Repository),
Sender: *convertUser(&dst.Sender),
Expand Down

0 comments on commit 599d25c

Please sign in to comment.