File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,19 @@ func deleteBranch(ctx *context.Context, branchName string) error {
126126 return err
127127 }
128128
129- // Don't return error here
129+ // Don't return error below this
130+ if err := models .PushUpdate (branchName , models.PushUpdateOptions {
131+ RefFullName : git .BranchPrefix + branchName ,
132+ OldCommitID : commit .ID .String (),
133+ NewCommitID : git .EmptySHA ,
134+ PusherID : ctx .User .ID ,
135+ PusherName : ctx .User .Name ,
136+ RepoUserName : ctx .Repo .Owner .Name ,
137+ RepoName : ctx .Repo .Repository .Name ,
138+ }); err != nil {
139+ log .Error (4 , "Update: %v" , err )
140+ }
141+
130142 if err := ctx .Repo .Repository .AddDeletedBranch (branchName , commit .ID .String (), ctx .User .ID ); err != nil {
131143 log .Warn ("AddDeletedBranch: %v" , err )
132144 }
You can’t perform that action at this time.
0 commit comments