mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Add more webhooks support and refactor webhook templates directory (#3929)
* add more webhook support * move hooks templates to standalone dir and add more webhooks ui * fix tests * update vendor checksum * add more webhook support * move hooks templates to standalone dir and add more webhooks ui * fix tests * update vendor checksum * update vendor Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * load attributes when created release * update comparsion doc
This commit is contained in:
		@@ -73,7 +73,7 @@ func TestWebhook_UpdateEvent(t *testing.T) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func TestWebhook_EventsArray(t *testing.T) {
 | 
			
		||||
	assert.Equal(t, []string{"create", "push", "pull_request"},
 | 
			
		||||
	assert.Equal(t, []string{"create", "delete", "fork", "push", "issues", "issue_comment", "pull_request", "repository", "release"},
 | 
			
		||||
		(&Webhook{
 | 
			
		||||
			HookEvent: &HookEvent{SendEverything: true},
 | 
			
		||||
		}).EventsArray(),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user