mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Link to existing PR when trying to open a new PR on the same branches (#25494)
when trying to create a PR for an existing PRs branch combination link to the PR directly and not just to the repo. Before:  After: 
This commit is contained in:
		@@ -192,7 +192,7 @@
 | 
			
		||||
		{{if .HasPullRequest}}
 | 
			
		||||
			<div class="ui segment grid title">
 | 
			
		||||
				<div class="twelve wide column issue-title">
 | 
			
		||||
					{{.locale.Tr "repo.pulls.has_pull_request" (Escape $.RepoLink) (Escape $.RepoRelPath) .PullRequest.Index | Safe}}
 | 
			
		||||
					{{.locale.Tr "repo.pulls.has_pull_request" (print (Escape $.RepoLink) "/pulls/" .PullRequest.Issue.Index) (Escape $.RepoRelPath) .PullRequest.Index | Safe}}
 | 
			
		||||
					<h1>
 | 
			
		||||
						<span id="issue-title">{{RenderIssueTitle $.Context .PullRequest.Issue.Title $.RepoLink $.Repository.ComposeMetas}}</span>
 | 
			
		||||
						<span class="index">#{{.PullRequest.Issue.Index}}</span>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user