mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 08:21:11 +00:00 
			
		
		
		
	[BRANDING] lookup .forgejo/workflows before .gitea/workflows
(cherry picked from commitffe51fd72f) (cherry picked from commita2b483b67d) (cherry picked from commit2b7d0bbde2) (cherry picked from commit3027fddbff) (cherry picked from commit023f7cc3b2) (cherry picked from commit95c3a3aa70) (cherry picked from commit1cc0ef5cc5) (cherry picked from commit467d082568) (cherry picked from commit5d8f40e865) (cherry picked from commit1d268662cc) (cherry picked from commit326a0fbcc1) (cherry picked from commit09368a4993) (cherry picked from commit8de4830da0)
This commit is contained in:
		
					parent
					
						
							
								052f2c2aa4
							
						
					
				
			
			
				commit
				
					
						0a7e43f29c
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -38,7 +38,10 @@ func IsWorkflow(path string) bool {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func ListWorkflows(commit *git.Commit) (git.Entries, error) {
 | 
					func ListWorkflows(commit *git.Commit) (git.Entries, error) {
 | 
				
			||||||
	tree, err := commit.SubTree(".gitea/workflows")
 | 
						tree, err := commit.SubTree(".forgejo/workflows")
 | 
				
			||||||
 | 
						if _, ok := err.(git.ErrNotExist); ok {
 | 
				
			||||||
 | 
							tree, err = commit.SubTree(".gitea/workflows")
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	if _, ok := err.(git.ErrNotExist); ok {
 | 
						if _, ok := err.(git.ErrNotExist); ok {
 | 
				
			||||||
		tree, err = commit.SubTree(".github/workflows")
 | 
							tree, err = commit.SubTree(".github/workflows")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue