aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-03Fix pushing to 1-x-dev docker tag (part 4)release/v1.15Andrew Thornton
OK now we have the images building we should make sure that the main ones stays dev and the release/v* ones become *-dev-* Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-02-03Fix pushing to 1-x-dev docker tag (part 3)Andrew Thornton
well part 2 did not work - let us try again. Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-02-03Fix pushing to 1-x-dev docker tag (part 2)Andrew Thornton
Although we now have the manifest working, we need to create the images. Here we adjust the .drone.yml to force building of the images Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-02-03Fix pushing to 1-x-dev docker tag (#18578) (#18580)zeripath
Backport #18578 It appears that #18551 and #18573 have a mistake in that raymond does not have an {{else}} on {{#equal}}. This PR notes that Sprig has a hasPrefix function and so we use this with another if. Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-02-03Make docker gitea/gitea:v1.15-dev etc refer to the latest build on that ↵zeripath
branch (#18551) (#18569) (#18575) Backport #18551 One of the problems with our current docker tagging is that although we have strict version tags, latest and dev we do not have a way for docker users to track the current release branch. This PR simply suggests that we use the 1.x-dev tag for these and we build and push these. This will give users who want or need unreleased bug fixes the option of tracking the pre-release version instead of simply jumping to dev. However, there is a problem with #18551/#18569 whereby the manifest is not properly uploading. Therefore this PR adds in some debug logging in order to get this to debug things. Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-31point to s3 endpoint directly (#18497) (#18509)techknowlogick
2022-01-31for next 1.15.x tag, don't push "latest" image (#18489)techknowlogick
2022-01-30Changelog for 1.15.11 (#18455)v1.15.11zeripath
## [1.15.11](https://github.com/go-gitea/gitea/releases/tag/v1.15.11) - 2022-01-29 * SECURITY * Only view milestones from current repo (#18414) (#18418) * BUGFIXES * Fix broken when no commits and default branch is not master (#18422) (#18424) * Fix commit's time (#18375) (#18409) * Fix restore without topic failure (#18387) (#18401) * Fix mermaid import in 1.15 (it uses ESModule now) (#18382) * Update to go/text 0.3.7 (#18336) * MISC * Upgrade EasyMDE to 2.16.1 (#18278) (#18279)
2022-01-28Fix broken when no commits and default branch is not master (#18424)Lunny Xiao
* Fix broken when no commits and default branch is not master * Fix IsEmpty check * Improve codes
2022-01-26Only view milestones from current repo (#18414) (#18418)zeripath
Backport #18414 The endpoint /{username}/{reponame}/milestone/{id} is not currently restricted to the repo. This PR restricts the milestones to those within the repo. Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-26Fix restore without topic failure (#18387) (#18401)Lunny Xiao
Co-authored-by: zeripath <art27@cantab.net>
2022-01-25Fix commit's time (#18375) (#18409)Gusted
- Backport of #18375
2022-01-24Fix mermaid import (it uses ESModule now) (#18382)wxiaoguang
2022-01-19Update to go/text 0.3.7 (#18336)zeripath
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-17Backport: Upgrade EasyMDE 2.16.1 (package-lock.json) (#18301)wxiaoguang
* Upgrade EasyMDE 2.16.1 * Update CodeMirror 5.65.0 * Update caniuse-lite (suggested by npm)
2022-01-15Upgrade EasyMDE to 2.16.1 (#18279)wxiaoguang
2022-01-14Changelog for 1.15.10 (#18274)v1.15.10Richard Mahn
[1.15.10](https://github.com/go-gitea/gitea/releases/tag/v1.15.10) - 2022-01-14 * BUGFIXES * Fix inconsistent PR comment counts (#18260) (#18261) * Fix release link broken (#18252) (#18253) * Fix update user from site administration page bug (#18250) (#18251) * Set HeadCommit when creating tags (#18116) (#18173) * Use correct translation key for error messages due to max repo limits (#18135 & #18153) (#18152) * Fix purple color in suggested label colors (#18241) (#18242) * SECURITY * Bump mermaid from 8.10.1 to 8.13.8 (#18198) (#18206)
2022-01-14Fix release link broken (#18253)Lunny Xiao
* Fix release link broken * Fix unsupported compare * Fix another place
2022-01-14fix regression from #16075 (#18261)Norwin
we don't want reviews to count towards comments, as this needs changes in other components as well (eg repo stats cron job, etc).
2022-01-12Fix update user bug (#18251)Lunny Xiao
2022-01-11Fix purple color in suggested label colors (#18242)silverwind
This looks like a typo that was introduced when these colors were added, causing what is supposed to be purple show up as green.
2022-01-09Fix mermaid rendering in milestone dashboard (#18214)silverwind
Fixes: https://github.com/go-gitea/gitea/issues/18200
2022-01-07Bump mermaid from 8.10.1 to 8.13.8 (#18198) (#18206)zeripath
Updates to latest mermaid. Backport #18198 Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-04Set HeadCommit when creating tags. (#18116) (#18173)Lunny Xiao
Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-01-02Use correct translation key for error messages due to max repo limits ↵Gusted
(#18135 & #18153) (#18152) - Backport #18135 - Backport #18153
2021-12-30Fix wrong redirect on org labels (#18128) (#18134)v1.15.9Lunny Xiao
* Fix wrong redirect on org labels (#18128) Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2021-12-30Doc: add missing bug fix to changelog (#18133)DuckDuckWhale
2021-12-30Changelog v1.15.9 (#18115)zeripath
* BUGFIXES * Revert "Fix delete u2f keys bug (#18042)" (#18107) * Migrating wiki don't require token, so we should move it out of the require form (#17645) (#18104) * Prevent NPE if gitea uploader fails to open url (#18080) (#18101) * Reset locale on login (#17734) (#18100) * Correctly handle failed migrations (#17575) (#18099) * Instead of using routerCtx just escape the url before routing (#18086) (#18098) * Quote references to the user table in consistency checks (#18072) (#18073) * Add NotFound handler (#18062) (#18067) * Ensure that git repository is closed before transfer (#18049) (#18057) * Use common sessioner for API and web routes (#18114) * TRANSLATION * Fix code search result hint on zh-CN (#18053) Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-12-29Fix: unstable sort skips/duplicates issues across pages (#18095)DuckDuckWhale
When viewing issues in sorted order, some issues are duplicated across pages and some are missing. This is caused by the lack of tie-breakers in database queries, making pagination inconsistent. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2021-12-28Use common sessioner for API and web routes (#18114)zeripath
* Use common sessioner for API and web routes Since the regenerate session ID PR some users of the memory session provider have been reporting difficulties with getting API results. I am uncertain as to why this is happening - but I think that the sessioner being created twice may be a potential cause for this. Therefore this PR attempts to move this out to a common sessioner as it is in 1.16. Fix #18070 Signed-off-by: Andrew Thornton <art27@cantab.net> * Update routers/init.go
2021-12-27Migrating wiki don't require token, so we should move it out of the require ↵Lunny Xiao
form (#17645) (#18104) * Migrating wiki don't require token, so we should move it out of the require form * Fix lint Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-12-26Revert "Fix delete u2f keys bug (#18042)" (#18107)Lunny Xiao
This reverts commit 91f5be889af4081b05d63aadecb1373689e1f57c.
2021-12-26Instead of using routerCtx just escape the url before routing (#18086) (#18098)zeripath
Backport #18086 A consequence of forcibly setting the RoutePath to the escaped url is that the auto routing to endpoints without terminal slashes fails (Causing #18060.) This failure raises the possibility that forcibly setting the RoutePath causes other unexpected behaviors too. Therefore, instead we should simply pre-escape the URL in the process registering handler. Then the request URL will be properly escaped for all the following calls. Fix #17938 Fix #18060 Replace #18062 Replace #17997 Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-26Prevent NPE if gitea uploader fails to open url (#18080) (#18101)zeripath
Backport #18080 If http.Get() returns an error return nil and err before attempting to use the broken file. Thanks to walker xiong for spotting this bug. Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-25Correctly handle failed migrations (#17575) (#18099)zeripath
* Correctly handle failed migrations There is a bug in handling failed migrations whereby the migration task gets decoupled from the migration repository. This leads to a failure of the task to get deleted with the repository and also leads to the migration failed page resulting in a ISE. This PR removes the zeroing out of the task id from the migration but also makes the migration handler tolerate missing tasks much nicer. Fix #17571 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2021-12-25Reset locale on login (#17734) (#18100)zeripath
Backport #17734 When logging in reset the user's locale to ensure that it matches their preferred locale. Fix #15612 Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-22Quote references to the user table in consistency checks (#18072) (#18073)zeripath
Backport #18072 Although #17487 ensured that the table was quoted in the join it missed that the query part of the check also needed to be quoted. Fix #17485 Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-22Add NotFound handler (#18062) (#18067)zeripath
Backport #18062 PR #17997 means that urls with terminal '/' are no longer immediately mapped to the url without a terminal slash. However, it has revealed that the NotFound handler appears to have been lost. This PR adds back in a NotFound handler that simply redirects to a path without the terminal slash or runs the NotFound handler. Fix #18060 Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-21Ensure that git repository is closed before transfer (#18049) (#18057)zeripath
Backport #18049 Repository Transfer requires that the repository directory is renamed - which is not possible on Windows if the git repository is open. Fix #17885 Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-21Fix code search result hint on zh-CN (#18053)Lunny Xiao
2021-12-20Update Changelog (#18047)v1.15.8zeripath
2021-12-20Fix delete u2f keys bug (#18042)Lunny Xiao
Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-12-20Move POST /{username}/action/{action} to simply POST /{username} (#18045) ↵zeripath
(#18046) Backport #18045 The current code unfortunately requires that `action` be a reserved repository name as it prevents posts to change the settings for action repositories. However, we can simply change action handler to work on POST /{username} instead. Fix #18037 Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-20Reset Session ID on login (#18018) (#18041)zeripath
Backport #18018 When logging in the SessionID should be reset and the session cleaned up. Also logs the user in on completion of linking account Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-20Prevent off-by-one error on comments on newly appended lines (#18029) (#18035)zeripath
* Prevent off-by-one error on comments on newly appended lines (#18029) Backport #18029 There was a bug in CutDiffAroundLine whereby if a file without a terminal new line has a patch which appends lines to it and a comment is placed on one of those lines the comment diff will be a line out of place. This fixes CutDiffAroundLine to simply ignore the missing terminal newline - however, we should really improve this rendering to add a marker to say that there was a previously missing terminal newline. Fix #17875 Signed-off-by: Andrew Thornton <art27@cantab.net> * Apply suggestions from code review Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-12-20Changelog 1.15.8 (#18026)zeripath
## [1.15.8](https://github.com/go-gitea/gitea/releases/tag/v1.15.8) - 2021-12-19 * BUGFIXES * Reset locale on login (#18023) (#18025) * Fix reset password email template (#17025) (#18022) * Fix outType on gitea dump (#18000) (#18016) * Ensure complexity, minlength and isPwned are checked on password setting (#18005) (#18015) * Fix rename notification bug (#18011) * Prevent double decoding of % in url params (#17997) (#18001) * Prevent hang in git cat-file if the repository is not a valid repository (Partial #17991) (#17992) * Prevent deadlock in create issue (#17970) (#17982) * TESTING * Use non-expiring key. (#17984) (#17985) Signed-off-by: Andrew Thornton <art27@cantab.net> * Update CHANGELOG.md Co-authored-by: 6543 <6543@obermui.de>
2021-12-19Stop printing 03d after escaped characters in logs (#18030) (#18034)zeripath
Backport #18030 Strangely a weird bug was present in the log escaping code whereby any escaped character would gain 03d - this was due to a mistake in the format string where it should have read %03o but read instead %o03d. This has led to spurious 03d trailing characters on these escaped characters! Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-19Reset locale on login (#18023) (#18025)zeripath
Backport #18023 Although we reset the locale in a number of places there were several ways of logging in that were missing the same code. Fix #18020 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Gusted <williamzijl7@hotmail.com>
2021-12-18Fix reset password email template (#17025) (#18022)zeripath
2021-12-18backport: fix outType on gitea dump (#18016)Gusted
- Backport from #18000 Co-authored-by: techknowlogick <techknowlogick@gitea.io>