mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 01:02:19 +00:00 
			
		
		
		
	Handle NotifyCreateRef as create branch in feeds (#14245)
Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							3d38ecb1fc
						
					
				
				
					commit
					8db0372a45
				
			@@ -2495,6 +2495,7 @@ mirror_sync_delete = synced and deleted reference <code>%[2]s</code> at <a href=
 | 
				
			|||||||
approve_pull_request = `approved <a href="%s/pulls/%s">%s#%[2]s</a>`
 | 
					approve_pull_request = `approved <a href="%s/pulls/%s">%s#%[2]s</a>`
 | 
				
			||||||
reject_pull_request = `suggested changes for <a href="%s/pulls/%s">%s#%[2]s</a>`
 | 
					reject_pull_request = `suggested changes for <a href="%s/pulls/%s">%s#%[2]s</a>`
 | 
				
			||||||
publish_release  = `released <a href="%s/releases/tag/%s"> "%[4]s" </a> at <a href="%[1]s">%[3]s</a>`
 | 
					publish_release  = `released <a href="%s/releases/tag/%s"> "%[4]s" </a> at <a href="%[1]s">%[3]s</a>`
 | 
				
			||||||
 | 
					create_branch = created branch <a href="%[1]s/src/branch/%[2]s">%[3]s</a> in <a href="%[1]s">%[4]s</a>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[tool]
 | 
					[tool]
 | 
				
			||||||
ago = %s ago
 | 
					ago = %s ago
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,7 +18,11 @@
 | 
				
			|||||||
							{{$.i18n.Tr "action.rename_repo" .GetContent .GetRepoLink .ShortRepoPath | Str2html}}
 | 
												{{$.i18n.Tr "action.rename_repo" .GetContent .GetRepoLink .ShortRepoPath | Str2html}}
 | 
				
			||||||
						{{else if eq .GetOpType 5}}
 | 
											{{else if eq .GetOpType 5}}
 | 
				
			||||||
							{{ $branchLink := .GetBranch | EscapePound | Escape}}
 | 
												{{ $branchLink := .GetBranch | EscapePound | Escape}}
 | 
				
			||||||
							{{$.i18n.Tr "action.commit_repo" .GetRepoLink $branchLink (Escape .GetBranch) .ShortRepoPath | Str2html}}
 | 
												{{if .Content}}
 | 
				
			||||||
 | 
													{{$.i18n.Tr "action.commit_repo" .GetRepoLink $branchLink (Escape .GetBranch) .ShortRepoPath | Str2html}}
 | 
				
			||||||
 | 
												{{else}}
 | 
				
			||||||
 | 
													{{$.i18n.Tr "action.create_branch" .GetRepoLink $branchLink (Escape .GetBranch) .ShortRepoPath | Str2html}}
 | 
				
			||||||
 | 
												{{end}}
 | 
				
			||||||
						{{else if eq .GetOpType 6}}
 | 
											{{else if eq .GetOpType 6}}
 | 
				
			||||||
							{{ $index := index .GetIssueInfos 0}}
 | 
												{{ $index := index .GetIssueInfos 0}}
 | 
				
			||||||
							{{$.i18n.Tr "action.create_issue" .GetRepoLink $index .ShortRepoPath | Str2html}}
 | 
												{{$.i18n.Tr "action.create_issue" .GetRepoLink $index .ShortRepoPath | Str2html}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user