Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
246 commits
Select commit Hold shift + click to select a range
36ccb88
Return 404 when tag is broken (#20024)
42wim Jun 18, 2022
a180d94
Dump should only copy regular files and symlink regular files (#20015…
6543 Jun 19, 2022
8733f4b
use quoted regexp instead of git fixed-value (#20030)
wxiaoguang Jun 19, 2022
a4b1967
Fix delete pull head ref for DeleteIssue (#20032) (#20034)
a1012112796 Jun 19, 2022
2a48833
Respond with a 401 on git push when password isn't changed yet (#20027)
42wim Jun 19, 2022
ab9fcb0
Backtick table name in generic orphan check (#20019) (#20037)
zeripath Jun 19, 2022
1823bfd
Alter hook_task TEXT fields to LONGTEXT (#20038) (#20041)
42wim Jun 19, 2022
2dc6571
Simplify and fix migration 216 (#20036)
zeripath Jun 20, 2022
761db4d
Disable federation by default (#20045) (#20046)
Jun 20, 2022
710a141
Changelog v1.17.0-rc1 (#20023)
6543 Jun 20, 2022
29ac316
Release page show all tags in compare dropdown (#20070) (#20072)
6543 Jun 21, 2022
dbafb4f
Use correct variable for issue count (#20086)
lunny Jun 22, 2022
05464ac
Dashboard feed respect setting.UI.FeedPagingNum again (#20094) (#20099)
jpraet Jun 23, 2022
764e75d
Catch the error before the response is processed by goth. (#20000) (#…
SteveTheEngineer Jun 24, 2022
fb5ca1b
Fix wrong login requirement routers (#20101) (#20104)
lunny Jun 24, 2022
0b7b342
Fix remove file on initial comment (#20127) (#20128)
Jun 25, 2022
0dab138
Show scrollbar when necessary (#20142) (#20143)
Jun 27, 2022
1ffc700
Update default allowed attachment types (#20193)
silverwind Jul 1, 2022
3e4fe00
Check if project has the same repository id with issue when assign pr…
lunny Jul 1, 2022
bf43db1
Fix cli command restore-repo: "units" should be parsed as cli.String …
wxiaoguang Jul 1, 2022
d22826a
Fix `dump-repo` git init, fix wrong error type for NullDownloader (#2…
wxiaoguang Jul 1, 2022
e321b40
Refix indices on actions table (#20158) (#20198)
zeripath Jul 2, 2022
35fd55c
Update Bluemonday to v1.0.19 (#20199) (#20209)
zeripath Jul 4, 2022
f42fc3b
Init popup for new code comment (#20234) (#20235)
Jul 5, 2022
01a4fb0
Bypass Firefox (iOS) bug (#20244) (#20250)
wxiaoguang Jul 5, 2022
c88a59b
Adjust max-widths for the repository file table (#20243) (#20247)
zeripath Jul 5, 2022
76ba23a
Display full name (#20171) (#20246)
zeripath Jul 5, 2022
42be548
EscapeFilter the group dn membership (#20200) (#20254)
zeripath Jul 6, 2022
a92d247
Only show Followers that current user can access (#20220) (#20252)
zeripath Jul 6, 2022
654c173
Fix NPE when using non-numeric (#20277) (#20278)
Jul 7, 2022
039a602
Make notification bell more prominent on mobile (#20108, #20236, #202…
zeripath Jul 7, 2022
5e5ff77
Use git.HOME_PATH for Git HOME directory (#20114) (#20293)
wxiaoguang Jul 8, 2022
d371ced
Store read access in access for team repo's (#20275) (#20276)
Jul 9, 2022
1d02a9c
Bump goldmark to v1.4.13 (#20300) (#20301)
Jul 9, 2022
317c565
Do not create empty ".ssh" directory when loading config (#20289) (#2…
wxiaoguang Jul 10, 2022
c556a83
Prevent "empty" scrollbars on Firefox (#20294) (#20308)
KN4CK3R Jul 10, 2022
54ef658
Refactor SSH init code, fix directory creation for TrustedUserCAKeys …
wxiaoguang Jul 11, 2022
b8ab929
Add write check for creating Commit status (#20332) (#20333)
Jul 12, 2022
26f4fe2
Correctly handle draft releases without a tag (#20314) (#20335)
zeripath Jul 12, 2022
66686f6
Hide notify mail setting ui if not enabled (#20138) (#20336)
lunny Jul 13, 2022
92a43d5
Fix checks in PR for empty commits (#20290) (#20352)
jedi7 Jul 13, 2022
f4e219f
Fix org label open count, including close count issue (#20364)
tyroneyeh Jul 14, 2022
780b198
Prevent context deadline error propagation in GetCommitsInfo (#20346)…
6543 Jul 14, 2022
4c1f4ee
update xorm.io/xorm v1.3.2-0.20220714055524-c3bce556200f (#20371) (#2…
6543 Jul 14, 2022
975a962
Make sure `repo_dir` is an empty directory or doesn't exist before 'd…
6543 Jul 15, 2022
c91b8c8
Initialize cron last (#20373) (#20384)
zeripath Jul 15, 2022
95a27eb
Set target on create release with existing tag (#20381) (#20382)
Jul 15, 2022
3f5d727
Fix commit status icon when in subdirectory (#20285) (#20385)
silverwind Jul 16, 2022
c16f0d2
Add missing return for when topic isn't found (#20351) (#20395)
zeripath Jul 18, 2022
90b4a9e
Allow RSA 2047 bit keys (#20272) (#20396)
zeripath Jul 18, 2022
2c93bd7
Changelog v1.17.0-rc2 (#20350)
6543 Jul 19, 2022
e930d66
Dismiss prior pull reviews if done via web in review dismiss (#20197)…
6543 Jul 19, 2022
2fe0dab
Add Cache-Control header to html and api responses, add no-transform …
silverwind Jul 23, 2022
435038b
fix enabling repo packages when projects are off (#20486) (#20488)
noerw Jul 26, 2022
bed13bf
Add repository condition for issue count (#20496)
tyroneyeh Jul 27, 2022
e0f35ea
Modify milestone search keywords to be case insensitive (#20266) (#20…
tyroneyeh Jul 27, 2022
0a32bd5
Show hint to link package to repo when viewing empty repo package lis…
noerw Jul 27, 2022
39b2ede
Fix ROOT_URL detection for URLs without trailing slash (#20503)
wxiaoguang Jul 27, 2022
a9a440e
Fix package permission checks for organizations (#20517) (#20520)
KN4CK3R Jul 28, 2022
648ec3c
Fix dashboard switching on Mobile (#20238) (#20239)
Jul 28, 2022
fa46d66
Fix Ruby package parsing by removed unused email field (#20470) (#20525)
6543 Jul 28, 2022
4ed32e7
Fix possible panic when repository is empty (#20509) (#20526)
6543 Jul 28, 2022
da10ce8
Allow non-semver packages in the Conan package registry (#20412) (#20…
6543 Jul 28, 2022
4b53a5c
Add labels to two buttons that were missing them (#20419) (#20524)
6543 Jul 28, 2022
ae86a0b
packages/generic: Do not restrict package versions to SemVer (#20414)…
6543 Jul 28, 2022
6986e56
Stop logging EOFs and exit(1)s in ssh handler (#20476) (#20529)
zeripath Jul 29, 2022
d6bc155
Update lunny/levelqueue to prevent NPE when reads are performed after…
6543 Jul 29, 2022
210b096
Ensure that all unmerged files are merged when conflict checking (#20…
6543 Jul 29, 2022
fc7b5af
Add missing Tabs on organisation/package view (#20539)
6543 Jul 29, 2022
d1e53bf
Update notification count for non-mobile version (#20544)
Jul 30, 2022
97a8c96
Add Docker /v2/_catalog endpoint (#20469) (#20556)
6543 Jul 30, 2022
eeb490c
Rework raw file http header logic (#20484) (#20542)
silverwind Jul 30, 2022
09f2e1e
WebAuthn CredentialID field needs to be increased in size (#20530) (#…
6543 Jul 30, 2022
8769df1
Changelog v1.17.0 (#20541)
6543 Jul 30, 2022
51c8c0f
Fix default merge style for pull requests (#20564) (#20565)
wxiaoguang Jul 31, 2022
56b9955
Clean up and fix clone button script (#20415 & #20600) (#20599)
silverwind Aug 2, 2022
a6c2a1a
Enable Wire 2 for Internal SSH Server (#20616) (#20617)
Aug 2, 2022
07d1406
Display project in issue list (#20583)
aceArt-GmbH Aug 2, 2022
0747592
Adjust line detection in highlight.go (#20612)
wxiaoguang Aug 2, 2022
bd2218e
Fix package upload for files >32mb (#20622) (#20635)
KN4CK3R Aug 2, 2022
76accb5
Add default commit messages to PR for squash merge (#20618) (#20645)
wxiaoguang Aug 4, 2022
5ce8fdb
Fix the JS error "EventSource is not defined" caused by some non-stan…
wxiaoguang Aug 4, 2022
aac905d
Add username check to doctor (#20140) (#20671)
jolheiser Aug 4, 2022
65176fd
Send correct NuGet status codes (#20647) (#20677)
KN4CK3R Aug 5, 2022
92d79b5
Use correct context to get package content (#20673) (#20676)
KN4CK3R Aug 5, 2022
a04fc56
Use request timeout for git service rpc (#20689) (#20693)
parnic Aug 7, 2022
cedf4fe
Update issues.ref_closing_from in locale_ru-RU.ini (#20699)
Maks1mS Aug 7, 2022
e1e4333
Fix SecToTime edge-cases (#20610) (#20611)
Aug 8, 2022
9ec1c88
Fix v220 migration to be compatible for MSSQL 2008 r2 (#20702) (#20707)
lunny Aug 8, 2022
113d13a
Keep download count on Container tag overwrite (#20728) (#20735)
KN4CK3R Aug 9, 2022
6770177
Add support for NuGet API keys (#20721) (#20734)
KN4CK3R Aug 9, 2022
59228d8
Use correct field name. (#20675) (#20760)
KN4CK3R Aug 11, 2022
d19c2c9
Fix loading button with invalid form (#20754) (#20759)
silverwind Aug 11, 2022
f7c874c
Remove manual rollback for failed generated repositories (#20639) (#2…
wxiaoguang Aug 11, 2022
ac9792c
Check webhooks slice length before calling xorm (#20642) (#20768)
lunny Aug 12, 2022
eacab6b
Add disable download source configuration (#20548) (#20579)
lunny Aug 12, 2022
8503456
Make branch icon stand out more (#20726) (#20774)
Aug 12, 2022
9bccfe9
Fix git.Init for doctor sub-command (#20782) (#20783)
wxiaoguang Aug 13, 2022
c3b4f3f
Add missing translation for queue flush workers (#20791) (#20792)
Aug 14, 2022
e5d2031
Improve comment header for mobile (#20781) (#20789)
Aug 15, 2022
78dabdd
fix merge (#20819)
lunny Aug 17, 2022
79fa1c1
Use the total issue count for UI (#20785) (#20827)
parnic Aug 17, 2022
13b74ac
Correctly escape within tribute.js (#20831) (#20832)
zeripath Aug 17, 2022
987798a
Executable check always returns true for windows (#20637) (#20835)
zeripath Aug 17, 2022
b43d7e1
Check issue labels slice length before calling xorm Insert(#20655) (#…
zeripath Aug 17, 2022
7a9b01a
Add migrate repo archiver and packages storage support on command lin…
lunny Aug 18, 2022
c40c753
Check Mirror exists before linking its Repo (#20840) (#20842)
lunny Aug 18, 2022
7374861
Changelog 1.17.1 (#20833)
zeripath Aug 18, 2022
35ca651
Fix owners cannot create organization repos bug (#20841) (#20854)
zeripath Aug 18, 2022
15b61da
Prevent 500 is head repo does not have PullRequest unit in IsUserAllo…
zeripath Aug 18, 2022
68cceb5
update changelog
techknowlogick Aug 18, 2022
399917a
Fix UI mis-align for PR commit history (#20845) (#20859)
wxiaoguang Aug 19, 2022
b88a4b4
Fix the mode of custom dir to 0700 in docker-rootless (#20861) (#20867)
wxiaoguang Aug 20, 2022
c61ed6f
Rework repo buttons (#20602, #20718) (#20719)
silverwind Aug 20, 2022
eee51d8
Ensure that graceful start-up is informed of unused SSH listener (#20…
eeyrjmr Aug 21, 2022
9e8b1c6
Double check CloneURL is acceptable (#20869) (#20892)
zeripath Aug 21, 2022
17d3a47
Update codemirror to 5.65.8 (#20875)
silverwind Aug 21, 2022
e6ec411
Fix SQL Query for `SearchTeam` (#20844) (#20872)
Aug 21, 2022
ec9b43b
Remove calls to load Mirrors in user.Dashboard (#20855) (#20897)
zeripath Aug 22, 2022
37458bf
Fix panic when an invalid oauth2 name is passed (#20820) (#20900)
zeripath Aug 22, 2022
ebc8801
Fix push mirror address backend get error Address cause setting page …
zeripath Aug 22, 2022
033178f
Increase Content field size of gpg_key and public_key to MEDIUMTEXT (…
zeripath Aug 22, 2022
bf41958
Pad GPG Key ID with preceding zeroes (#20878) (#20885)
zeripath Aug 22, 2022
c0754e9
Don't open new page for ext wiki on same repository (#20725) (#20910)
Aug 22, 2022
c1889f5
Allow multiple metadata files for Maven packages (#20674) (#20916)
KN4CK3R Aug 23, 2022
6779c35
Fix mirror address setting not working (#20850) (#20904)
zeripath Aug 23, 2022
0230f1e
In PushMirrorsIterate and MirrorsIterate if limit is negative do not …
zeripath Aug 23, 2022
fbcb424
Set no-tags in git fetch on compare (#20893) (#20936)
zeripath Aug 23, 2022
bc7a437
Disable doctor logging on panic (#20847) (#20898)
zeripath Aug 24, 2022
5ebd26d
Return 404 NotFound if requested attachment does not exist (#20886) (…
zeripath Aug 25, 2022
85f829f
Enable contenthash in filename for dynamic assets (#20813) (#20932)
silverwind Aug 25, 2022
0a0cd75
Change review buttons to icons to make space for text (#20934) (#20978)
silverwind Aug 27, 2022
04105db
Fix download archiver of a commit (#20962) (#20971)
lunny Aug 28, 2022
0d869c5
Translations for repo buttons (#20834)
jolheiser Aug 29, 2022
2e2133d
fix: remove redundant if (#20997)
wolfogre Aug 30, 2022
54c0fe6
Fix input.value attr for RequiredClaimName/Value (#20946) (#21001)
jolheiser Aug 31, 2022
989dd55
Fix missed sort bug (#21006)
lunny Aug 31, 2022
e3697ef
Fix modified due date message (#20388) (#21032)
lhsazevedo Sep 2, 2022
2f0a1eb
Do not add links to Posters or Assignees with ID < 0 (#20577) (#21037)
zeripath Sep 3, 2022
fbde31f
Add down key check has tribute container (#21016) (#21038)
tyroneyeh Sep 3, 2022
3973ce3
Improve arc-green code theme (#21039) (#21042)
silverwind Sep 3, 2022
bd1412c
Add Dev, Peer and Optional dependencies to npm PackageMetadataVersion…
joecarl Sep 3, 2022
3aba72c
Add more checks in migration code (#21011) (#21050)
zeripath Sep 4, 2022
71aa64a
fix broken insecureskipverify handling in rediss connection uris (#20…
zeripath Sep 4, 2022
8fc80b3
Add another index for Action table on postgres (#21033) (#21054)
zeripath Sep 4, 2022
ea38455
Fill the specified ref in webhook test payload (#20961) (#21055)
wolfogre Sep 4, 2022
0ecbb71
Fix 500 on time in timeline API (#21052) (#21057)
qwerty287 Sep 4, 2022
0db6add
Set uploadpack.allowFilter etc on gitea serv to enable partial clones…
zeripath Sep 4, 2022
ea416d7
Redirect if user does not exist on admin pages (#20981) (#21059)
zeripath Sep 4, 2022
7888a55
Delete unreferenced packages when deleting a package version (#20977)…
zeripath Sep 4, 2022
084797b
Fix delete user missed some comments (#21067) (#21068)
lunny Sep 5, 2022
06f968d
Fix hard-coded timeout and error panic in API archive download endpoi…
zeripath Sep 6, 2022
449b39e
Fix sub folder in repository missing add file dropdown (#21069) (#21083)
tyroneyeh Sep 6, 2022
32eef4a
Add changelog for v1.17.2 (#21089)
lunny Sep 6, 2022
31842f1
Add MD5 back to template helper functions to avoid breaking (#21102)
wxiaoguang Sep 7, 2022
2dcea78
Fix pagination limit parameter problem (#21111)
tyroneyeh Sep 8, 2022
5cb1037
Fix CSV diff for added/deleted files (#21189) (#21193)
wxiaoguang Sep 17, 2022
c8d6879
Fix reaction of issues (#21185) (#21196)
wolfogre Sep 18, 2022
a286772
Fix template bug of admin monitor (#21209)
lunny Sep 20, 2022
f663773
Fix limited user cannot view himself's profile (#21212)
lunny Sep 20, 2022
c571ac6
Allow uppercase ASCII alphabet in PyPI package names (#21095) (#21217)
KN4CK3R Sep 20, 2022
54d4e66
Make the vscode clone link respect transport protocol (#20557) (#21128)
Sep 20, 2022
937ef6f
Treat git object mode 40755 as directory (#21195) (#21218)
wxiaoguang Sep 20, 2022
20c135c
Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239)
wxiaoguang Sep 22, 2022
e50473e
Prevent invalid behavior for file reviewing when loading more files (…
delvh Sep 23, 2022
bdf3be5
Respect `REQUIRE_SIGNIN_VIEW` for packages (#20873) (#21232)
KN4CK3R Sep 23, 2022
be5411d
Make Clone in VSCode link get updated correctly (#21225) (#21226)
wxiaoguang Sep 23, 2022
e79a107
Use en-US as fallback when using other default language (#21200) (#2…
wxiaoguang Sep 25, 2022
43b4c38
Use absolute links in feeds (#21229) (#21265)
KN4CK3R Sep 26, 2022
790770a
Fix empty container layer history and UI (#21251) (#21278)
KN4CK3R Sep 27, 2022
0e677d7
Update bluemonday (#21281) (#21287)
6543 Sep 28, 2022
cbebcc1
Foreign ID conflicts if ID is 0 for each item (#21271) (#21272)
techknowlogick Oct 2, 2022
1a9ba1c
Fix missing m.Run() in TestMain (#21341)
wxiaoguang Oct 5, 2022
1fbc56d
Fix linked account translation (#21331) (#21334)
jolheiser Oct 5, 2022
0495544
Tag list should include draft releases with existing tags (#21263) (#…
wolfogre Oct 7, 2022
672d54f
Ignore port for OAuth2 loopback redirect URIs (#21293) (#21373)
hickford Oct 8, 2022
14bc4d7
Parse OAuth Authorization header when request omits client secret (#2…
hickford Oct 8, 2022
a3c75ac
Make NuGet service index publicly accessible (#21242) (#21277)
KN4CK3R Oct 8, 2022
c83a05f
Set SemverCompatible to false for Conan packages (#21275) (#21366)
KN4CK3R Oct 10, 2022
1f804d3
Stop logging CheckPath returns error: context canceled (#21064) (#21405)
zeripath Oct 11, 2022
652abf0
Bump `golang.org/x/text` (#21412) (#21413)
Oct 11, 2022
d745780
Add Num{Issues,Pulls} stats checks (#21404) (#21414)
Oct 12, 2022
6afbef5
Do DB update after merge in hammer context (#21401) (#21416)
zeripath Oct 12, 2022
cd48a00
improve code quality (#21464) (#21463)
6543 Oct 15, 2022
f48fda8
Changelog v1.17.3 (#21456)
6543 Oct 15, 2022
3f03275
Return 404 when user is not found on avatar (#21476) (#21477)
Oct 16, 2022
46053c0
Enforce grouped NuGet search results (#21442) (#21480)
KN4CK3R Oct 17, 2022
5a84558
Display total commit count in hook message (#21400) (#21481)
KN4CK3R Oct 17, 2022
19df07f
Fix incorrect notification commit url (#21479) (#21483)
wxiaoguang Oct 18, 2022
4b4adb1
Enable Monaco automaticLayout (#21516)
silverwind Oct 19, 2022
675c14a
Ignore error when retrieving changed PR review files (#21487) (#21524)
delvh Oct 20, 2022
556e2d5
Fix generating compare link (#21519) (#21530)
lunny Oct 21, 2022
8043fbc
Check for valid user token in integration tests (#21520) (#21529)
silverwind Oct 22, 2022
92b5f48
Update binding to fix bugs (#21560)
lunny Oct 24, 2022
6b7ce72
Prevent Authorization header for presigned LFS urls (#21531) (#21569)
KN4CK3R Oct 24, 2022
0571ddc
Case-insensitive NuGet symbol file GUID (#21409) (#21575)
fitithw Oct 24, 2022
d5856fe
SessionUser protection against nil pointer dereference (#21581)
pboguslawski Oct 24, 2022
169c08e
support binary deploy in npm packages (#21589)
eleith Oct 25, 2022
2ccf940
Suppress `ExternalLoginUserNotExist` error (#21504) (#21572)
KN4CK3R Oct 25, 2022
e504410
Update milestone counters when issue is deleted (#21459) (#21586)
fantashley Oct 26, 2022
291787a
Fix issues count bug (#21600)
lunny Oct 26, 2022
43a8547
Added check for disabled Packages (#21540) (#21614)
Oct 27, 2022
b0a057f
Fix `Timestamp.IsZero` (#21593) (#21604)
KN4CK3R Oct 27, 2022
5bc3fbd
Fix package access for admins and inactive users (#21580) (#21592)
KN4CK3R Oct 28, 2022
7a2daae
Sync git hooks when config file path changed (#21619) (#21625)
wolfogre Oct 30, 2022
d6d62c0
Fix repository adoption on Windows (#21646) (#21651)
zeripath Nov 1, 2022
1434204
Allow local package identifiers for PyPI packages (#21690) (#21726)
Racer159 Nov 9, 2022
995ae06
Allow for resolution of NPM registry paths that match upstream (#2156…
Racer159 Nov 9, 2022
3c07ed0
Remove semver compatible flag and change pypi to an array of test cas…
Racer159 Nov 9, 2022
9414260
Fix UI language switching bug (#21597) (#21748)
Nov 10, 2022
43bddc1
Set last login when activating account (#21731) (#21754)
wolfogre Nov 10, 2022
f241201
Init git module before database migration (#21764) (#21766)
wxiaoguang Nov 10, 2022
f321cdc
Add HEAD fix to gitea doctor (#21352) (#21751)
Nov 11, 2022
e609ef9
Ignore line anchor links with leading zeroes (#21728) (#21777)
silverwind Nov 11, 2022
795913e
Load GitRepo in API before deleting issue (#21720) (#21795)
wolfogre Nov 13, 2022
d25c74f
Upgrade golang.org/x/crypto (#21792) (#21794)
Nov 13, 2022
9dc53ba
Prevent panic in doctor command when running default checks (#21791) …
zeripath Nov 13, 2022
65b5c8e
Fix enabling partial clones on 1.17 (#21809)
zeripath Nov 14, 2022
56716f5
Prevent dangling user redirects (#21856) (#21859)
Nov 18, 2022
87630a6
Do not allow Ghost access to limited visible user/org (#21849) (#21875)
KN4CK3R Nov 20, 2022
ba16df8
Fix setting HTTP headers after write (#21833) (#21874)
KN4CK3R Nov 20, 2022
6117c8b
Fix vertical align of committer avatar rendered by email address (#21…
Nov 24, 2022
82d50af
Fix button in branch list, avoid unexpected page jump before restore …
Nov 24, 2022
8188cdf
Fix ListBranches to handle empty case (#21921) (#22025)
lunny Dec 4, 2022
ee6d512
On Tag/Branch Exist Check, dont panic if repo is nil (#21787) (#21789)
6543 Dec 5, 2022
601766d
Handle empty author names (#21902) (#22028)
zeripath Dec 6, 2022
e93a4a0
Fix issue/PR numbers (#22037) (#22045)
wolfogre Dec 6, 2022
e23ad87
Workaround for container registry push/pull errors (#21862) (#22069)
KN4CK3R Dec 10, 2022
a8534ac
Fix permission check on issue/pull lock (#22114)
lunny Dec 12, 2022
c057590
Fix sorting admin user list by last login (#22081) (#22106)
aceArt-GmbH Dec 13, 2022
0e95e74
Fix warn in database structs sync (#22111)
lunny Dec 13, 2022
6f323d1
Fix condition for is_internal (#22095) (#22131)
KN4CK3R Dec 14, 2022
721e422
Correctly handle moved files in apply patch (#22118) (#22136)
zeripath Dec 15, 2022
068e96f
Do not list active repositories as unadopted (#22034) (#22167)
chrullrich Dec 19, 2022
f51a19c
Check for zero time instant in TimeStamp.IsZero() (#22171) (#22173)
Gusted Dec 20, 2022
3d34cda
Disable auto tag to prepare next 1.17 release (#22180)
lunny Dec 20, 2022
7e26f2b
Normalize NuGet package version on upload (#22186) (#22201)
KN4CK3R Dec 21, 2022
92f72d6
fix: update libcurl in docs pipeline (#22205)
jolheiser Dec 21, 2022
73189f0
Update changelog for 1.17.4 (#22198)
lunny Dec 21, 2022
7dcf9dd
Fix container layer display overflow (#22208) (#22212)
lafriks Dec 22, 2022
4845093
Allow empty assignees on pull request edit (#22150) (#22213)
KN4CK3R Dec 22, 2022
92796dc
Use complete SHA to create and query commit status (#22244) (#22258)
wolfogre Dec 28, 2022
f882747
Fix key signature error page (#22229) (#22231)
Gusted Dec 28, 2022
8cd6be1
Remove ReverseProxy authentication from the API (#22219) (#22252)
lunny Dec 30, 2022
03f06d5
Use padded keyid (#22288)
Gusted Jan 2, 2023
ded9a21
fix: omit avatar_url in discord payload when empty (#22393) (#22395)
jolheiser Jan 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# config for changelog tool
# source: https://gitea.com/gitea/changelog

# The full repository name
repo: go-gitea/gitea

Expand All @@ -18,6 +21,10 @@ groups:
name: SECURITY
labels:
- kind/security
-
name: FEDERATION
labels:
- theme/federation
-
name: FEATURES
labels:
Expand Down
27 changes: 20 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,8 @@ steps:
image: plugins/hugo:latest
pull: always
commands:
- apk add --no-cache make bash curl
# https://github.com/drone-plugins/drone-hugo/issues/36
- apk upgrade --no-cache libcurl && apk add --no-cache make bash curl
- cd docs
- make trans-copy clean build

Expand Down Expand Up @@ -902,8 +903,11 @@ steps:
image: techknowlogick/drone-docker:latest
pull: always
settings:
auto_tag: true
auto_tag: false
auto_tag_suffix: linux-amd64
tags:
- ${DRONE_TAG##v}-linux-amd64
- ${DRONE_TAG:1:4}-linux-amd64
repo: gitea/gitea
build_args:
- GOPROXY=https://goproxy.io
Expand All @@ -920,8 +924,11 @@ steps:
image: techknowlogick/drone-docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: true
auto_tag: false
auto_tag_suffix: linux-amd64-rootless
tags:
- ${DRONE_TAG##v}-linux-amd64-rootless
- ${DRONE_TAG:1:4}-linux-amd64-rootless
repo: gitea/gitea
build_args:
- GOPROXY=https://goproxy.io
Expand Down Expand Up @@ -1126,8 +1133,11 @@ steps:
image: techknowlogick/drone-docker:latest
pull: always
settings:
auto_tag: true
auto_tag: false
auto_tag_suffix: linux-arm64
tags:
- ${DRONE_TAG##v}-linux-arm64
- ${DRONE_TAG:1:4}-linux-arm64
repo: gitea/gitea
build_args:
- GOPROXY=https://goproxy.io
Expand All @@ -1144,8 +1154,11 @@ steps:
image: techknowlogick/drone-docker:latest
settings:
dockerfile: Dockerfile.rootless
auto_tag: true
auto_tag: false
auto_tag_suffix: linux-arm64-rootless
tags:
- ${DRONE_TAG##v}-linux-arm64-rootless
- ${DRONE_TAG:1:4}-linux-arm64-rootless
repo: gitea/gitea
build_args:
- GOPROXY=https://goproxy.io
Expand Down Expand Up @@ -1299,7 +1312,7 @@ steps:
image: plugins/manifest
pull: always
settings:
auto_tag: true
auto_tag: false
ignore_missing: true
spec: docker/manifest.rootless.tmpl
password:
Expand All @@ -1310,7 +1323,7 @@ steps:
- name: manifest
image: plugins/manifest
settings:
auto_tag: true
auto_tag: false
ignore_missing: true
spec: docker/manifest.tmpl
password:
Expand Down
481 changes: 481 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ GOFUMPT_PACKAGE ?= mvdan.cc/[email protected]
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/[email protected]
GXZ_PAGAGE ?= github.com/ulikunitz/xz/cmd/[email protected]
MISSPELL_PACKAGE ?= github.com/client9/misspell/cmd/[email protected]
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/swagger@v0.29.0
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/swagger@v0.30.0
XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest

DOCKER_IMAGE ?= gitea/gitea
Expand Down
2 changes: 1 addition & 1 deletion assets/emoji.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions build/generate-emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ const hdr = `

package emoji

// Code generated by gen.go. DO NOT EDIT.
// Code generated by build/generate-emoji.go. DO NOT EDIT.
// Sourced from %s
//
var GemojiData = %#v
`
53 changes: 42 additions & 11 deletions cmd/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package cmd

import (
"errors"
"fmt"
golog "log"
"os"
Expand Down Expand Up @@ -123,32 +124,62 @@ func runRecreateTable(ctx *cli.Context) error {
})
}

func runDoctor(ctx *cli.Context) error {
// Silence the default loggers
log.DelNamedLogger("console")
log.DelNamedLogger(log.DEFAULT)

stdCtx, cancel := installSignals()
defer cancel()

// Now setup our own
func setDoctorLogger(ctx *cli.Context) {
logFile := ctx.String("log-file")
if !ctx.IsSet("log-file") {
logFile = "doctor.log"
}

colorize := log.CanColorStdout
if ctx.IsSet("color") {
colorize = ctx.Bool("color")
}

if len(logFile) == 0 {
log.NewLogger(1000, "doctor", "console", fmt.Sprintf(`{"level":"NONE","stacktracelevel":"NONE","colorize":%t}`, colorize))
} else if logFile == "-" {
return
}

defer func() {
recovered := recover()
if recovered == nil {
return
}

err, ok := recovered.(error)
if !ok {
panic(recovered)
}
if errors.Is(err, os.ErrPermission) {
fmt.Fprintf(os.Stderr, "ERROR: Unable to write logs to provided file due to permissions error: %s\n %v\n", logFile, err)
} else {
fmt.Fprintf(os.Stderr, "ERROR: Unable to write logs to provided file: %s\n %v\n", logFile, err)
}
fmt.Fprintf(os.Stderr, "WARN: Logging will be disabled\n Use `--log-file` to configure log file location\n")
log.NewLogger(1000, "doctor", "console", fmt.Sprintf(`{"level":"NONE","stacktracelevel":"NONE","colorize":%t}`, colorize))
}()

if logFile == "-" {
log.NewLogger(1000, "doctor", "console", fmt.Sprintf(`{"level":"trace","stacktracelevel":"NONE","colorize":%t}`, colorize))
} else {
log.NewLogger(1000, "doctor", "file", fmt.Sprintf(`{"filename":%q,"level":"trace","stacktracelevel":"NONE"}`, logFile))
}
}

func runDoctor(ctx *cli.Context) error {
// Silence the default loggers
log.DelNamedLogger("console")
log.DelNamedLogger(log.DEFAULT)

stdCtx, cancel := installSignals()
defer cancel()

// Now setup our own
setDoctorLogger(ctx)

colorize := log.CanColorStdout
if ctx.IsSet("color") {
colorize = ctx.Bool("color")
}

// Finally redirect the default golog to here
golog.SetFlags(0)
Expand Down
21 changes: 18 additions & 3 deletions cmd/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"code.gitea.io/gitea/modules/util"

"gitea.com/go-chi/session"
archiver "github.com/mholt/archiver/v3"
"github.com/mholt/archiver/v3"
"github.com/urfave/cli"
)

Expand Down Expand Up @@ -439,8 +439,23 @@ func addRecursiveExclude(w archiver.Writer, insidePath, absPath string, excludeA
}
}
} else {
if err = addFile(w, currentInsidePath, currentAbsPath, verbose); err != nil {
return err
// only copy regular files and symlink regular files, skip non-regular files like socket/pipe/...
shouldAdd := file.Mode().IsRegular()
if !shouldAdd && file.Mode()&os.ModeSymlink == os.ModeSymlink {
target, err := filepath.EvalSymlinks(currentAbsPath)
if err != nil {
return err
}
targetStat, err := os.Stat(target)
if err != nil {
return err
}
shouldAdd = targetStat.Mode().IsRegular()
}
if shouldAdd {
if err = addFile(w, currentInsidePath, currentAbsPath, verbose); err != nil {
return err
}
}
}
}
Expand Down
31 changes: 29 additions & 2 deletions cmd/dump_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ package cmd
import (
"context"
"errors"
"fmt"
"os"
"strings"

"code.gitea.io/gitea/modules/convert"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
base "code.gitea.io/gitea/modules/migration"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/util"
"code.gitea.io/gitea/services/migrations"

"github.com/urfave/cli"
Expand Down Expand Up @@ -83,6 +87,11 @@ func runDumpRepository(ctx *cli.Context) error {
return err
}

// migrations.GiteaLocalUploader depends on git module
if err := git.InitSimple(context.Background()); err != nil {
return err
}

log.Info("AppPath: %s", setting.AppPath)
log.Info("AppWorkPath: %s", setting.AppWorkPath)
log.Info("Custom path: %s", setting.CustomPath)
Expand Down Expand Up @@ -128,7 +137,9 @@ func runDumpRepository(ctx *cli.Context) error {
} else {
units := strings.Split(ctx.String("units"), ",")
for _, unit := range units {
switch strings.ToLower(unit) {
switch strings.ToLower(strings.TrimSpace(unit)) {
case "":
continue
case "wiki":
opts.Wiki = true
case "issues":
Expand All @@ -145,13 +156,29 @@ func runDumpRepository(ctx *cli.Context) error {
opts.Comments = true
case "pull_requests":
opts.PullRequests = true
default:
return errors.New("invalid unit: " + unit)
}
}
}

// the repo_dir will be removed if error occurs in DumpRepository
// make sure the directory doesn't exist or is empty, prevent from deleting user files
repoDir := ctx.String("repo_dir")
if exists, err := util.IsExist(repoDir); err != nil {
return fmt.Errorf("unable to stat repo_dir %q: %v", repoDir, err)
} else if exists {
if isDir, _ := util.IsDir(repoDir); !isDir {
return fmt.Errorf("repo_dir %q already exists but it's not a directory", repoDir)
}
if dir, _ := os.ReadDir(repoDir); len(dir) > 0 {
return fmt.Errorf("repo_dir %q is not empty", repoDir)
}
}

if err := migrations.DumpRepository(
context.Background(),
ctx.String("repo_dir"),
repoDir,
ctx.String("owner_name"),
opts,
); err != nil {
Expand Down
23 changes: 23 additions & 0 deletions cmd/main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

package cmd

import (
"testing"

"code.gitea.io/gitea/models/unittest"
"code.gitea.io/gitea/modules/setting"
)

func init() {
setting.SetCustomPathAndConf("", "", "")
setting.LoadForTest()
}

func TestMain(m *testing.M) {
unittest.MainTest(m, &unittest.TestOptions{
GiteaRootPath: "..",
})
}
Loading