mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 10:44:12 +01:00 
			
		
		
		
	Backport #32501 by wxiaoguang fix #32496 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		
							parent
							
								
									a4263d341c
								
							
						
					
					
						commit
						f79f8e13e3
					
				@ -248,6 +248,9 @@ func (a *Action) GetActDisplayNameTitle(ctx context.Context) string {
 | 
			
		||||
// GetRepoUserName returns the name of the action repository owner.
 | 
			
		||||
func (a *Action) GetRepoUserName(ctx context.Context) string {
 | 
			
		||||
	a.loadRepo(ctx)
 | 
			
		||||
	if a.Repo == nil {
 | 
			
		||||
		return "(non-existing-repo)"
 | 
			
		||||
	}
 | 
			
		||||
	return a.Repo.OwnerName
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -260,6 +263,9 @@ func (a *Action) ShortRepoUserName(ctx context.Context) string {
 | 
			
		||||
// GetRepoName returns the name of the action repository.
 | 
			
		||||
func (a *Action) GetRepoName(ctx context.Context) string {
 | 
			
		||||
	a.loadRepo(ctx)
 | 
			
		||||
	if a.Repo == nil {
 | 
			
		||||
		return "(non-existing-repo)"
 | 
			
		||||
	}
 | 
			
		||||
	return a.Repo.Name
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user