mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	fix news feed repo link
This commit is contained in:
		
					parent
					
						
							
								09dba7d63e
							
						
					
				
			
			
				commit
				
					
						501f70e248
					
				
			
		
					 2 changed files with 7 additions and 1 deletions
				
			
		|  | @ -63,6 +63,10 @@ func (a Action) GetActEmail() string { | |||
| 	return a.ActEmail | ||||
| } | ||||
| 
 | ||||
| func (a Action) GetRepoUserName() string { | ||||
| 	return a.RepoUserName | ||||
| } | ||||
| 
 | ||||
| func (a Action) GetRepoName() string { | ||||
| 	return a.RepoName | ||||
| } | ||||
|  |  | |||
|  | @ -100,6 +100,7 @@ type Actioner interface { | |||
| 	GetOpType() int | ||||
| 	GetActUserName() string | ||||
| 	GetActEmail() string | ||||
| 	GetRepoUserName() string | ||||
| 	GetRepoName() string | ||||
| 	GetBranch() string | ||||
| 	GetContent() string | ||||
|  | @ -153,8 +154,9 @@ type PushCommits struct { | |||
| func ActionDesc(act Actioner) string { | ||||
| 	actUserName := act.GetActUserName() | ||||
| 	email := act.GetActEmail() | ||||
| 	repoUserName := act.GetRepoUserName() | ||||
| 	repoName := act.GetRepoName() | ||||
| 	repoLink := actUserName + "/" + repoName | ||||
| 	repoLink := repoUserName + "/" + repoName | ||||
| 	branch := act.GetBranch() | ||||
| 	content := act.GetContent() | ||||
| 	switch act.GetOpType() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue