summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Support Force-update in Mirror and improve Tracing in mirror (#12242)zeripath2020-08-201-1/+33
| | | | | | | | | | | | | | | | | * Remove double indirect in NewColoredIDValue Signed-off-by: Andrew Thornton <art27@cantab.net> * Handle forced-update in mirror.go Signed-off-by: Andrew Thornton <art27@cantab.net> * Add tracing Signed-off-by: Andrew Thornton <art27@cantab.net> * As per @lafriks Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix typos (#12545)Success2020-08-202-2/+2
| | | | | | | * fix typo in app.ini * fix typo in git hook module Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-201-0/+48
|
* Use Node 14 on CI (#12512)silverwind2020-08-201-4/+4
| | | | | | | | | | | * Use Node 14 on CI Node 14 is sufficiently stable now, use it on CI. * also run build on node 14 Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
* Add placeholder text for "Add SSH/GPG Key" forms (#12533)Bagas Sanjaya2020-08-203-2/+4
| | | | | | | | | | | | * Add placeholder text for "Add SSH/GPG Key" forms This commit add placeholder text for both Add SSH key and Add GPG key forms. * Localize placeholders Changes requested by @zeripath Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix typos (#12542)Gjergji Ramku2020-08-204-7/+7
| | | Signed-off-by: Gjergji Ramku <gjergjiramku@gmail.com>
* Default empty merger list to those with write permissions (#12535)zeripath2020-08-203-4/+9
| | | | | Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Show 2FA info on Admin Pannel: Users List (#12515)65432020-08-204-1/+5
|
* Report error if API merge is not allowed (#12528)zeripath2020-08-191-3/+13
| | | | | | | | | | #12496 demonstrated that the API merge needs to return some information as to why a merge has been disallowed with a status code 422. This PR ensures that a reason is always returned. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Set z-index for sticky diff box lower (#12537)zeripath2020-08-191-1/+1
| | | | | Fix #12525 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add security policy to repo (#12536)techknowlogick2020-08-191-0/+10
|
* Remove hardcoded ES indexername (#12521)Wim2020-08-181-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-181-0/+2
|
* change PIDFile default from /var/run/gitea.pid to /run/gitea.pid (#12500)Florian Klink2020-08-182-2/+2
| | | | | | | | | | | | | | | | | | * docs: update heading This section covers more paths than the 3 listed in the heading. * setting: change PIDFile default from /var/run/gitea.pid to /run/gitea.pid On most modern distributions, /var/run is deprecated and only kept for backwards compat according to https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s13.html, and is a symlink to `/run/` on modern distributions. Old Distros that still don't have `/run` can update the gitea default as described in from-source.en-us.md to point to the old location. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-182-0/+93
|
* Add a storage layer for attachments (#11387)Lunny Xiao2020-08-18330-328/+62096
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a storage layer for attachments * Fix some bug * fix test * Fix copyright head and lint * Fix bug * Add setting for minio and flags for migrate-storage * Add documents * fix lint * Add test for minio store type on attachments * fix test * fix test * Apply suggestions from code review Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> * Add warning when storage migrated successfully * Fix drone * fix test * rebase * Fix test * display the error on console * Move minio test to amd64 since minio docker don't support arm64 * refactor the codes * add trace * Fix test * remove log on xorm * Fi download bug * Add a storage layer for attachments * Add setting for minio and flags for migrate-storage * fix lint * Add test for minio store type on attachments * Apply suggestions from code review Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> * Fix drone * fix test * Fix test * display the error on console * Move minio test to amd64 since minio docker don't support arm64 * refactor the codes * add trace * Fix test * Add URL function to serve attachments directly from S3/Minio * Add ability to enable/disable redirection in attachment configuration * Fix typo * Add a storage layer for attachments * Add setting for minio and flags for migrate-storage * fix lint * Add test for minio store type on attachments * Apply suggestions from code review Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> * Fix drone * fix test * Fix test * display the error on console * Move minio test to amd64 since minio docker don't support arm64 * don't change unrelated files * Fix lint * Fix build * update go.mod and go.sum * Use github.com/minio/minio-go/v6 * Remove unused function * Upgrade minio to v7 and some other improvements * fix lint * Fix go mod Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Tyler <tystuyfzand@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-171-0/+3
|
* Milestone Issue/Pull List: Add octicons type (#12499)65432020-08-171-1/+27
| | | | | | | | | * add octicons based on issue type (pull|issue) * handle IsRead again * short code Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-172-2/+0
|
* Fix 'make help' (#12509)silverwind2020-08-171-3/+3
| | | | | These targets are actually using plural names, fix help output for them. Ref: https://github.com/go-gitea/gitea/pull/12352
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-1726-3/+106
|
* add & correct Translation (#12507)65432020-08-171-1/+2
|
* Kanban board (#8346)Lanre Adelowo2020-08-1675-58/+3569
| | | | | | | | | | | | | Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: jaqra <48099350+jaqra@users.noreply.github.com> Co-authored-by: Kerry <flatline-studios@users.noreply.github.com> Co-authored-by: Jaqra <jaqra@hotmail.com> Co-authored-by: Kyle Evans <kevans91@users.noreply.github.com> Co-authored-by: Tsakiridis Ilias <TsakiDev@users.noreply.github.com> Co-authored-by: Ilias Tsakiridis <ilias.tsakiridis@outlook.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add 'checks' Make and CI tasks (#12352)silverwind2020-08-162-10/+36
| | | | | | | | | | | * Add 'checks' Make and CI tasks Introduce new "checks" targets that perform tasks that we've been piling onto the linting tasks. This will make the linter tasks faster and hopefully encourage some users to use them locally. * add checks to --help Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix bug preventing transfer to private organization (#12497)zeripath2020-08-166-10/+19
| | | | | | | | | | | | | | | | | * Fix bug preventing transfer to private organization The code assessing whether a private organization was visible to a user before allowing transfer was incorrect due to testing membership the wrong way round This PR fixes this issue and renames the function performing the test to be clearer. Further looking at the API for transfer repository - no testing was performed to ensure that the acting user could actually see the new owning organization. Signed-off-by: Andrew Thornton <art27@cantab.net> * change IsUserPartOfOrg everywhere
* Keys should not verify revoked email addresses (#12486)zeripath2020-08-161-0/+3
| | | | | Fix #6778 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Make the default PID file compile-time settable (#12485)zeripath2020-08-157-9/+12
| | | | | | | | | | #12391 offered to change the default PID file from /var/run/gitea.pid however in discussion it was decided that this could break users of older systems. An alternative was offered that we could make the PID file compile/link time settable. This PR does this, and changes the name of the setting from CustomPID to simply PIDFile. It also updates the from-source docs to show how to change the compiler settings to do this. Closes #12391 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Florian Klink <flokli@flokli.de>
* Update gitea-vet to v0.2.1 (#12282)65432020-08-1552-401/+3419
| | | | | | | | | | | * change to new code location * vendor * tagged version v0.2.0 * gitea-vet v0.2.1 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Build windows using golang 1.14 (#12489)techknowlogick2020-08-131-3/+12
|
* go-sqlite3 gomod version (#12490)techknowlogick2020-08-1432-7330/+13241
|
* Build windows using golang 1.14 (#12489)techknowlogick2020-08-131-1/+2
|
* Add Access-Control-Expose-Headers (#12446)zeripath2020-08-1314-0/+19
| | | | | | Fix #12424 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io>
* update (#12481)65432020-08-134-16/+16
| | | Co-authored-by: zeripath <art27@cantab.net>
* UI: Update commit signature view (#12473)techknowlogick2020-08-131-1/+1
|
* go1.15 (#12475)techknowlogick2020-08-136-18/+20
| | | | | | | | | | | | | * go1.15 * update makefile xgo version * fix vet issue * update docs to version of go in use * add TODO for asyncpreemptoff Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-132-0/+2
|
* Do not add prefix on http/https submodule links (#12477)zeripath2020-08-132-3/+4
| | | | | Fix #12345 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix ignored login on compare (#12476)Lunny Xiao2020-08-121-1/+1
|
* Update JS dependencies (#12474)silverwind2020-08-123-288/+399
| | | | | | | | | | | * Update JS dependencies - Update worker-loader options (currently unused pending #12459) - Remove @babel/plugin-proposal-object-rest-spread, it's enabled by default - Switch cssnano-webpack-plugin to css-minimizer-webpack-plugin which had been renamed * switch to css-minimizer-webpack-plugin
* Re-attempt to delete temporary upload if the file is locked by another ↵zeripath2020-08-1160-202/+304
| | | | | | | | | | | process (#12447) Replace all calls to os.Remove/os.RemoveAll by retrying util.Remove/util.RemoveAll and remove circular dependencies from util. Fix #12339 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-111-0/+1
|
* Make dashboard newsfeed list length a configurable item (#12469)techknowlogick2020-08-114-2/+7
| | | Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Add more tests for diff highlighting (#12467)mrsdizzie2020-08-112-1/+16
| | | | | Adding some more tests for different cases to make sure they keep working Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add placeholder text for send testing email button in admin/config (#12452)Bagas Sanjaya2020-08-102-1/+2
| | | | | | | | | | | | | | | | * Add placeholder text for send testing email button in admin/config * Change placeholder text to expecting email address * Localize placeholder text * Apply suggestion from @silverwind ok Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* use community codecov drone plugin (#12468)techknowlogick2020-08-101-4/+3
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-102-0/+4
|
* Fix Migration 145 on MSSQL if varchar is changed to nvarchar (#12445)zeripath2020-08-101-0/+22
| | | | | | | | | | | | | | | | | | | | | | | * Handle MSSQL constraints Signed-off-by: Andrew Thornton <art27@cantab.net> * Update models/migrations/v145.go * Prevent hang with Sync2 * Agh it's uniques not indexes * Let us try a different way of finding constraints on the language column Signed-off-by: Andrew Thornton <art27@cantab.net> * minor simplification Signed-off-by: Andrew Thornton <art27@cantab.net> * Try drop index instead? Signed-off-by: Andrew Thornton <art27@cantab.net>
* Prevent redirect back to /user/events (#12462)zeripath2020-08-081-3/+6
| | | | | | This PR prevents 2 further ways of causing the redirect cookie to be set to redirect back to /user/events Signed-off-by: Andrew Thornton <art27@cantab.net>
* Make default StaticRootPath compile time settable (#12371)65432020-08-082-2/+6
| | | | | | Make it possible to compile the default location of StaticRootPath independent from AppWorkPath Co-authored-by: Andrew Thornton <art27@cantab.net>
* Improved diff syntax highlighting fix (#12455)mrsdizzie2020-08-082-20/+37
| | | | | Make previous fix from #12238 more robust since I saw a case where a diff changes only a single character in a chroma class instead of the entire thing. Add another more complicated test to match. Co-authored-by: Lauris BH <lauris@nix.lv>