summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix a broken link in customizing-gitea.en-us.md (#15543)Raphael Kruse2021-04-191-1/+1
|
* Change the chinese discuss link to discourse (#15533)Lunny Xiao2021-04-182-2/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-04-181-0/+14
|
* Fix bug on commit graph (#15517)Lunny Xiao2021-04-171-4/+5
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-04-172-0/+2
|
* Prevent migration 156 failure if tag commit missing (#15519)zeripath2021-04-161-0/+11
| | | | | | | | | | It is possible that tag commits could be deleted or missing from repos. This causes migration 156 to fail and breaks upgrade. This PR simply logs the failure. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Send size to /avatars if requested (#15459)zeripath2021-04-172-3/+11
| | | | | | | If an avatar is requested in a particular size ensure that /avatars also gets the size request Fix #15453 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add tests for clone from wiki (#15513)Lunny Xiao2021-04-161-0/+51
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix Benchmark tests, remove a broken one & add two new (#15250)65432021-04-166-99/+100
| | | | | | | | | | | | | | | * Benchmark Integration TESTS * CI: add benching-arm64 pipeline * BenchmarkRepo: name test case tests * Fix BenchmarkRepoBranchCommit beside Create new Branch * CI: benching use amd64 * rm total broken "BenchmarkRepo" * dont run benchmark in CI
* frontport: 1.14.1 changelog (#15503)techknowlogick2021-04-162-1/+31
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* add well-known config for OIDC (#15355)techknowlogick2021-04-154-0/+23
| | | | | | | | | | | | | | * add well-known config for OIDC * spacing per feedback * Update oidc_wellknown.tmpl * add id_token * Update oidc_wellknown.tmpl Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix missing icons and colorpicker when mounted on suburl (#15501)zeripath2021-04-161-2/+2
| | | | | | | | | | | * Fix missing icons and colorpicker when mounted on suburl Signed-off-by: Andrew Thornton <art27@cantab.net> * as per silverwind Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -… ↵Kindyroo2021-04-151-3/+5
| | | | | | | | | | | | (#15465) * Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -1073741819 * Update webpack.config.js Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io>
* Fix bug clone wiki (#15499)Lunny Xiao2021-04-151-0/+10
| | | | | | | Fix #15494 Co-authored-by: Lauris BH <lauris@nix.lv>
* Performance improvement for list pull requests (#15447)Lunny Xiao2021-04-155-29/+72
|
* Disable Stars config option (#14653)Kyle D2021-04-1516-27/+83
| | | | | | | * Add config option to disable stars * Replace "stars" with watched in user profile * Add documentation
* Specify relation between multiple signing options (#15496)firesoft-de2021-04-151-4/+4
|
* migration: github: if rate limit is not enabled, ignore it (#15490)65432021-04-151-0/+5
|
* Query the DB for the hash before inserting in to email_hash (#15457)zeripath2021-04-151-0/+5
| | | | | | | | | Some postgres users have logging which logs even failed transactions. So just query the db before trying to insert. Fix #15451 Signed-off-by: Andrew Thornton art27@cantab.net Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Make build scripts compatible with node 12 (#15479)silverwind2021-04-153-4/+6
| | | | | | | | | | * Make build scripts compatible with node 12 "fs/promises" is not in node 12, use a more compatible way to import it. Also, lock major down versions of the image build dependencies to prevent future surprises. * add node_modules dependency
* Ensure review dismissal only dismisses the correct review (#15477)zeripath2021-04-152-8/+58
| | | | | Fix #15472 Signed-off-by: Andrew Thornton art27@cantab.net
* Build go-git variants for windows (#15482)zeripath2021-04-151-0/+3
| | | | | | | | | | It appears that there are significant performance problems with the pure git backend on windows. Therefore until we can sort this out - provide go-git backend builds. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix potential copy lfs records failure when fork a repository (#15441)Lunny Xiao2021-04-141-6/+7
|
* Use subdir for URL (#15446)KN4CK3R2021-04-143-3/+3
| | | | Fixes #15444
* Use index of the supported tags to choose user lang (#15452)Naohisa Murakami2021-04-142-8/+10
| | | | | | | Fix #14793. The previous implementation used the first return value of matcher.Match, which is the chosen language tag but may contain extensions such as de-DE-u-rg-chzzzz. As mentioned in the documentation of language package, matcher.Match also returns the index of the supported tags, so I think it is better to use it rather than manipulate the returned language tag.
* quick fix (#15464)John Olheiser2021-04-141-1/+1
| | | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fixed several typos. (#15470)KN4CK3R2021-04-141-9/+9
|
* fix wrong file link in code search page (#15466)a10121127962021-04-141-2/+1
| | | | | | | | | | | | | | | | | | in previous the grenrated link is ``testg/testrepo/src/commit/....`` which is not right. the right version is ``/testg/testrepo/.......`` (start wiht ``/``) or ``http://127.0.0.1:3000/xxxxx`` (full link) to make it hase same result with explore page I choose the secound style. fix #15438 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: 6543 <6543@obermui.de>
* Fix ambiguous argument error on tags (#15432)zeripath2021-04-141-8/+1
| | | | | | | | There is a weird gotcha with GetTagCommitID that because it uses git rev-list can cause an ambiguous argument error. This PR simply makes tags use the same code as branches. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Display more repository type on admin repository management (#15440)Lunny Xiao2021-04-141-2/+24
|
* Prevent superfluous response.WriteHeader (#15456)zeripath2021-04-141-3/+7
| | | | | This PR simply checks the status before writing the header. Signed-off-by: Andrew Thornton <art27@cantab.net>
* OAuth2 auto-register (#5123)Martin Michaelis2021-04-149-135/+351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactored handleOAuth2SignIn in routers/user/auth.go The function handleOAuth2SignIn was called twice but some code path could only be reached by one of the invocations. Moved the unnecessary code path out of handleOAuth2SignIn. * Refactored user creation There was common code to create a user and display the correct error message. And after the creation the only user should be an admin and if enabled a confirmation email should be sent. This common code is now abstracted into two functions and a helper function to call both. * Added auto-register for OAuth2 users If enabled new OAuth2 users will be registered with their OAuth2 details. The UserID, Name and Email fields from the gothUser are used. Therefore the OpenID Connect provider needs additional scopes to return the coresponding claims. * Added error for missing fields in OAuth2 response * Linking and auto linking on oauth2 registration * Set default username source to nickname * Add automatic oauth2 scopes for github and google * Add hint to change the openid connect scopes if fields are missing * Extend info about auto linking security risk Co-authored-by: Viktor Kuzmin <kvaster@gmail.com> Signed-off-by: Martin Michaelis <code@mgjm.de>
* docs: migration start new section (#15462)65432021-04-141-0/+3
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-04-141-0/+14
|
* v172 migration adds created_unix field instead of expiry (#15458)zeripath2021-04-131-3/+3
| | | | | | | | The Session table must have an Expiry field not a created_unix field - somehow this migration adds the incorrect named field leading to #15445 reports. Fix #15445 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add NeedPostProcess for Parser interface to improve performance of csv ↵Lunny Xiao2021-04-138-14/+38
| | | | render (#15153)
* Fix repository search (#15428)KN4CK3R2021-04-122-2/+2
| | | | Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Prevent NPE on avatar direct rendering if federated avatars disabled (#15434)zeripath2021-04-121-2/+17
| | | | | | | | | | #13649 assumed that direct avatar urls would always be libravatar urls - this leads to NPEs if federated avatar service is disabled. Fix #15421 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Clone panel fixes (#15435)silverwind2021-04-122-8/+15
| | | | | | | - Use <button> over <div> for a button - Fix absent border-right on wiki - Fix absent border-radius on wiki Co-authored-by: 6543 <6543@obermui.de>
* Fix wiki clone urls (#15430)silverwind2021-04-121-4/+4
| | | | | | Fix wiki clone urls Regressed by: https://github.com/go-gitea/gitea/commit/9a4050f1e839af1bd072aff9ac5fc69e650747c8 Fixes: https://github.com/go-gitea/gitea/issues/15420
* docs: rm deprecated docs regarding environment variable usage in docker ↵techknowlogick2021-04-122-70/+23
| | | | | | | | | | | | image (#15405) * docs: rm deprecated docs regarding environment variable usage in docker image * Update docs/content/doc/installation/with-docker.en-us.md Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: silverwind <me@silverwind.io>
* Add ETag header (#15370)KN4CK3R2021-04-125-20/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add ETag header. * Comply with RFC 7232. * Moved logic into httpcache.go * Changed name. * Lint * Implemented If-None-Match list. * Fixed missing header on * * Removed weak etag support. * Removed * support. * Added unit test. * Lint Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* dump: Add option to skip LFS/attachment files (#15407)Johan Van de Wauw2021-04-121-2/+14
| | | | | | | * Add option to skip dumping LFS/attachment files * Fix fmt issues Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* fix dingtalk icon url (#15417)Tomás Warynyca2021-04-121-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-04-1217-41/+0
|
* use repo1_bare to test against (#15402)65432021-04-111-26/+11
|
* Standardise icon on projects PR page (#15387)zeripath2021-04-111-4/+17
| | | | | | | Fix #15272 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* add some reponse status on api docs (#15399)a10121127962021-04-112-0/+30
| | | | | | Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: 6543 <6543@obermui.de>
* Changelog v1.14.0 (#15360) (#15400)65432021-04-112-14/+23
| | | | | | | | | * Changelog v1.14.0 (#15360) * clean & merge & update v1.14.0 changelog * backport v1.13.x changelogs * update latest gitea version
* Enforce tab indentation in templates (#15289)silverwind2021-04-1067-609/+678
| | | | | | | | | | | | | | | | | | * Enforce tab indendation in templates This adds editorconfig-checker [1] to lint the template files so they conform the editorconfig files. I fixed all current identation issues using the fix mode of eclint [2] and some manual corrections. We can extend this linting to other files later, for now I'd like this PR to focus on HTML template files only. [1] https://github.com/editorconfig-checker/editorconfig-checker [2] https://github.com/jedmao/eclint * fix indendation Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>