-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Missing links in PR after comments #16877
Comments
Hi. I would like to work on fixing this issue. I have already done some triaging. The issue occurs because the template rendering fails with this error -
|
change line 65 in templates/mail/issue/default.tmpl from: gitea/templates/mail/issue/default.tmpl Line 65 in 5a73153
to: {{$.i18n.Tr "mail.issue.in_tree_path" .TreePath}} This bug is therefore a regression of #16200 and is backportable to 1.15 |
@zeripath - Yes, thanks. I figured out that the |
sorry missed that - thanks for the fix |
The mail template rendering was failing with the error - `...vices/mailer/mail.go:301:composeIssueCommentMessages() [E] ExecuteTemplate [issue/default/body]: template: issue/default:65:10: executing "issue/default" at <.i18n.Tr>: can't evaluate field i18n in type *models.Comment` The issue was the template variable i18n is available in the outer scope. Fix #16877
Backport go-gitea#16956 The mail template rendering was failing with the error - `...vices/mailer/mail.go:301:composeIssueCommentMessages() [E] ExecuteTemplate [issue/default/body]: template: issue/default:65:10: executing "issue/default" at <.i18n.Tr>: can't evaluate field i18n in type *models.Comment` The issue was the template variable i18n is available in the outer scope. Fix go-gitea#16877
Backport #16956 The mail template rendering was failing with the error - `...vices/mailer/mail.go:301:composeIssueCommentMessages() [E] ExecuteTemplate [issue/default/body]: template: issue/default:65:10: executing "issue/default" at <.i18n.Tr>: can't evaluate field i18n in type *models.Comment` The issue was the template variable i18n is available in the outer scope. Fix #16877 Co-authored-by: 6543 <[email protected]>
Gitea running in docker
[x]
):Description
After i create PR and our team comments or review PR, message "user commented on this pull request" comes to email, but i do not see link to PR in message. On the screenshots you can see an example of this problem.
Screenshots
The text was updated successfully, but these errors were encountered: