Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fork updates from go-gitea/gitea main #58 #59

Merged
merged 111 commits into from
Dec 30, 2022
Merged
Changes from 1 commit
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
9607750
Replace fmt.Sprintf with hex.EncodeToString (#21960)
wolfogre Nov 28, 2022
f047ee0
Use random bytes to generate access token (#21959)
wolfogre Nov 28, 2022
715cf46
Normalize `AppURL` according to RFC 3986 (#21950)
SaswatPadhi Nov 29, 2022
fdfd77f
Fix typos (#21979)
luzpaz Nov 30, 2022
7020c4a
Fix leaving organization bug on user settings -> orgs (#21983)
Cosin Nov 30, 2022
67881ae
Skip initing disabled storages (#21985)
wolfogre Nov 30, 2022
b2c4870
Fix parallel creating commit status bug with tests (#21911)
lunny Nov 30, 2022
4e5d4d0
Skip initing LFS storage if disabled (#21996)
wolfogre Dec 1, 2022
f9cbf5a
Util type to parse ref name (#21969)
wolfogre Dec 1, 2022
f0bd219
Update chroma to v2.4.0 (#22000)
silverwind Dec 1, 2022
64973cf
Use path not filepath in template filenames (#21993)
zeripath Dec 1, 2022
f7ade6d
Fix generate index failure possibility on postgres (#21998)
lunny Dec 2, 2022
665d02e
Remove duplicate "Actions" label in mobile view (#21974)
markormesher Dec 2, 2022
df676a4
Remove session in api tests (#21984)
lunny Dec 2, 2022
d640632
Multiple improvements for comment edit diff (#21990)
silverwind Dec 2, 2022
f59a748
Update gitea-vet to check FSFE REUSE (#22004)
wolfogre Dec 2, 2022
350bc83
Update to Alpine 3.17 (#21904)
flynnnnnnnnnn Dec 2, 2022
21bcb92
Add pnpm to packages/overview (#22008)
xtexx Dec 2, 2022
8698458
Remove deprecated packages & staticcheck fixes (#22012)
harryzcy Dec 2, 2022
0a7d3ff
refactor some functions to support ctx as first parameter (#21878)
lunny Dec 3, 2022
181f4bf
docs: add `Edit this page` (#21981)
Dec 3, 2022
0e46499
Do not emit ambiguous character warning on rendered pages (#22016)
zeripath Dec 3, 2022
d084ce3
[skip ci] Updated licenses and gitignores
zeripath Dec 4, 2022
9eb9cf5
fix(web): reduce page jitter on browsers that support overlay scrollb…
kecrily Dec 4, 2022
36cbaec
Fix ListBranches to handle empty case (#21921)
lunny Dec 4, 2022
4648584
On tag/branch-exist check, dont panic if repo is nil (#21787)
6543 Dec 4, 2022
84d2a82
Add dumb-init to rootless docker (#21775)
viceice Dec 4, 2022
ea86c2b
Use GhostUser if needed for TrackedTimes (#22021)
zeripath Dec 4, 2022
a08584e
Ensure that Chinese punctuation is not ambiguous when locale is Chine…
zeripath Dec 4, 2022
77f5035
Remove useless "Cancel" buttons (#21872)
yardenshoham Dec 5, 2022
74874d0
Fix issue/PR numbers (#22037)
wolfogre Dec 6, 2022
e2fa84f
Release and Tag List tweaks (#21712)
silverwind Dec 6, 2022
0a85537
Support disabling database auto migration (#22053)
wolfogre Dec 7, 2022
cf27403
Round language stats percentage using largest remainder (#22026)
hr-98 Dec 8, 2022
0585ac3
Update go dev dependencies (#22064)
silverwind Dec 8, 2022
8fb1e53
Rename actions to operations on UI (#22067)
wolfogre Dec 8, 2022
3c59d31
Add API management for issue/pull and comment attachments (#21783)
KN4CK3R Dec 9, 2022
2779d47
Optimize html templates (#22080)
wolfogre Dec 9, 2022
097d4e3
Change ID pattern of raw content container for issue (#21966)
fsologureng Dec 9, 2022
6870453
Rename almost all Ctx functions (#22071)
lunny Dec 10, 2022
9745c33
Remove unnecessary whitespace in snapcraft.yaml (#22090)
yardenshoham Dec 10, 2022
0e2d046
Update xorm (#22094)
KN4CK3R Dec 10, 2022
601d126
[skip ci] Updated licenses and gitignores
KN4CK3R Dec 11, 2022
112e425
fix(config): remove context on config template (#22096)
restray Dec 11, 2022
c9ef03a
Fix wrong default value for update checker on app.example.ini (#22084)
lunny Dec 11, 2022
352a50d
Fix sorting admin user list by last login (#22081)
aceArt-GmbH Dec 12, 2022
3e8285b
Use multi reader instead to concat strings (#22099)
lunny Dec 12, 2022
003b4e2
Allow disable code tab (#20805)
lunny Dec 12, 2022
6398ca7
refactor bind functions based on generics (#22055)
lunny Dec 12, 2022
36a2d2f
Add a simple test for external renderer (#20033)
lunny Dec 12, 2022
87c64f6
Fix permission check on issue/pull lock (#22110)
lunny Dec 12, 2022
a95247b
Fix autofilled text visibility in dark mode (#22088)
harryzcy Dec 13, 2022
5aa8546
Fix markdown typo of an extra backtick in docs (#22123)
Yakov5776 Dec 14, 2022
4fb2006
Make gitea work using cmd.exe again (#22073)
zeripath Dec 14, 2022
07461e1
Fix condition for is_internal (#22095)
KN4CK3R Dec 14, 2022
1b32ed0
remove duplicated read file code (#22042)
lunny Dec 14, 2022
cdc4345
Correctly handle moved files in apply patch (#22118)
zeripath Dec 14, 2022
ae97197
Fixed Project view .board-column height for tall screens. (#22108)
gnat Dec 14, 2022
3243dbe
remove silentcode from MAINTAINERS (#22143)
silentcodeg Dec 15, 2022
651fe4b
Add doctor command for full GC of LFS (#21978)
zeripath Dec 15, 2022
84285a1
Do not list active repositories as unadopted (#22034)
chrullrich Dec 16, 2022
8400146
Update username (#22147)
Dec 16, 2022
c4c4151
Fix margin and alignment in dashboard repolist (#22120)
silverwind Dec 17, 2022
f3370ee
verify nodeinfo response by schema (#22137)
MFTabriz Dec 17, 2022
6e22605
Ensure that plain files are rendered correctly even when containing a…
zeripath Dec 17, 2022
998fe26
[skip ci] Updated licenses and gitignores
zeripath Dec 18, 2022
a89b399
Local storage should not store files as executable (#22162)
zeripath Dec 19, 2022
d6b9662
Add setting to disable the git apply step in test patch (#22130)
zeripath Dec 19, 2022
2774671
Fix heatmap first color being unused (#22157)
silverwind Dec 19, 2022
40ba750
Check for zero time instant in `TimeStamp.IsZero()` (#22171)
Gusted Dec 20, 2022
6590551
Secrets storage with SecretKey encrypted (#22142)
wolfogre Dec 20, 2022
495b8b3
Fix delete secret modal (#22187)
lunny Dec 20, 2022
e767b33
Update JS dependencies and eslint (#22190)
silverwind Dec 20, 2022
70d15e7
Fix misc whitespace issues in install docs (#22189)
h3xx Dec 20, 2022
c4df10d
Repair LFS web rendering. (#22195)
kousu Dec 21, 2022
90572c5
Specify ID in `TestAPITeam` (#22192)
Gusted Dec 21, 2022
fe6608f
Attempt to fix TestExportUserGPGKeys (#22159)
zeripath Dec 21, 2022
86ace4b
Normalize NuGet package version on upload (#22186)
KN4CK3R Dec 21, 2022
8e267af
Mobile fix for Project view: Add delay to Sortable.js on mobile, to e…
gnat Dec 21, 2022
c403e2f
Fixed colour transparency regex matching in project board sorting (#2…
MisterCavespider Dec 21, 2022
9914b21
fix: update libcurl in docs pipeline (#22203)
jolheiser Dec 21, 2022
48d71b7
Add Feed for Releases and Tags (#21696)
reopt999 Dec 21, 2022
b767182
Allow empty assignees on pull request edit (#22150)
KN4CK3R Dec 21, 2022
8e17fb5
Update bleve and zapx to fix unaligned atomic (#22031)
zeripath Dec 22, 2022
3affb02
Run hugo via `go run` and lock its version (#22206)
silverwind Dec 22, 2022
6037043
Fix container layer display overflow (#22208)
lafriks Dec 22, 2022
ac5b44b
Upgrade hugo to 0.82 (#22209)
silverwind Dec 22, 2022
8c1bb77
Remove test session cache to reduce possible concurrent problem (#22199)
lunny Dec 22, 2022
7bf7c13
Frontport 1.17.4 changelog (#22216)
lunny Dec 22, 2022
ea5a752
update docs latest to 1.17.4
techknowlogick Dec 22, 2022
a2779de
Test views of LFS files (#22196)
kousu Dec 22, 2022
41f0668
Hide file borders on sticky diff box (#22217)
silverwind Dec 23, 2022
71ca306
Check primary keys for all tables and drop ForeignReference (#21721)
wolfogre Dec 23, 2022
2cf0cf0
JS refactors (#22227)
silverwind Dec 23, 2022
2b0b563
Improve testing for pgsql empty repository (#22223)
lunny Dec 23, 2022
3bd49f7
[skip ci] Updated licenses and gitignores
lunny Dec 25, 2022
f5cd0d9
Add Mermaid copy button, avoid unnecessary tooltip hide (#22225)
silverwind Dec 25, 2022
814b44a
Fix typo of Asia/Shanghai (#22242)
wolfogre Dec 26, 2022
83640c4
Remove ReverseProxy authentication from the API (#22219)
zeripath Dec 27, 2022
b48cf03
Remove deadcode (#22245)
Gusted Dec 27, 2022
90237d8
Add more test directory to exclude dir of air, remove watching templa…
lunny Dec 27, 2022
6cf09cc
Use complete SHA to create and query commit status (#22244)
wolfogre Dec 27, 2022
d0c3d0b
Add the 'ui.user' section to the cheat sheet (#22249)
chrullrich Dec 27, 2022
22a6e97
Update standard copyright header to use a placeholder year (#22254)
yardenshoham Dec 27, 2022
7cc7db7
Add option to prohibit fork if user reached maximum limit of reposito…
Dec 27, 2022
ca67c5a
refactor auth interface to return error when verify failure (#22119)
lunny Dec 28, 2022
309e86a
Use dynamic package type list (#22263)
KN4CK3R Dec 28, 2022
a357498
Move `convert` package to services (#22264)
KN4CK3R Dec 29, 2022
47efba7
Support template for merge message description (#22248)
wolfogre Dec 29, 2022
a609cae
Correctly handle select on multiple channels in Queues (#22146)
zeripath Dec 30, 2022
205a392
Merge branch 'go-gitea/main'
AbdulrhmnGhanem Dec 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve testing for pgsql empty repository (go-gitea#22223)
lunny authored Dec 23, 2022
commit 2b0b56319e94b7173b566af4d082f03664853789
5 changes: 4 additions & 1 deletion tests/integration/empty_repo_test.go
Original file line number Diff line number Diff line change
@@ -11,6 +11,8 @@ import (
"code.gitea.io/gitea/models/unittest"
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/tests"

"github.com/stretchr/testify/assert"
)

func TestEmptyRepo(t *testing.T) {
@@ -21,7 +23,8 @@ func TestEmptyRepo(t *testing.T) {
"commit/1ae57b34ccf7e18373",
"graph",
}
emptyRepo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{}, unittest.Cond("is_empty = ?", true))
emptyRepo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 5})
assert.True(t, emptyRepo.IsEmpty)
owner := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: emptyRepo.OwnerID})
for _, subpath := range subpaths {
req := NewRequestf(t, "GET", "/%s/%s/%s", owner.Name, emptyRepo.Name, subpath)