-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in. #12581
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
Fix signing.wont_sign.%!s(<nil>) if Require Signing commits but not signed in. #12581
Conversation
…igned in signing.wont_sign.%!s(<nil>) will be displayed if the repository needs signed commits but the user is not logged in. This is displayed because of complicated logic in the the template repo/issue/view_content/pull.tmpl and a shortcut in the code of routers/repo/issue.go This PR adds a default value of notsignedin if users are not signed in, which although our templates will not show will prevent custom templates from showing the above. It also fixes the template to avoid showing signing errors if the user is not authorized to sign. Replaces go-gitea#12564 Close go-gitea#12564 Signed-off-by: Andrew Thornton <art27@cantab.net>
Codecov Report
@@ Coverage Diff @@
## master #12581 +/- ##
==========================================
+ Coverage 43.40% 43.42% +0.01%
==========================================
Files 644 644
Lines 71246 71248 +2
==========================================
+ Hits 30923 30937 +14
+ Misses 35307 35298 -9
+ Partials 5016 5013 -3
Continue to review full report at Codecov.
|
Closed #12564 in favour of this one here, so feel free to proceed. 🚀 |
signing.wont_sign.%!s(<nil>)
will be displayed if the repository needs signedcommits but the user is not logged in.
This is displayed because of complicated logic in the the template repo/issue/view_content/pull.tmpl
and a shortcut in the code of routers/repo/issue.go
This PR adds a default value of notsignedin if users are not signed in, which
although our templates will not show will prevent custom templates from showing
the above.
It also fixes the template to avoid showing signing errors if the user is not
authorized to sign.
Replaces #12564
Close #12564
Signed-off-by: Andrew Thornton art27@cantab.net