summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* If the default branch is not present do not report error on stats indexing ↵zeripath2021-04-221-1/+5
| | | | | | | | | | | | | | | (follow-up of #15546) (#15583) (#15594) Backport #15546 Backport #15583 #15546 doesn't completely fix this problem because the error returned is an ObjectNotExist error not a BranchNotExist error. Add test for ErrObjectNotExist too Fix #15257 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix lfs management find (#15537) (#15578)Lunny Xiao2021-04-224-4/+6
| | | | | | | | | | | | | | | * Fix lfs management find (#15537) Fix #15236 * Do not do 40byte conversion within ParseTreeLine * Missed a to40ByteSHA Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Andrew Thornton <art27@cantab.net> * Remove space Co-authored-by: Andrew Thornton <art27@cantab.net>
* Add placeholder text to deploy key textarea (#15575) (#15576)zeripath2021-04-211-1/+1
| | | | | | | | | Backport #15575 Add placeholder text to deploy key textarea Related #15574 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix NPE on view commit with notes (#15561) (#15573)zeripath2021-04-211-1/+8
| | | | | | | Backport #15561 Fix #15558 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Project board improvements (#15429) (#15560)silverwind2021-04-207-104/+141
| | | | | | | | | | | | | | | | | | | | | | | * Project board improvements - Fix link colors - Extract CSS to own file - Various minor tweaks to make it look better Fixes: https://github.com/go-gitea/gitea/issues/15424 Fixes: https://github.com/go-gitea/gitea/issues/15506 Fixes: https://github.com/go-gitea/gitea/pull/15511 * fix squashed cards on small view area * more css fixes, add second row from issue list Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add ETag header (#15370) (#15552)KN4CK3R2021-04-205-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> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix bug on commit graph (#15517) (#15530)Lunny Xiao2021-04-171-4/+5
|
* Send size to /avatars if requested (#15459) (#15528)zeripath2021-04-172-3/+11
| | | | | | | | | | | Backport #15459 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> Co-authored-by: 6543 <6543@obermui.de>
* Prevent migration 156 failure if tag commit missing (#15519) (#15527)zeripath2021-04-171-0/+11
| | | | | | | | | | Backport #15519 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>
* Repo branch page: label size, PR ref, new PR button alignment (#15363) (#15365)Mike L2021-04-161-4/+4
|
* Changelog v1.14.1 (#15498)v1.14.165432021-04-151-0/+30
| | | | | | | | | | | | | | | | | | | | | * RAW Changelog v1.14.1 * wordings * Apply suggestions from code review Co-authored-by: techknowlogick <matti@mdranta.net> * Update CHANGELOG.md Co-authored-by: 6543 <6543@obermui.de> * Update CHANGELOG.md Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Performance improvement for list pull requests (#15447) (#15500)65432021-04-165-29/+72
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix bug clone wiki (#15499) (#15502)zeripath2021-04-151-0/+10
| | | | | | | | Backport #15499 Fix #15494 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* dump: Add option to skip LFS/attachment files (#15407) (#15492)zeripath2021-04-151-2/+14
| | | | | | | | | | | | | Backport #15407 * Add option to skip dumping LFS/attachment files * Fix fmt issues Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Johan Van de Wauw <johan@gisky.be> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Ensure review dismissal only dismisses the correct review (#15477) (#15489)zeripath2021-04-152-8/+58
| | | | | | | | | Backport #15477 Fix #15472 Signed-off-by: Andrew Thornton art27@cantab.net Co-authored-by: 6543 <6543@obermui.de>
* Use subdir for URL (#15446) (#15493)zeripath2021-04-153-3/+3
| | | | | | | | | Backport #15446 Fixes #15444 Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com> Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com>
* migration: github: if rate limit is not enabled, ignore it (#15490) (#15495)65432021-04-151-0/+5
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Use index of the supported tags to choose user lang (#15452) (#15488)zeripath2021-04-152-8/+10
| | | | | | | | | | | Backport #15452 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. Co-authored-by: Naohisa Murakami <tiqwab.ch90@gmail.com>
* Fix potential copy lfs records failure when fork a repository (#15441) (#15485)Lunny Xiao2021-04-151-6/+7
|
* Query the DB for the hash before inserting in to email_hash (#15457) (#15491)zeripath2021-04-151-0/+5
| | | | | | | | | | | | | Backport #15457 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> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Build go-git variants for windows (#15482) (#15487)zeripath2021-04-151-0/+3
| | | | | | | | | | Backport #15482 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>
* Lock down build-images dependencies (#15480)silverwind2021-04-151-2/+2
| | | | | Partial extraction from #15479 for 1.14. Locks down build-images dependencies and adds missing node_modules dependency.
* Prevent superfluous response.WriteHeader (#15456) (#15476)zeripath2021-04-151-3/+7
| | | | | | | | | Backport #15456 This PR simply checks the status before writing the header. Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix wrong file link in code search page (#15466) (#15486)a10121127962021-04-151-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> Co-authored-by: 6543 <6543@obermui.de>
* Clone panel fixes (#15436)silverwind2021-04-142-8/+15
| | | | | | - Use <button> over <div> for a button - Fix absent border-right on wiki - Fix absent border-radius on wiki
* quick fix (#15464) (#15481)John Olheiser2021-04-141-1/+1
| | | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix ambiguous argument error on tags (#15432) (#15474)zeripath2021-04-141-8/+1
| | | | | | | | | | Backport #15432 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>
* v172 migration adds created_unix field instead of expiry (#15458) (#15463)techknowlogick2021-04-141-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> Co-authored-by: zeripath <art27@cantab.net>
* Fix repository search (#15428) (#15442)techknowlogick2021-04-132-2/+2
| | | | | | | | Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com> 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 ↵techknowlogick2021-04-121-2/+17
| | | | | | | | | | | | | | (#15434) (#15439) #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> Co-authored-by: zeripath <art27@cantab.net>
* Fix wiki clone urls (#15430) (#15431)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
* fix dingtalk icon url (#15426)Tomás Warynyca2021-04-121-1/+1
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Standardise icon on projects PR page (#15387) (#15408)zeripath2021-04-121-4/+17
| | | | | | | Backport #15387 Fix #15272 Signed-off-by: Andrew Thornton <art27@cantab.net>
* use repo1_bare to test against (#15402) (#15404)65432021-04-111-26/+11
|
* Use semantic dropdown for code search query type (#15276) (#15364)Mike L2021-04-113-61/+64
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
* Changelog v1.14.0 (#15360)v1.14.065432021-04-111-13/+68
| | | | | * clean & merge & update v1.14.0 changelog * backport v1.13.x changelogs
* Fix delete nonexist oauth application 500 and prevent deadlock (#15384) (#15396)Lunny Xiao2021-04-114-2/+13
| | | | | | | | | | | | | | | * Fix delete nonexist oauth application 500 * Fix test * Close the session * Fix more missed sess.Close * Remove unnecessary blank line Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Always set the merge base used to merge the commit (#15352) (#15385)zeripath2021-04-105-8/+45
| | | | | | | | | Backport #15352 The issue is that the TestPatch will reset the PR MergeBase - and it is possible for TestPatch to update the MergeBase whilst a merge is ongoing. The ensuing merge will then complete but it doesn't re-set the MergeBase it used to merge the PR. Fixes the intermittent error in git test. Signed-off-by: Andrew Thornton art27@cantab.net
* Turn RepoRef and RepoAssignment back into func(*Context) (#15372) (#15377)zeripath2021-04-092-318/+305
| | | | | | | Backport #15372 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Dropzone styling improvements (#15291) (#15374)silverwind2021-04-095-37/+57
| | | | | | | | | | | * Dropzone styling improvements - Move all dropzone styles to separate file - Fix white background in arc-green - Fix rendering of non-square images and previews * increase thumbnail quality, set contain in js, replace blur effect with opacity Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Upgrade to bluemonday 1.0.7 (#15379) (#15380)zeripath2021-04-095-13/+18
| | | | | | | | | | | | | * Upgrade to bluemonday 1.0.7 (#15379) Backport #15379 Fix #15349 Signed-off-by: Andrew Thornton <art27@cantab.net> * resolve CI Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Move FCGI req.URL.Path fix-up to the FCGI listener (#15292) (#15361)zeripath2021-04-092-10/+8
| | | | | | | Backport #15292 Simplify the web.go FCGI path by moving the req.URL.Path fix-up to listener Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix `admin user list` (#15358) (#15359)65432021-04-092-4/+3
| | | | | * Fix `admin user list` (#15358) * fix routers/api/v1/repo/issue.go
* Fix button border issue (#15351)silverwind2021-04-091-1/+1
|
* Disable cssnano's colormin plugin (#15348)silverwind2021-04-091-0/+1
| | | | | | It produces odd rgba values which also seem to cause issues in monaco's color parser where the scoll shadow went red for some reason. Regression by: https://github.com/go-gitea/gitea/pull/15333
* Show diff on rename with diff changes (#15338) (#15339)zeripath2021-04-081-19/+15
| | | | | | | | | | | | | | | Backport #15338 More recent versions of git have increased support for detection of renames meaning that a rename with diff changes is now supported. Although ParsePatch supports this - our templates do not and the simplest solution is simply to show the diff. Fix #15335 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Prepend AppSubUrl to links for default avatar (#15341) (#15342)zeripath2021-04-083-4/+4
| | | | | | | | Backport #15341 Fix #15334 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix handling of logout event (#15323) (#15337)zeripath2021-04-082-2/+2
| | | | | | | | | Backport #15323 It appears that there is a slight bug in the handling of the data of logout event - the javascript should be testing the data field of the data field for the logout instruction. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Monaco improvements (#15333) (#15345)silverwind2021-04-086-26/+87
| | | | | - Create theme at runtime which follows the CSS variables of the site - Disable a few opinionated Monaco defaults like minimap and word highlights - Move styles to separate file
* Fix CanCreateRepo check (#15311) (#15321)65432021-04-071-0/+3
| | | | Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>