mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 09:31:53 +01:00 
			
		
		
		
	Add missed auto merge feed message on dashboard (#33309)
This commit is contained in:
		
							parent
							
								
									9875f9b9b8
								
							
						
					
					
						commit
						3e7ec826d3
					
				| @ -72,9 +72,9 @@ func (at ActionType) String() string { | |||||||
| 	case ActionRenameRepo: | 	case ActionRenameRepo: | ||||||
| 		return "rename_repo" | 		return "rename_repo" | ||||||
| 	case ActionStarRepo: | 	case ActionStarRepo: | ||||||
| 		return "star_repo" | 		return "star_repo" // will not displayed in feeds.tmpl | ||||||
| 	case ActionWatchRepo: | 	case ActionWatchRepo: | ||||||
| 		return "watch_repo" | 		return "watch_repo" // will not displayed in feeds.tmpl | ||||||
| 	case ActionCommitRepo: | 	case ActionCommitRepo: | ||||||
| 		return "commit_repo" | 		return "commit_repo" | ||||||
| 	case ActionCreateIssue: | 	case ActionCreateIssue: | ||||||
|  | |||||||
| @ -73,10 +73,13 @@ | |||||||
| 					{{else if .GetOpType.InActions "publish_release"}} | 					{{else if .GetOpType.InActions "publish_release"}} | ||||||
| 						{{$linkText := .Content | ctx.RenderUtils.RenderEmoji}} | 						{{$linkText := .Content | ctx.RenderUtils.RenderEmoji}} | ||||||
| 						{{ctx.Locale.Tr "action.publish_release" (.GetRepoLink ctx) (printf "%s/releases/tag/%s" (.GetRepoLink ctx) .GetTag) (.ShortRepoPath ctx) $linkText}} | 						{{ctx.Locale.Tr "action.publish_release" (.GetRepoLink ctx) (printf "%s/releases/tag/%s" (.GetRepoLink ctx) .GetTag) (.ShortRepoPath ctx) $linkText}} | ||||||
| 					{{else if .GetOpType.InActions "review_dismissed"}} | 					{{else if .GetOpType.InActions "pull_review_dismissed"}} | ||||||
| 						{{$index := index .GetIssueInfos 0}} | 						{{$index := index .GetIssueInfos 0}} | ||||||
| 						{{$reviewer := index .GetIssueInfos 1}} | 						{{$reviewer := index .GetIssueInfos 1}} | ||||||
| 						{{ctx.Locale.Tr "action.review_dismissed" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx) $reviewer}} | 						{{ctx.Locale.Tr "action.review_dismissed" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx) $reviewer}} | ||||||
|  | 					{{else if .GetOpType.InActions "auto_merge_pull_request"}} | ||||||
|  | 						{{$index := index .GetIssueInfos 0}} | ||||||
|  | 						{{ctx.Locale.Tr "action.auto_merge_pull_request" (printf "%s/pulls/%s" (.GetRepoLink ctx) $index) $index (.ShortRepoPath ctx)}} | ||||||
| 					{{end}} | 					{{end}} | ||||||
| 					{{DateUtils.TimeSince .GetCreate}} | 					{{DateUtils.TimeSince .GetCreate}} | ||||||
| 				</div> | 				</div> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user