Commits at 23d37673bd4e498d66140c44a2e31ab4725c6ae2
23d37673Don't panic on `ErrEmailInvalid` (#19441)
- Don't panic on `ErrEmailInvalid`, this was caused due that we were
trying to force `ErrEmailCharIsNotSupported` interface, which panics.
- Resolves #19397Gusted
authored at
GitHub
comitted at
1e319ba4When dumping trim the standard suffices instead of a random suffix (#19440)
* When dumping trim the standard suffices instead of a random suffix
Instead of using the `path.Ext()` to trim the last "extension" suffix, just iterate
through the supported suffices and trim those.
Fix #19424
Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix enum with to have correct supported types only
Co-authored-by: 6543 <6543@obermui.de>zeripath
authored at
GitHub
comitted at
a7f0ce62Add uploadpack.allowAnySHA1InWant to allow --filter=blob:none with older git clients (#19430)
Older git clients need uploadpack.allowAnySHA1InWant if partial cloning is allowed.
Fix #19118
Signed-off-by: Andrew Thornton <art27@cantab.net>zeripath
authored at
GitHub
comitted at
5e68fe7dDon't allow merging PR's which are being conflict checked (#19357)
* Don't allow merging PR's which are being conflict checked
- When a PR is still being conflict checked, don't allow the PR to be
merged(the merge button could already be visible before e.g. a new
commit was pushed to the PR).
- Relevant(should prevent such issue from happening) #19352
Co-authored-by: delvh <dev.lh@web.de>Gusted
authored at
GitHub
comitted at
f2229e05doc: add brief intro on using traefik as reverse-proxy (#19432)
Campbell He
authored at
GitHub
comitted at
ae6a5244Fix panic in team repos API (#19431)
* Fix panic in team repos API
* Fix pagination
* fmtqwerty287
authored at
GitHub
comitted at
409ff55aWhen updating mirror repo intervals by API reschedule next update too (#19429)
When a mirror repo interval is updated by the UI it is rescheduled with that interval
however the API does not do this. The API also lacks the enable_prune option.
This PR adds this functionality in to the API Edit Repo endpoint.
Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath
authored at
GitHub
comitted at
a56fcdfaFix nil error when some pages are rendered outside request context (#19427)
wxiaoguang
authored at
GitHub
comitted at
4396d0e7Note where frontend files are located in docs (#19379)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>ktprograms
authored at
GitHub
comitted at
f029b9aeDocument 409 error returned by repos/migrate api (#19376)
* Document 409 error returned by repos/migrate api
* Generate swagger spec
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>Chongyi Zheng
authored at
GitHub
comitted at
0d3d9675Fix middleware function's placements for some `/user/...` (#19377)
- Add reqSignIn to `/user/task/{task}` as it specific to a logged in user currently not-logged in user could cause a NPE.
- Move `/user/stopwatch` & `/user/search` middleware before the actual function is called, because functions are executed in order and currently hadn't any effect and could as well cause a NPE due to that.
- Remove `/user/active` reqSignIn middleware, because when you want to active a account you're not "signed in" so it doesn't make sense to add that middleware.Gusted
authored at
GitHub
comitted at
d139c239Fix panic in teams API when requesting members (#19360)
delvh
authored at
GitHub
comitted at
ee769f74Add logic to switch between source/rendered on Markdown (#19356)
Adds a button to switch between the source blob and the rendered markdown.Gusted
authored at
GitHub
comitted at
c003491cAllow package linking to private repository (#19348)
* Display private repos too.
* lint
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>KN4CK3R
authored at
GitHub
comitted at
d9068588Use "main" as default branch name (#19354)
* Use "main" as default branch name
* fix test codewxiaoguang
authored at
GitHub
comitted at
1dfa26e0Move milestone to models/issues/ (#19278)
* Move milestone to models/issues/
* Fix lint
* Fix test
* Fix lint
* Fix lintLunny Xiao
authored at
GitHub
comitted at
84ceaa98Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337)
Do a refactoring to the CSRF related code, remove most unnecessary functions.
Parse the generated token's issue time, regenerate the token every a few minutes.wxiaoguang
authored at
GitHub
comitted at
3c3d4989Remove dependent on session auth for api/v1 routers (#19321)
* Remove dependent on session auth for api/v1 routers
* Remove unnecessary session on API context
* remove missed header
* fix test
* fix missed api/v1Lunny Xiao
authored at
GitHub
comitted at
75f8534cAPI: Search Issues, dont show 500 if filter result in empty list (#19244)
* remove error who is none
* use setupSessionNoLimit instead of setupSessionWithLimit when no pagination
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>6543
authored at
GitHub
comitted at