Skip to content

Show/link to proper PR on kanban board ref (#15004) #15011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf
Copy link
Contributor

@wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf commented Mar 16, 2021

Backport #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]

fix: {show,link to} proper PR on kanban board ref (go-gitea#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]>
@jolheiser jolheiser changed the title Backport #15004 Show/link to proper PR on kanban board ref (#15004) Mar 16, 2021
@jolheiser jolheiser added this to the 1.13.5 milestone Mar 16, 2021
Comment on lines 128 to +130
{{ end }}
</div>
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe in 1.13 this is an extraneous {{end}} tag

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 16, 2021
@jolheiser
Copy link
Member

Going to close this per discussion in Discord. This diff points out that a bug never existed in 1.13 (because this template change itself doesn't exist in 1.13)

@jolheiser jolheiser closed this Mar 16, 2021
@zeripath
Copy link
Contributor

Appears that this feature wasn't present in 1.13 after all. Therefore this backport is not necessary. Sorry @wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf !

@wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf
Copy link
Contributor Author

was fun, though 🚀 😆
thanks for help @zeripath @jolheiser

@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants