aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix setting version table in dump (#15753)zeripath2021-05-072-2/+2
| | | | | | | | | | | | | | * Fix setting version table in dump As noted on Discord there is a problem with gitea dump where the version table is not being dumped correctly. This is due to a missing pointer in the TableInfo. This PR fixes this. Signed-off-by: Andrew Thornton <art27@cantab.net> * Update models_test.go
* Feature/oauth userinfo (#15721)N. L. H2021-05-063-0/+75
| | | | | | | | | | | | | | | | | | | | | | * Implemented userinfo #8534 * Make lint happy * Add userinfo endpoint to openid-configuration * Give an error when uid equals 0 * Implemented BearerTokenErrorCode handling * instead of ctx.error use ctx.json so that clients parse error and error_description correctly * Removed unneeded if statement * Use switch instead of subsequent if statements Have a default for unknown errorcodes. Co-authored-by: Nils Hillmann <hillmann@nlh-software.de> Co-authored-by: nlhsoftware <nlhsoftware@noreply.localhost>
* reverse #15734 partial and comment (#15740)65432021-05-061-1/+2
| | | | | | | | | * reverse & comment * Update templates/repo/graph/commits.tmpl Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* fix some ui bug about draft release (#15137)a10121127962021-05-067-22/+128
| | | | | | | | | | | | | | | | | | | * fix some ui bug about draft release - should not show draft release in tag list because it will't create real tag - still show draft release without tag and commit message for draft release instead of 404 error - remove tag load for attachement links because it's useless Signed-off-by: a1012112796 <1012112796@qq.com> * add test code * fix test That's because has added a new release in relaese test database. * fix dropdown link for draft release
* Defer closing the gitrepo until the end of the wrapped context functions ↵zeripath2021-05-062-8/+41
| | | | | | | | | (#15653) There was a mistake in #15372 where deferral of gitrepo close occurs before it should. This PR fixes this. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix close button change on delete in simplemde area (#15737)zeripath2021-05-051-5/+5
| | | | | | | | | | | * Fix close button change on delete in simplemde area Fix issue with close button changing when deleting in the simplemde textarea. Signed-off-by: Andrew Thornton <art27@cantab.net> * apply suggestion Co-authored-by: 6543 <6543@obermui.de>
* Add caret styling CSS (#15651)silverwind2021-05-053-8/+7
| | | | | | | | | | | | | | | | | | | | | * Add caret styling CSS Fixes: https://github.com/go-gitea/gitea/issues/15644 * add rule in arc-green as well * grammar * Update web_src/less/themes/theme-arc-green.less Co-authored-by: Wim <wim@42.be> * remove extra rule * add comment Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Wim <wim@42.be> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Issue list alignment tweaks (#15483)silverwind2021-05-052-4/+6
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Commit Graph: Pull-Requests should not link to issues (#15734)KN4CK3R2021-05-051-8/+2
| | | Use `/pulls` and simplify code.
* Fix broken avatars since #15301 (#15731)zeripath2021-05-052-2/+89
| | | | | | | There was a missing * from the avatars routes in #15301. Fix #15727 Signed-off-by: Andrew Thornton <art27@cantab.net>
* MySQL 5 FAQ (#15729)John Olheiser2021-05-051-1/+7
| | | | | | | * MySQL 5 Signed-off-by: jolheiser <john.olheiser@gmail.com> * Wording
* Use route rather than use thus reducing the number of stack frames (#15301)zeripath2021-05-043-46/+57
| | | | | | | | | | | | Since the move to Chi the number of stack frames has proliferated somewhat catastrophically and we're up to 96 frames with multiple tests of the url outside of a trie which is inefficient. This PR reduces the number of stack frames by 6 through careful use of Route, moves Captcha into its own router so that it only fires on Captcha routes, similarly for avatars and repo-avatars. The robots.txt, / and apple-touch-icon.png are moved out of requiring Contexter. It moves access logger higher in the stack frame because there is no reason why it can't be higher. Extract from #15186 Contains #15292
* update branch in CI and docs (#15631)techknowlogick2021-05-0410-43/+43
|
* Fix webkit calendar icon color on arc-green (#15713)silverwind2021-05-041-0/+4
| | | Co-authored-by: zeripath <art27@cantab.net>
* Display specific message if diff is not displayed because of too long line ↵Loutro2021-05-043-16/+27
| | | | | | | | | | | | | | | | (#15611) * 7184- message if line too long * Update options/locale/locale_en-US.ini Co-authored-by: silverwind <me@silverwind.io> * add flag on missing cases Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Andrew Thornton <art27@cantab.net>
* Only log Error on getLastCommitStatus error to let pull list still be ↵65432021-05-041-1/+2
| | | | visible (#15716)
* [skip ci] Updated translations via CrowdinGiteaBot2021-05-043-0/+6
|
* Add compare tag dropdown to releases page (#15695)Jonathan Tran2021-05-038-36/+78
| | | | | | | | | | * Add compare tag dropdown to releases page * Change defaults to be more intuitive and remove unneeded option * Fix to select branch on releases page Co-authored-by: Jonathan Tran <jon@allspice.io> Co-authored-by: Kyle D <kdumontnu@gmail.com>
* Fix setting redis db path (#15698)zeripath2021-05-031-3/+3
| | | | | | | | There is a bug setting the redis db in the common nosql manager whereby the db path always fails. This PR fixes this. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Prevent race in TestChannelQueue_Batch (#15703)zeripath2021-05-031-3/+3
| | | | | | | | There is a potential race in TestChannelQueue_Batch due to boost workers starting up This PR simply removes the boosts from this test. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Improve Light Chroma style (#15699)mlpo2021-05-021-13/+13
| | | | | | | | * Improve Light Chroma style * Light Chroma style: avoid close colors Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2021-05-031-0/+6
|
* Addition to (Add Location, Website and Description to API #15675) (#15690)KN4CK3R2021-05-025-14/+22
| | | | | | | | | * Use same name as other structs. * Sync with normal forms. * Edit description with API. * Workaround for nil value.
* Only use boost workers for leveldb shadow queues (#15696)zeripath2021-05-023-10/+48
| | | | | | | | | | | * The leveldb shadow queue of a persistable channel queue should always start with 0 workers and just use boost to add additional workers if necessary. * create a zero boost so that if there are no workers in a pool - boost to start the workers * actually set timeout appropriately on boosted workers Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix DB session cleanup (#15697)zeripath2021-05-011-1/+1
| | | | | | | The DB session clean up needs to check expiry not created_unix. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Performance improvement for last commit cache and show-ref (#15455)zeripath2021-05-023-5/+30
| | | | | | | * Improve performance when there are multiple commits in the last commit cache * read refs directly if we can Signed-off-by: Andrew Thornton <art27@cantab.net>
* Move tooltip down to allow selection of Remove File on error (#15672)Kyle D2021-05-011-1/+1
|
* Markdown CSS tweaks (#15572)silverwind2021-05-011-24/+34
| | | | | | Update Markdown CSS to more closely match GH rendering. Changes include better nested list margins and tweaked font sizes. Co-authored-by: Lauris BH <lauris@nix.lv>
* add cron job to delete old actions from database (#15688)a10121127962021-05-015-0/+42
| | | | | that's a way to save database storage space. Signed-off-by: a1012112796 <1012112796@qq.com>
* Unify integration test configs. (#15650)KN4CK3R2021-05-015-33/+49
|
* Add Location, Website and Biography to API (#15675)KN4CK3R2021-05-013-7/+31
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-05-012-1/+38
|
* Fixed several activation bugs (#15473)KN4CK3R2021-04-303-17/+47
| | | | | | | | | | | * Removed unneeded form tag. * Fixed typo. * Fixed NPE. * Use better error page. * Splitted GET and POST.
* Delete references if repository gets deleted (#15681)KN4CK3R2021-04-302-26/+61
| | | | | | | * Remove DeletedBranch and LFSLocks. * Sort beans. Co-authored-by: zeripath <art27@cantab.net>
* Fix orphaned objects deletion bug (#15657)Lunny Xiao2021-04-302-3/+39
| | | | | | | * Fix orphaned objects deletion bug * extend test Co-authored-by: 6543 <6543@obermui.de>
* Unified link creation. (#15619)KN4CK3R2021-04-3011-24/+27
|
* Added missing prefix on install route. (#15677)KN4CK3R2021-04-301-0/+1
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Docs: fix location for custom/options/license (#15671)yearski2021-04-301-1/+1
|
* Docs: renderers rst: rst2html.py -> pandoc (#15659)65432021-04-301-1/+1
|
* Delete protected branch if repository gets removed (#15658)KN4CK3R2021-04-302-8/+27
| | | | | | | * Added missing error parameters. * Delete protected branch if repository gets removed. * Added doctor fix.
* Remove random password in Dockerfiles (#15362)Martin Michaelis2021-04-292-3/+2
| | | | | * Remove random password of git user in dockerfile * Disable git user account in rootless dockerfile
* fix(settings): misaligned buttons (#15656)Garrit Franke2021-04-291-2/+2
| | | Co-authored-by: 6543 <6543@obermui.de>
* Fix readme render bug (#15649)Lunny Xiao2021-04-281-0/+1
|
* Remove spurious set name from eventsource.sharedworker.js (#15643)zeripath2021-04-281-2/+0
| | | | | | | Fix #15617 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* add `/assets` as root dir of public files (#15219)a10121127962021-04-2812-26/+29
| | | | | | | | | | | | | | | | | | | | | | | | | * add `/assets` as root dir of public files Signed-off-by: a1012112796 <1012112796@qq.com> * move serviceworker.js * make fmt * fix some link * fix test * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Remove x-ua-compatible header (#15640)silverwind2021-04-281-1/+0
| | | | The header is deprecated since IE 11 so it only serves to support IE 10 and below which are browsers which are long unsupported now.
* not update updated uinx for `git gc` (#15637)a10121127962021-04-281-1/+1
| | | | | fix #15634 Signed-off-by: a1012112796 <1012112796@qq.com>
* [skip ci] Updated translations via CrowdinGiteaBot2021-04-271-0/+48
|
* Fix commit graph author link (#15627)zeripath2021-04-261-1/+1
| | | | | The author link on the commit graph is incorrect and isn't providing a link to the author. Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix webhook timeout bug (#15613)Lunny Xiao2021-04-252-10/+7
| | | * Also fix the potential problem in httplib