mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Fix webhook bug (#10427)
Co-authored-by: techknowlogick <matti@mdranta.net>
This commit is contained in:
		| @@ -691,12 +691,12 @@ func (m *webhookNotifier) NotifyDeleteRef(pusher *models.User, repo *models.Repo | |||||||
|  |  | ||||||
| 	if err := webhook_module.PrepareWebhooks(repo, models.HookEventDelete, &api.DeletePayload{ | 	if err := webhook_module.PrepareWebhooks(repo, models.HookEventDelete, &api.DeletePayload{ | ||||||
| 		Ref:        refName, | 		Ref:        refName, | ||||||
| 		RefType:    "branch", | 		RefType:    refType, | ||||||
| 		PusherType: api.PusherTypeUser, | 		PusherType: api.PusherTypeUser, | ||||||
| 		Repo:       apiRepo, | 		Repo:       apiRepo, | ||||||
| 		Sender:     apiPusher, | 		Sender:     apiPusher, | ||||||
| 	}); err != nil { | 	}); err != nil { | ||||||
| 		log.Error("PrepareWebhooks.(delete branch): %v", err) | 		log.Error("PrepareWebhooks.(delete %s): %v", refType, err) | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user