Lunny Xiao
32c4563d8d
Fix lfs file viewer ( #14568 )
4 years ago
Ikko Ashimine
1ea4339332
Fix typo in generate-emoji.go ( #14570 )
...
modifer -> modifier
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
Lunny Xiao
3537d80088
Fix bug about ListOptions and stars/watchers pagnation ( #14556 )
...
* Fix bug about ListOptions and stars/watchers pagnation
* fix unit test
Co-authored-by: 6543 <6543@obermui.de>
4 years ago
Anton Khimich
80b1d02b2f
Fix gpg key deletion ( #14561 )
...
* Fix GPG key deletion when user is deleted
Per #14531 , deleting a user account will delete the user's GPG keys
from the `gpg_key` table but not from `gpg_key_import`, which causes
an error when creating an account with the same email and attempting
to re-add the same key. This commit deletes all entries from
`gpg_key_import` that match any GPG key IDs belonging to the user.
* Format added code in models/user.go
* Create a new function for listing GPG keys and apply it
Create a new function `listGPGKeys` and replace a previous use
of `ListGPGKeys`. Thanks to @6543 for the patch.
Co-authored-by: Anton Khimich <anton.khimicha@mail.utoronto.ca>
Co-authored-by: 6543 <6543@obermui.de>
4 years ago
Cameron Braid
3c965c3e30
[API] GetRelease by tag only return release ( #14397 )
...
get release by tag should filter out tag releases to be consistent with list releases and get by id
Co-authored-by: 6543 <6543@obermui.de>
4 years ago
6543
87009ab40a
Reduce data races ( #14549 )
...
* Add race conditions into test
* Fix Race in GetManager()
* DataAsync() use error chan
* just log no chan
* finish
4 years ago
6543
0d1444751f
[API] Add pagination to ListBranches ( #14524 )
...
* make PaginateUserSlice generic -> PaginateSlice
* Add pagination to ListBranches
* add skip, limit to Repository.GetBranches()
* Move routers/api/v1/utils/utils PaginateSlice -> modules/util/paginate.go
* repo_module.GetBranches paginate
* fix & rename & more logging
* better description
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: a1012112796 <1012112796@qq.com>
4 years ago
Howie Zhao
c295a27d4a
docs: update installation with-docker zh-cn ( #14554 )
4 years ago
Bagas Sanjaya
bd28f1d642
[Docs] Clone filters ( #14555 )
...
In summary: set uploadpack.allowfilter
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
4 years ago
techknowlogick
9b6ff819d7
update docs to show latest stable version (1.13.2) ( #14550 )
4 years ago
Farid AYOUJIL
1737a76e1f
Adding Chi's GetHead middleware ( #14541 )
...
Before moving to Chi, HEAD requests were automatically answered by GET
handlers (SetAutoHead(true) from macaron was used).
This Change will restore the previous behaviour.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
6543
3f332a9919
Changelog v1.13.2 ( #14535 ) ( #14543 )
4 years ago
GiteaBot
dcd20f4364
[skip ci] Updated translations via Crowdin
4 years ago
6543
6d27703f14
[API] List, Check, Add & delete endpoints for repository teams ( #13630 )
...
* List, Check, Add & delete endpoints for repository teams
* return units on single team responce too
* Add Tests
4 years ago
GiteaBot
a9188631b9
[skip ci] Updated translations via Crowdin
4 years ago
6543
6fc2d36fb5
rm redirect ( #14534 )
4 years ago
Atilla Lonny
6064bfa3c3
Upgrade 'css-minimizer-webpack-plugin' to the latest version ( #14527 )
...
This patch resolves #14520
4 years ago
zeripath
fcfbab99fc
Set the name Mapper in migrations ( #14526 )
...
Migrations currently uses the default Xorm mapper which is
not the same as the mapper Gitea actually uses.
This means that there is a difference between the struct
parsing and mapping to database tables in migrations as
compared to normal Sync2.
This was the cause for the catastrophic problem in v168 -
untagged fields are not mapped in the same way in migrations
as compared to outside of migrations.
This is also likely the cause of some weird subtle failures
in other migrations as any untagged field may not be being
mapped exactly the same way.
This PR suggests that we ensure that the mapper is set at
the start of the migrations code - but also enforces a strict
clean mapper between each migration.
Signed-off-by: Andrew Thornton <art27@cantab.net>
4 years ago
Stefan
eea4197cd9
Internal ssh server respect Ciphers, MACs and KeyExchanges settings ( #14523 )
4 years ago
Lunny Xiao
5e20fd6dbf
Move middlewares to web/middleware ( #14480 )
...
Co-authored-by: 6543 <6543@obermui.de>
4 years ago
6543
0e0424c8ec
Add Doctor FixWrongUserType ( #14522 )
...
* Add Doctor FixWrongUserType
* use NoAutoTime
4 years ago
GiteaBot
05365816ab
[skip ci] Updated translations via Crowdin
4 years ago
John Olheiser
e92552abb4
noop ( #14521 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
Lunny Xiao
0cd87d64ff
Update docs and comments to remove macaron ( #14491 )
4 years ago
GiteaBot
25b6255b92
[skip ci] Updated translations via Crowdin
4 years ago
Lunny Xiao
87b098f3b6
Fix json charset bug ( #14514 )
4 years ago
a1012112796
f19da14c34
enhancement: add signoff option in commit form ( #14516 )
...
Signed-off-by: a1012112796 <1012112796@qq.com>
4 years ago
Lunny Xiao
f761c82c94
Fix load time bug ( #14508 )
4 years ago
delvh
aec8029277
Fix missing locale bug introduced by #14429 ( #14513 )
...
Fixes #14512
4 years ago
kevinlin18
0e4a9dbcb9
[docs] Add zh-tw Translations ( #14507 )
4 years ago
6543
2ebe609d65
Fix migration v141 ( #14387 )
...
* Fix mig 141
* Add Migration to fix it
* update null values to false first
* Alter Table if posible
* use dropTableColumns instead of recreateTable
* MySQL use Alter
* Postgres use Alter
* Update models/migrations/v167.go
* Apply suggestions from code review
* use 2x add col & 2x update & 2x drop col
* let sqlite be the only issue
* use recreate since it just WORKS
4 years ago
6543
3599d44399
Extend TestUserOrgs to cover permission cases ( #14495 )
...
* TestMyOrgs: add unauthorized test
* Extend TestUserOrgs, to cover permission cases
4 years ago
6543
99b7af6fc8
Add some Unit-Tests ( #14500 )
...
* fix url
* modules/auth/pa: coverage: 40#.0%
* modules/base coverage: 67.6% -> 89.9%
* modules/cache coverage: 0% -> 12.0%
* modules/convert coverage: 27.1% -> 29.7%
4 years ago
6543
d1353e1f7c
Vendor Update ( #14496 )
...
* update code.gitea.io/sdk/gitea v0.13.1 -> v0.13.2
* update github.com/go-swagger/go-swagger v0.25.0 -> v0.26.0
* update github.com/google/uuid v1.1.2 -> v1.2.0
* update github.com/klauspost/compress v1.11.3 -> v1.11.7
* update github.com/lib/pq 083382b7e6fc -> v1.9.0
* update github.com/markbates/goth v1.65.0 -> v1.66.1
* update github.com/mattn/go-sqlite3 v1.14.4 -> v1.14.6
* update github.com/mgechev/revive 246eac737dc7 -> v1.0.3
* update github.com/minio/minio-go/v7 v7.0.6 -> v7.0.7
* update github.com/niklasfasching/go-org v1.3.2 -> v1.4.0
* update github.com/olivere/elastic/v7 v7.0.21 -> v7.0.22
* update github.com/pquerna/otp v1.2.0 -> v1.3.0
* update github.com/xanzy/go-gitlab v0.39.0 -> v0.42.0
* update github.com/yuin/goldmark v1.2.1 -> v1.3.1
4 years ago
GiteaBot
e45bf12a34
[skip ci] Updated translations via Crowdin
4 years ago
Lunny Xiao
154b23da0a
Fix display since time round ( #14226 )
...
* Fix display since time round
* Fix since time
* Fix tests
4 years ago
6543
a7cfb9f2c3
Fix JSON Header response ( #14499 )
4 years ago
GiteaBot
fe5266a25b
[skip ci] Updated translations via Crowdin
4 years ago
Lunny Xiao
a51cc6dea4
Fix access log ( #14475 )
...
Fix #14121 , #14478 .
The `AccessLog` middleware has to be after `Contexter` or `APIContexter` so that we can get `LoginUserName` if possible.
And also there is a **BREAK** change that it removed internal API access log.
4 years ago
Kyle D
4c6e029506
Use gitea.svg for public/img/gitea-gitea.svg instead of logo.svg ( #14479 )
4 years ago
Lunny Xiao
41c0776568
Fix captcha ( #14488 )
...
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago
Lunny Xiao
669ff8e9b1
Fix switch language ( #14484 )
...
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago
PhilAtWysdom
af7f71207c
Fix: url.Values map was not initialized ( #14485 )
...
Values map was not initialized, leading to error 500 on submission of initial configuration
Co-authored-by: 6543 <6543@obermui.de>
4 years ago
GiteaBot
2e90a256be
[skip ci] Updated translations via Crowdin
4 years ago
Lunny Xiao
cfa57dde66
Fix bug that username missed on issue list assignee filter ( #14481 )
...
Co-authored-by: 6543 <6543@obermui.de>
4 years ago
GiteaBot
1080b27a39
[skip ci] Updated translations via Crowdin
4 years ago
Jui-Nan Lin
c10503afec
[Feature] add precise search type for Elastic Search ( #12869 )
...
* feat: add type query parameters for specifying precise search
* feat: add select dropdown in search box
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
6543
b2c20b68a0
Print usefull error if SQLite is used in settings but not supported ( #14476 )
...
* move log output to points where they are relefant
* check explicit of sqlite3 in settings
4 years ago
GiteaBot
5845c87b31
[skip ci] Updated translations via Crowdin
4 years ago
Lunny Xiao
d3aa4971c7
Fix bug because of duplicated join ( #14454 )
...
* Fix bug because of duplicated join
* Move join into setupsession
* Fix bug
* Fix bug
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago