Skip to content

Commit d2dc182

Browse files
fix: {show,link to} proper PR on kanban board ref (#15004)
the issue was that PR references in kanban boards were being generated using `.ID` instead of `.Index`, which led to constructing incorrect links to possibly non-existent {PR,issue}s and following that to showing nonsensical values in the boards. kudos also go to @zeripath for pointing at the file to fix. Signed-off-by: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <[email protected]> Co-authored-by: zeripath <[email protected]>
1 parent ab70b2f commit d2dc182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/projects/view.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@
175175
{{- end }}
176176
{{- range index $.LinkedPRs .ID }}
177177
<div class="meta">
178-
<a href="{{$.RepoLink}}/pulls/{{ .ID }}">
178+
<a href="{{$.RepoLink}}/pulls/{{ .Index }}">
179179
<span class="{{if .PullRequest.HasMerged}}purple{{else if .IsClosed}}red{{else}}green{{end}}">{{svg "octicon-git-merge"}}</span>
180-
{{ .Title}} (#{{ .ID }})
180+
{{ .Title}} (#{{ .Index }})
181181
</a>
182182
</div>
183183
{{- end }}

0 commit comments

Comments
 (0)