summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Set correct PR status on 3way on conflict checking (#19457)Gusted2022-04-214-6/+89
| | | | | | | | | | | | | | | * Set correct PR status on 3way on conflict checking - When 3-way merge is enabled for conflict checking, it has a new interesting behavior that it doesn't return any error when it found a conflict, so we change the condition to not check for the error, but instead check if conflictedfiles is populated, this fixes a issue whereby PR status wasn't correctly on conflicted PR's. - Refactor the mergeable property(which was incorrectly set and lead me this bug) to be more maintainable. - Add a dedicated test for conflicting checking, so it should prevent future issues with this. * Fix linter
* Fix logging of Transfer API (#19456)Gusted2022-04-221-4/+6
| | | | | | - Use the correct fullname's in tracing calls. - Return correct function name in error. Co-authored-by: 6543 <6543@obermui.de>
* RepoAssignment ensure to close before overwrite (#19449)65432022-04-2111-96/+121
| | | | | | | * check if GitRepo already open and close if * only run RepoAssignment once * refactor context helper for api to open GitRepo
* node12 is EOL (#19451)techknowlogick2022-04-203-3/+3
| | | | | * node12 is EOL * fix lockfile
* Add Changelog v1.16.6 (#19339) (#19450)65432022-04-202-1/+36
| | | | | | | | | | | | | | | * Add Changelog v1.16.6 (#19339) Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net> * bump version Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Fix DELETE request for non-existent public key (#19443)Gusted2022-04-211-4/+9
| | | | | | - Add a return for the first "block" of errors, which fixes the double error messages. - Add a return for `externallyManaged`. - Resolves #19398
* [skip ci] Updated translations via CrowdinGiteaBot2022-04-213-1/+7
|
* Don't panic on `ErrEmailInvalid` (#19441)Gusted2022-04-202-3/+16
| | | | | - Don't panic on `ErrEmailInvalid`, this was caused due that we were trying to force `ErrEmailCharIsNotSupported` interface, which panics. - Resolves #19397
* When dumping trim the standard suffices instead of a random suffix (#19440)zeripath2022-04-201-2/+7
| | | | | | | | | | | | | | * 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>
* Add uploadpack.allowAnySHA1InWant to allow --filter=blob:none with older git ↵zeripath2022-04-201-1/+1
| | | | | | | | | clients (#19430) Older git clients need uploadpack.allowAnySHA1InWant if partial cloning is allowed. Fix #19118 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Don't allow merging PR's which are being conflict checked (#19357)Gusted2022-04-201-0/+5
| | | | | | | | | | * 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>
* doc: add brief intro on using traefik as reverse-proxy (#19432)Campbell He2022-04-202-0/+31
|
* Fix panic in team repos API (#19431)qwerty2872022-04-203-2/+3
| | | | | | | * Fix panic in team repos API * Fix pagination * fmt
* When updating mirror repo intervals by API reschedule next update too (#19429)zeripath2022-04-204-28/+60
| | | | | | | | | 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>
* Fix nil error when some pages are rendered outside request context (#19427)wxiaoguang2022-04-191-1/+1
|
* Add Helm Chart registry (#19406)KN4CK3R2022-04-1924-21/+679
|
* [skip ci] Updated translations via CrowdinGiteaBot2022-04-181-0/+1372
|
* [skip ci] Updated licenses and gitignoresGiteaBot2022-04-171-1/+9
|
* upgrade postgres refrence to 14 (#19416)Stephen J. Fuhry2022-04-164-4/+4
|
* Fix datarace in gitea_uploader.go (#19409)chavacava2022-04-151-2/+2
|
* Fix double blob-hunk (#19404)Gusted2022-04-151-3/+1
| | | - Don't show the blob-hunk twice.
* Use a struct as test options (#19393)Lunny Xiao2022-04-1440-100/+210
| | | | | | | * Use a struct as test options * Fix name * Fix test
* Disallow selecting the text of buttons (#19330)delvh2022-04-144-19/+20
| | | Introduce a CSS class `.unselectable`
* [skip ci] Updated translations via CrowdinGiteaBot2022-04-131-1/+1
|
* Note where frontend files are located in docs (#19379)ktprograms2022-04-121-1/+7
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Document 409 error returned by repos/migrate api (#19376)Chongyi Zheng2022-04-122-0/+5
| | | | | | | * Document 409 error returned by repos/migrate api * Generate swagger spec Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix middleware function's placements for some `/user/...` (#19377)Gusted2022-04-121-5/+5
| | | | | - 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.
* Fix panic in teams API when requesting members (#19360)delvh2022-04-111-1/+1
|
* Add logic to switch between source/rendered on Markdown (#19356)Gusted2022-04-101-2/+10
| | | Adds a button to switch between the source blob and the rendered markdown.
* Fixed registry host value. (#19363)KN4CK3R2022-04-101-4/+3
|
* [skip ci] Updated translations via CrowdinGiteaBot2022-04-102-0/+117
|
* Allow package linking to private repository (#19348)KN4CK3R2022-04-091-1/+2
| | | | | | | * Display private repos too. * lint Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Use "main" as default branch name (#19354)wxiaoguang2022-04-085-3/+5
| | | | | * Use "main" as default branch name * fix test code
* Move milestone to models/issues/ (#19278)Lunny Xiao2022-04-0856-447/+466
| | | | | | | | | | | * Move milestone to models/issues/ * Fix lint * Fix test * Fix lint * Fix lint
* Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. ↵wxiaoguang2022-04-0810-192/+166
| | | | | | (#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.
* Remove dependent on session auth for api/v1 routers (#19321)Lunny Xiao2022-04-0822-161/+219
| | | | | | | | | | | * Remove dependent on session auth for api/v1 routers * Remove unnecessary session on API context * remove missed header * fix test * fix missed api/v1
* API: Search Issues, dont show 500 if filter result in empty list (#19244)65432022-04-081-15/+16
| | | | | | | * remove error who is none * use setupSessionNoLimit instead of setupSessionWithLimit when no pagination Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2022-04-0811-11/+0
|
* Never use /api/v1 from Gitea UI Pages (#19318)Lunny Xiao2022-04-0732-74/+1082
| | | | | | | | | | | | | Reusing `/api/v1` from Gitea UI Pages have pros and cons. Pros: 1) Less code copy Cons: 1) API/v1 have to support shared session with page requests. 2) You need to consider for each other when you want to change something about api/v1 or page. This PR moves all dependencies to API/v1 from UI Pages. Partially replace #16052
* [skip ci] Updated translations via CrowdinGiteaBot2022-04-071-0/+20
|
* Show ssh command directly in template instead of i18n translation (#19335)原俊杰2022-04-062-2/+1
| | | | | | | | | | | | | * add missing space for generate ssh token command Signed-off-by: Junjie Yuan <yuan@junjie.pro> * Do not use i18n for ssh command * Remove unnecessary settings.ssh_token_code * Revert locale_zh-CN.ini Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Package registry changes (#19305)KN4CK3R2022-04-0617-150/+185
| | | | | | | | * removed debug logs * fixed SELECT * removed unneeded error type * use common SearchVersions method * remove empty container upload versions * return err
* [skip ci] Updated translations via CrowdinGiteaBot2022-04-061-0/+8
|
* Add `ENABLE_SSH_LOG` to debugging problems (#19316)Gusted2022-04-051-1/+2
| | | | - Add this option to the debugging problems section. So users that are trying to debug SSH-related problems will get the errors logged from `cmd/serv.go`
* Warn on SSH connection for incorrect configuration (#19317)Gusted2022-04-051-0/+9
| | | | | | | | | | | | | | | | | | | * Warn on SSH connection for incorrect configuration - When `setting.RepoRootPath` cannot be found(most likely due to incorrect configuration) show "Gitea: Incorrect configuration" on the client-side to help easier with debugging the problem. * Update cmd/serv.go Co-authored-by: delvh <dev.lh@web.de> * Don't leak configuration * Update cmd/serv.go Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* escape fake linktechknowlogick2022-04-051-1/+1
|
* Allow custom redirect for landing page (#19324)techknowlogick2022-04-053-5/+9
| | | | | | | | | | | | | * Allow custom redirect for landing page * Update modules/setting/setting.go Co-authored-by: delvh <dev.lh@web.de> * fix lint * one option Co-authored-by: delvh <dev.lh@web.de>
* [skip ci] Updated translations via CrowdinGiteaBot2022-04-053-42/+130
|
* [skip ci] Updated translations via CrowdinGiteaBot2022-04-043-7/+532
|
* Fix links to packages documentation (#19315)Steven2022-04-041-9/+9
|