summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug on avatar middleware (#15124)Lunny Xiao2021-03-231-2/+11
|
* Fix consistency check (#15120)zeripath2021-03-231-1/+1
| | | | | | In my last fix I missed adding the label_ prefix to the consistency check count. Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2021-03-232-32/+34
|
* Remove raw-loader dependency (#15112)silverwind2021-03-223-37/+1
| | | | | | | Webpack now includes this functionality, allowing us to drop this now-deprecated dependency. Ref: https://webpack.js.org/guides/asset-modules/ Ref: https://webpack.js.org/loaders/raw-loader/
* Fix the v176 migration (#15110)zeripath2021-03-223-3/+3
| | | | | | | | There is a serious issue with the v176 migration where there is a mistaken missing label_id selection. *introduced by #14912* Signed-off-by: Andrew Thornton <art27@cantab.net>
* [Vendor] update gitea-sdk v0.14.0 (#15103)65432021-03-2255-355/+1333
| | | | | * upgraded code.gitea.io/sdk/gitea v0.13.2 => v0.14.0 * rm workaround
* Implement delete release attachments and update release attachments' name ↵Lunny Xiao2021-03-2311-56/+276
| | | | | | | | | | | | | | | | | | | | | | | | | (#14130) * Implement delete release attachment * Add attachments on release edit page * Fix bug * Finish del release attachments * Fix frontend lint * Fix tests * Support edit release attachments * Added tests * Remove the unnecessary parameter isCreate from UpdateReleaseOrCreatReleaseFromTag * Rename UpdateReleaseOrCreatReleaseFromTag to UpdateRelease * Fix middle align
* Update JS dependencies (#15033)silverwind2021-03-22273-1659/+1861
| | | | | | | | | | | | | * Update JS dependencies - Update all JS dependencies - For octicons, rename trashcan to trash - For svgo, migrate to v2 api, output seems to have slightly changed but icons look the same - For stylelint, update config, fix custom property duplicates - For monaco, drop legacy Edge support - For eslint, enable new rules, fix new issues - For less-loader, remove deprecated import syntax * update svgo usage in generate-images and rebuild logo.svg with it
* Fix another clusterfuzz identified issue (#15096)zeripath2021-03-221-1/+1
| | | | | * Fix another clusterfuzz identified issue Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2021-03-221-1/+166
|
* Fixed previous fix. (#15098)KN4CK3R2021-03-211-1/+3
|
* Fix lock modal content rendering outside modal (#15095)silverwind2021-03-211-49/+46
| | | | | | | | * Fix lock modal content rendering outside modal The .content was not a child to .modal so was rendering outside. This is a recent regression but I'm not certain when it was introduced. * remove extraneous closing div
* Changelog v1.13.5 (#15084) (#15093)65432021-03-211-1/+22
| | | | | * Changelog v1.13.5 (#15084) * fix unrel. nit
* Place wrapper around comment as diff to catch panics (#15085)zeripath2021-03-211-0/+8
| | | | | | | There are a few recurrent issues with comment as diff reporting panics that are resistant to fixing due to the fact that the panic occurs in the template render and is swallowed by the template renderer. This PR just adds some logging to force the panic to properly logged and re-propagates back up to the template renderer so we can actually detect what the issue is. Signed-off-by: Andrew Thornton art27@cantab.net
* Use i18n.Reset to reload locales (#15073)65432021-03-215-12/+11
|
* fix double 'push tag' action feed (#15078)a10121127962021-03-211-2/+4
| | | Signed-off-by: a1012112796 <1012112796@qq.com>
* Handle unauthorized user events gracefully (#15071)Lauris BH2021-03-202-1/+12
|
* [Refactor] remove possible resource leak (#15067)65432021-03-211-35/+38
| | | | | | | | | * move "copy uploaded lfs files 2 repo" to own function for "defer file.Close()" * rm type overload * Update modules/repofiles/upload.go Co-authored-by: zeripath <art27@cantab.net>
* Update to goldmark 1.3.3 (#15059)zeripath2021-03-204-18/+31
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix markdown rendering in milestone content (#15056)silverwind2021-03-203-4/+5
| | | | | | - Add missing markdown class for rendered markdown. - Increase font size of milestone name in list. Fixes: https://github.com/go-gitea/gitea/issues/15046
* [skip ci] Updated translations via CrowdinGiteaBot2021-03-203-1/+183
|
* Allow read/write to user root and only read to group git on documentation ↵v1.15.0-devLasse Brandt Thomsen2021-03-201-1/+1
| | | | | (#15041) Co-authored-by: Lasse Brandt Thomsen <lasse@bitmand.dk>
* Fix bug when upload on web (#15042)Lunny Xiao2021-03-191-22/+28
| | | | | | | | * Fix bug when upload on web * move into own function Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* Changelog for 1.14.0-RC1 (#14935)65432021-03-191-1/+264
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changelog for 1.14.0-RC1 * api * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * update * Apply suggestions from code review Co-authored-by: techknowlogick <matti@mdranta.net> * Update CHANGELOG.md Co-authored-by: techknowlogick <matti@mdranta.net> * update * Update CHANGELOG.md * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Apply suggestions from code review * Move things to SECURITY that are SECURITY Signed-off-by: Andrew Thornton <art27@cantab.net> * Update CHANGELOG.md Co-authored-by: Lauris BH <lauris@nix.lv> * Update CHANGELOG.md * Apply suggestions from code review Co-authored-by: Norwin <noerw@users.noreply.github.com> * Update CHANGELOG.md Co-authored-by: Kyle D. <kdumontnu@gmail.com> * sort * Update CHANGELOG.md Co-authored-by: Kyle D. <kdumontnu@gmail.com> * :gitea: :rocket: * Update date Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Norwin <noerw@users.noreply.github.com> Co-authored-by: Kyle D. <kdumontnu@gmail.com>
* Delete Labels & IssueLabels on Repo Delete too (#15039)65432021-03-197-9/+116
| | | | | | | | | | | | | | | | | | | | | | | * Doctor: find IssueLabels without existing label * on Repo Delete: delete labels & issue_labels too * performance nits * Add Migration: Delete orphaned IssueLabels * Migration v174: use Sync2 * USE sess !!! * better func name * code format & comment * RAW SQL * Update models/migrations/v176.go * next try?
* Prevent addition of labels from outside the repository or organisation in ↵zeripath2021-03-194-0/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | issues (#14912) * Never add labels not from this repository or organisation and remove org labels on transfer Prevent the addition of labels from outside of the repository or organisation and remove organisation labels on transfer. Related #14908 Signed-off-by: Andrew Thornton <art27@cantab.net> * switch to use sql Signed-off-by: Andrew Thornton <art27@cantab.net> * remove AS Signed-off-by: Andrew Thornton <art27@cantab.net> * subquery alias Signed-off-by: Andrew Thornton <art27@cantab.net> * Give me some AS? Signed-off-by: Andrew Thornton <art27@cantab.net> * double AS Signed-off-by: Andrew Thornton <art27@cantab.net> * try try again Signed-off-by: Andrew Thornton <art27@cantab.net> * once more around the merry go round Signed-off-by: Andrew Thornton <art27@cantab.net> * fix api problem Signed-off-by: Andrew Thornton <art27@cantab.net> * Add outside label consistency check into doctor This PR adds another consistency check into doctor in order to detect labels that have been added from outside of repositories and organisations Fix #14908 Signed-off-by: Andrew Thornton <art27@cantab.net> * fix migration Signed-off-by: Andrew Thornton <art27@cantab.net> * prep for merge Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix UI elements getting underline like links (#15038)Mike L2021-03-191-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-03-191-0/+2
|
* Fix CJK fonts again and misc. font issues (#14575)Mike L2021-03-196-40/+187
| | | | | | | | | | | | | | | | | | | | | * Push system-ui further down the stack, fix #12966 * Fix Firefox showing U+300x in emoji font and more * Revert emoji font and fix long-standing Safari bug * Exclude Safari emoji fix above 1.25x zoom * Minor correctness/typo fix, affects only legacy platforms * Emoji consistency for monospace (e.g. EasyMDE) * Override paradigm; macOS/iOS-specific metric fix * Move whitespace fix to font-face * Handle metric calculation errors with Firefox * One last workaround for aliased fonts in Linux
* another clusterfuzz spotted issue (#15032)zeripath2021-03-181-1/+1
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix hover color for last row of repo file list (#15018)Mike L2021-03-181-0/+10
|
* Do not convert file path to lowercase (#15023)KN4CK3R2021-03-183-3/+49
| | | | | | | | * Do not convert file path to lowercase. * lint * Check against lowercase hostname.
* fix href on label in sidebar (#15022)Norwin2021-03-181-2/+2
|
* Fix postgres ID sequences broken by recreate-table (#15015)zeripath2021-03-184-1/+198
| | | | | | | | | | | | | | | | | | | | | * Fix postgres ID sequences broken by recreate-table Unfortunately there is a subtle problem with recreatetable on postgres which leads to the sequences not being renamed and not being left at 0. Fix #14725 Signed-off-by: Andrew Thornton <art27@cantab.net> * let us try information_schema instead Signed-off-by: Andrew Thornton <art27@cantab.net> * try again Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: 6543 <6543@obermui.de>
* Remove extraneous logging (#15020)zeripath2021-03-182-6/+10
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Create new issue from code (#14863)Roger Luo2021-03-175-2/+89
| | | | | | | | | | | | | | * Feat: add reference in new issue with permalink menu for code view. * Fix: recover index.js file. * Add comments and redo ci. * Fix code convention * Fix code. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de>
* [skip ci] Updated translations via CrowdinGiteaBot2021-03-182-0/+32
|
* org dashboard: move teamselector left (#14954)Norwin2021-03-171-52/+53
| | | Co-authored-by: zeripath <art27@cantab.net>
* support gitmailmap in GetCodeActivityStats() (#15009)a10121127962021-03-171-1/+1
| | | | | | | | | ref: - https://git-scm.com/docs/gitmailmap - https://git-scm.com/docs/git-log#Documentation/git-log.txt-emaNem Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: zeripath <art27@cantab.net>
* sort release attachments by name (#15008)Norwin2021-03-171-1/+1
| | | | | Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* chore: bump minio to RELEASE.2021-03-12T00-00-47Z (#15006)wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2021-03-171-1/+1
| | | | | | | | | * chore: bump minio to RELEASE.2021-03-12T00-00-47Z - image: minio/minio:RELEASE.2021-01-16T02-19-44Z + image: minio/minio:RELEASE.2021-03-12T00-00-47Z Signed-off-by: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <a_mirre@utb.cz>
* Validate email in oauth registration form (#15014)Kyle D2021-03-171-0/+5
|
* Fixed wrong migrate url error description. (#15010)KN4CK3R2021-03-172-8/+8
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-03-175-0/+15
|
* fix: {show,link to} proper PR on kanban board ref (#15004)wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2021-03-161-2/+2
| | | | | | | | | | | the issue was that PR references in kanban boards were being generated using `.ID` instead of `.Index`, which led to constructing incorrect links to possibly non-existent {PR,issue}s and following that to showing nonsensical values in the boards. kudos also go to @zeripath for pointing at the file to fix. Signed-off-by: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <a_mirre@utb.cz> Co-authored-by: zeripath <art27@cantab.net>
* add pat-s to MAINTAINERS list (#15007)Patrick Schratz2021-03-161-0/+1
|
* Ensure that new pull request button works on forked forks owned by owner of ↵zeripath2021-03-162-11/+32
| | | | | | | | the root (#14932) Prevent 404 on new pull request button on forked fork owned by the owner of the root repository. Also ensure that the names make sense. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Move repo.CloseIssuesViaCommitInAnyBranch to issue settings (#14965)Norwin2021-03-163-36/+44
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-03-162-6/+6
|
* Fix several render issues (#14986)zeripath2021-03-166-61/+211
| | | | | | | | | * Fix an issue with panics related to attributes * Wrap goldmark render in a recovery function * Reduce memory use in render emoji * Use a pipe for rendering goldmark - still needs more work and a limiter Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>