mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Support triggering workflows by wiki related events (#24119)
This PR is to support triggering workflows by wiki related events like creating, editing or deleting wiki pages. In GitHub, this event is called [gollum](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#gollum)
This commit is contained in:
		@@ -92,6 +92,13 @@ func TestDetectMatched(t *testing.T) {
 | 
			
		||||
			yamlOn:       "on:\n  registry_package:\n    types: [updated]",
 | 
			
		||||
			expected:     false,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			desc:         "HookEventWiki(wiki) matches githubEventGollum(gollum)",
 | 
			
		||||
			triggedEvent: webhook_module.HookEventWiki,
 | 
			
		||||
			payload:      nil,
 | 
			
		||||
			yamlOn:       "on: gollum",
 | 
			
		||||
			expected:     true,
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	for _, tc := range testCases {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user