wxiaoguang
d4ea1c2559
Fix some pending problems ( #29985 )
...
These changes are quite independent and trivial, so I don't want to open
too many PRs.
* https://github.com/go-gitea/gitea/pull/29882#discussion_r1529607091
* the `f.Close` should be called properly
* the error message could be more meaningful
(https://github.com/go-gitea/gitea/pull/29882#pullrequestreview-1942557935 )
*
https://github.com/go-gitea/gitea/pull/29859#pullrequestreview-1942324716
* the new translation strings don't take arguments
* https://github.com/go-gitea/gitea/pull/28710#discussion_r1443778807
* stale for long time
* #28140
* a form was forgotten to be changed to work with backend code
(cherry picked from commit 226231ea27d4f2b0f09fa4efb39501507613b284)
Conflicts:
templates/repo/issue/view_content/pull.tmpl
discarded because unexplained
templates/status/404.tmpl
implemented differently in Forgejo
2024-03-26 19:04:26 +01:00
coldWater
664052fb0b
Fix missing error check of bufio.Scanner ( #29882 )
...
maybe more
(cherry picked from commit 0e183d81fc5283f9d2047472de580e4f04a046c1)
2024-03-26 19:04:25 +01:00
Gusted
b896a87103
[GITEA] Make atomic ssh keys replacement robust
...
- After stumbling upon https://github.com/golang/go/issues/22397 and
reading the implementations I realized that Forgejo code doesn't have
`Sync()` and it doesn't properly error handle the `Close` function.
- (likely) Resolves https://codeberg.org/forgejo/forgejo/issues/1446
(cherry picked from commit 0efcb334c2
)
(cherry picked from commit 04ef02c0dd
)
(cherry picked from commit 85f2065c9b
)
(cherry picked from commit 8d36b5cce6
)
(cherry picked from commit 378dc30fb5
)
(cherry picked from commit 2b28bf826e
)
(cherry picked from commit d0625a001e
)
(cherry picked from commit f161a4f60f
)
(cherry picked from commit 7430ca43e5
)
(cherry picked from commit ab6d38daf7
)
(cherry picked from commit 0f703fd02e
)
(cherry picked from commit 6931a8f6bb
)
(cherry picked from commit 5e2065c1c0
)
(cherry picked from commit 38c812acff
)
(cherry picked from commit 494874e23f
)
(cherry picked from commit d396b7fd47
)
(cherry picked from commit 7babc6efe1
)
(cherry picked from commit 2d4dbbe741
)
2024-02-05 16:09:40 +01:00
Lunny Xiao
cddf245c12
Replace more db.DefaultContext ( #27628 )
...
Target #27065
2023-10-15 17:46:06 +02:00
JakobDev
7047df36d4
Another round of db.DefaultContext
refactor ( #27103 )
...
Part of #27065
---------
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-09-25 13:17:37 +00:00
silverwind
88f835192d
Replace interface{}
with any
( #25686 )
...
Result of running `perl -p -i -e 's#interface\{\}#any#g' **/*` and `make fmt`.
Basically the same [as golang did](2580d0e08d
).
2023-07-04 18:36:08 +00:00
flynnnnnnnnnn
e81ccc406b
Implement FSFE REUSE for golang files ( #21840 )
...
Change all license headers to comply with REUSE specification.
Fix #16132
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-11-27 18:20:29 +00:00
Lunny Xiao
fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context ( #19748 )
...
* Move almost all functions' parameter db.Engine to context.Context
* remove some unnecessary wrap functions
2022-05-20 22:08:52 +08:00
Lunny Xiao
3ca5dc7e32
Move keys to models/asymkey ( #17917 )
...
* Move keys to models/keys
* Rename models/keys -> models/asymkey
* change the missed package name
* Fix package alias
* Fix test
* Fix docs
* Fix test
* Fix test
* merge
2021-12-10 16:14:24 +08:00