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

Show outdated comments in files changed tab (#24936) #25427

Closed
Changes from 1 commit
Commits
Show all changes
320 commits
Select commit Hold shift + click to select a range
e269e89
Fix incorrect NotFound conditions in org/projects.go (#23384) (#23395)
GiteaBot Mar 9, 2023
975785d
Rename `canWriteUnit` to `canWriteProjects` (#23386) (#23399)
GiteaBot Mar 10, 2023
e9991b1
Refactor and tidy-up the merge/update branch code (#22568) (#23365)
GiteaBot Mar 10, 2023
43cf04c
Fix broken Chroma CSS styles (#23174) (#23402)
GiteaBot Mar 10, 2023
edb618c
Handle OpenID discovery URL errors a little nicer when creating/editi…
GiteaBot Mar 10, 2023
e259dae
Add missing tabs to org projects page (#22705) (#23412)
GiteaBot Mar 10, 2023
b301cb1
Fix and move "Use this template" button (#23398) (#23408)
GiteaBot Mar 10, 2023
e87f36e
Use buildkit for docker builds (#23415) (#23424)
GiteaBot Mar 11, 2023
0d9b44c
Preserve file size when creating attachments (#23406) (#23426)
GiteaBot Mar 12, 2023
41655ee
Show edit/close/delete button on organization wide repositories (#233…
GiteaBot Mar 12, 2023
b116249
Fix actions frontend bugs (pagination, long name alignment) and small…
GiteaBot Mar 13, 2023
fa33919
Support reflogs (#22451) (#23438)
GiteaBot Mar 13, 2023
c3c0710
Purge API comment (#23451) (#23452)
GiteaBot Mar 13, 2023
1543ac9
Fix missing commit status in PR which from forked repo (#23351) (#23453)
GiteaBot Mar 14, 2023
0a0f46f
test_env: hardcode major go version in use (#23464)
techknowlogick Mar 14, 2023
8536dc4
Make branches list page operations remember current page (#23420) (#2…
GiteaBot Mar 14, 2023
e5a51ec
Remove wrongly added column on migration test fixtures (#23456) (#23470)
GiteaBot Mar 14, 2023
c698a6f
Scoped label display and documentation tweaks (#23430) (#23433)
GiteaBot Mar 14, 2023
28af02e
Fix due date being wrong on issue list (#23475) (#23477)
GiteaBot Mar 15, 2023
31efbaf
Convert GitHub event on actions and fix some pull_request events. (#2…
GiteaBot Mar 15, 2023
5feb31f
Bump webpack from 5.75.0 to 5.76.0 (#23484) (#23487)
GiteaBot Mar 15, 2023
527bbf6
Fix 'View File' button in code search (#23478) (#23483)
GiteaBot Mar 15, 2023
d73846f
Disable sending email after push a commit to a closed PR (#23462) (#2…
GiteaBot Mar 15, 2023
70e31b4
Update path to docs theme file (#23502) (#23505)
GiteaBot Mar 15, 2023
b7c2f48
Update act (#23512) (#23518)
wolfogre Mar 16, 2023
23a6fa9
Make time tooltips interactive (#23526) (#23527)
GiteaBot Mar 16, 2023
8f8bd3c
Replace Less with CSS (#23508)
silverwind Mar 17, 2023
301de3a
Handle missing `README` in create repos API (#23387) (#23510)
Zettat123 Mar 17, 2023
68c9f1a
Use `<nav>` instead of `<div>` in the global navbar (#23125) (#23533)
GiteaBot Mar 17, 2023
cab7044
Increase horizontal page padding (#23507) (#23537)
GiteaBot Mar 17, 2023
bd1a915
Use octicon-verified for gpg signatures (#23529) (#23536)
GiteaBot Mar 17, 2023
0982402
Refactor merge/update git command calls (#23366) (#23544)
wxiaoguang Mar 17, 2023
1254fc6
Fix review comment context menu clipped bug (#23523) (#23543)
wxiaoguang Mar 17, 2023
4b763d8
Fix diff detail buttons wrapping, use tippy for review box (#23271) (…
GiteaBot Mar 17, 2023
22911a1
Imrove scroll behavior to hash issuecomment(scroll position, auto exp…
GiteaBot Mar 18, 2023
420d015
Fix `aria.js` bugs: incorrect role element problem, mobile focus pro…
wxiaoguang Mar 18, 2023
1a97a84
Fix JS error on compare page (#23551) (#23566)
GiteaBot Mar 18, 2023
f5a98b0
Fix sticky header in diff view (#23554) (#23568)
GiteaBot Mar 19, 2023
3f253b3
Fix some broken css (#23560) (#23567)
GiteaBot Mar 19, 2023
937996c
Match api migration behavior to web behavior (#23552) (#23573)
GiteaBot Mar 19, 2023
4730ed1
Add `.patch` to `attachment.ALLOWED_TYPES` (#23580) (#23582)
GiteaBot Mar 19, 2023
854fcb1
Fix dropdown icon misalignment when using fomantic icon (#23558) (#23…
wxiaoguang Mar 20, 2023
b33cae7
Fix backport #23336 (#23584)
yp05327 Mar 20, 2023
726d6a5
Add CHANGELOG for 1.19.0 (#23583) (#23586)
GiteaBot Mar 20, 2023
0732ba3
Polyfill the window.customElements (#23592) (#23595)
wxiaoguang Mar 20, 2023
a3b9171
Improve template error reporting (#23396) (#23600)
GiteaBot Mar 20, 2023
782c376
fix submodule is nil panic (#23588) (#23601)
GiteaBot Mar 21, 2023
4439a68
Fix pagination on `/notifications/watching` (#23564) (#23603)
GiteaBot Mar 21, 2023
9dfdfe2
Remove conflicting CSS rules on notifications, improve notifications …
GiteaBot Mar 21, 2023
774b37b
Introduce path Clean/Join helper functions, partially backport&refact…
wxiaoguang Mar 22, 2023
622d216
Fix diff tree height and adjust target file style (#23616)
silverwind Mar 22, 2023
e7a5429
Improve workflow event triggers (#23613) (#23648)
GiteaBot Mar 23, 2023
162f284
Rename develop -> development, contribute -> contributing, administer…
lunny Mar 23, 2023
a28863b
Fix codeblocks in the cheat sheet (#23664) (#23669)
GiteaBot Mar 23, 2023
2a70473
Backport locales to 1.19 (#23634)
wxiaoguang Mar 24, 2023
484cb22
Fix incorrect package doc link (#23679) (#23689)
GiteaBot Mar 24, 2023
780f71c
Fix incorrect `show-modal` and `show-panel` class (#23660) (#23663)
wxiaoguang Mar 24, 2023
1faa39b
Drop migration for ForeignReference (#23605) (#23666)
GiteaBot Mar 24, 2023
a9b4aa4
Create commit status when event is `pull_request_sync` (#23683) (#23691)
GiteaBot Mar 24, 2023
6705b21
Fix incorrect `HookEventType` of pull request review comments (#23650…
GiteaBot Mar 25, 2023
305cac2
Remove row clicking from notification table (#22695) (#23706)
GiteaBot Mar 25, 2023
f23b587
Describe Gitea's purpose more accurately (#23698) (#23710)
GiteaBot Mar 26, 2023
b6a2323
Check LFS/Packages settings in dump and doctor command (#23631) (#23730)
Zettat123 Mar 27, 2023
62afc0a
Redirect to project again after editing it (#23326) (#23739)
GiteaBot Mar 27, 2023
35039b8
Use GitHub Actions compatible globbing for `branches`, `tag`, `path` …
GiteaBot Mar 27, 2023
88a652f
Improve commit graph page UI alignment (#23751) (#23754)
zeripath Mar 27, 2023
1fed0e1
Fix profile page email display, respect settings (#23747) (#23756)
GiteaBot Mar 27, 2023
a254c26
Fix issue due date edit toggle bug (#23723) (#23758)
GiteaBot Mar 28, 2023
428d26d
fix br display for packages curls (#23737) (#23764)
GiteaBot Mar 28, 2023
b73d1ac
Make minio package support legacy MD5 checksum (#23768) (#23770)
wxiaoguang Mar 28, 2023
d977e7e
Add creation time in tag list page (#23693) (#23773)
GiteaBot Mar 28, 2023
81a995c
Fix project card preview select and template select (#23684) (#23731)
Zettat123 Mar 29, 2023
d27e693
Add CSS rules for basic colored labels (#23774) (#23777)
GiteaBot Mar 29, 2023
494721c
Don't apply the group filter when listing LDAP group membership if it…
GiteaBot Mar 29, 2023
edb6ba2
Add missing translation for `actions.runners.reset_registration_token…
wolfogre Mar 30, 2023
1cad923
Backport locales (with manual fix) (#23808)
wxiaoguang Mar 30, 2023
863da7d
Fix cancel button in the page of project edit not work (#23655) (#23813)
sillyguodong Mar 30, 2023
d15f20b
Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code mo…
wxiaoguang Mar 30, 2023
a146033
Fix "Updating branch by merge" bug in "update_branch_by_merge.tmpl" (…
wxiaoguang Mar 31, 2023
a04535e
[Patch] Fix closed PR also triggers Webhooks and actions (#23782) (#2…
GiteaBot Mar 31, 2023
8b3dd7d
Fix incorrect visibility dropdown list in add/edit user page (#23804)…
GiteaBot Mar 31, 2023
503af4b
CSS color tweaks (#23828) (#23842)
GiteaBot Mar 31, 2023
16bfe98
Fix 500 error if there is a name conflict when edit authentication so…
GiteaBot Mar 31, 2023
8abfbe2
Fix JS error when changing PR's target branch (#23862) (#23864)
GiteaBot Apr 2, 2023
026167f
Remove assertion debug code for show/hide refactoring (#23576) (#23868)
GiteaBot Apr 2, 2023
fe7caa0
Check `IsActionsToken` for LFS authentication (#23841) (#23875)
GiteaBot Apr 2, 2023
c68650a
Prefill input values in oauth settings as intended (#23829) (#23871)
GiteaBot Apr 3, 2023
799536d
Fix checks for `needs` in Actions (#23789) (#23831)
wolfogre Apr 3, 2023
7e07f5c
Backport some locales to 1.19 (#23880)
wxiaoguang Apr 3, 2023
1886bd6
Rename actions unit to `repo.actions` and add docs for it (#23733) (#…
GiteaBot Apr 3, 2023
847f0bb
Fix review box viewport overflow issue (#23800) (#23898)
GiteaBot Apr 3, 2023
f6dab64
Convert .Source.SkipVerify to $cfg.SkipVerify (#23839) (#23899)
GiteaBot Apr 3, 2023
ac57ec5
Fix user profile description rendering (#23882) (#23902)
GiteaBot Apr 3, 2023
669c76c
Fix `cases.Title` crash for concurrency (#23885) (#23903)
GiteaBot Apr 3, 2023
d752f0d
Add git dashes separator to some "log" and "diff" commands (#23606) (…
GiteaBot Apr 4, 2023
9836b7d
Use User.ID instead of User.Name in ActivityPub API for Person IRI (#…
GiteaBot Apr 4, 2023
dff3ce0
User/Org Feed render description as per web (#23887) (#23906)
GiteaBot Apr 4, 2023
fd0baf6
Org pages style fixes (#23901) (#23914)
GiteaBot Apr 4, 2023
c34f7cd
Use ghost user if package creator does not exist (#23822) (#23915)
GiteaBot Apr 4, 2023
7c180ff
Fix code view (diff) broken layout (#23096) (#23918)
GiteaBot Apr 4, 2023
1a8da2e
Update docs markdown file weight to make it clear (#23909) (#23921)
lunny Apr 4, 2023
7bfab90
docs: fix typo (#23924) (#23925)
GiteaBot Apr 4, 2023
8d88f14
docs: make the required backticks in email password more explicit (#2…
GiteaBot Apr 4, 2023
df74ee0
Scroll collapsed file into view (#23702) (#23929)
GiteaBot Apr 5, 2023
55239cb
Fix image border-radius (#23886) (#23930)
GiteaBot Apr 5, 2023
8092251
Left-align review comments (#23937)
silverwind Apr 6, 2023
001d3fb
Delete deleted release attachments immediately from storage (#23913) …
GiteaBot Apr 6, 2023
ac658bb
Backport locales to 1.19 (#23960)
wxiaoguang Apr 7, 2023
5066b20
Merge `push to create`, `open PR from push`, and `push options` docs …
lunny Apr 7, 2023
085b563
Support "." char as user name for User/Orgs in RSS/ATOM/GPG/KEYS path…
6543 Apr 7, 2023
1b8ecd1
Title can be empty when creating tag only (#23917) (#23961)
GiteaBot Apr 7, 2023
833a4b1
Hardcode path to docker images (#23955) (#23968)
GiteaBot Apr 7, 2023
5b7df68
Ensure RSS icon is present on all repo tabs (#23904) (#23973)
GiteaBot Apr 7, 2023
f317186
Do not crash when parsing an invalid workflow file (#23972) (#23976)
GiteaBot Apr 7, 2023
3a7cb1a
Use Get/Set instead of Rename when Regenerate session id (#23975) (#2…
GiteaBot Apr 7, 2023
0487e39
Treat PRs with agit flow as fork PRs when triggering actions. (#23884…
wolfogre Apr 7, 2023
4019a6d
Discolor pull request tab labels (#23950) (#23987)
GiteaBot Apr 8, 2023
a00e473
Remove `Repository.getFilesChanged` to fix Actions `paths` and `paths…
GiteaBot Apr 8, 2023
6a5b8eb
Fix redirect bug when creating issue from a project (#23971) (#23997)
GiteaBot Apr 8, 2023
4aabd8e
Set `ref` to fully-formed of the tag when trigger event is `release` …
GiteaBot Apr 8, 2023
3dbc637
Adjust sticky pr header to cover background (#23956) (#23999)
GiteaBot Apr 8, 2023
cfde557
fix: do not escape space between PyPI repository url and package name…
GiteaBot Apr 8, 2023
695738f
Show protected branch rule names again (#23907) (#24018)
GiteaBot Apr 9, 2023
2b10eeb
Show errors for KaTeX and mermaid on the preview tab (#24009) (#24019)
GiteaBot Apr 9, 2023
abf0386
Fix protected branch for API (#24013) (#24027)
GiteaBot Apr 10, 2023
27dbe97
Add actions support to package auth verification (#23729) (#24028)
GiteaBot Apr 10, 2023
f55fe98
Use actions job link as commit status URL instead of run link (#24023…
wolfogre Apr 10, 2023
8644993
Update documentation to explain which projects allow Gitea to host st…
GiteaBot Apr 11, 2023
580da8f
Fix branch protection priority (#24045) (#24061)
GiteaBot Apr 11, 2023
29724f3
Refactor commit status for Actions jobs (#23786) (#24060)
denyskon Apr 12, 2023
37d3e0e
Fix accidental overwriting of LDAP team memberships (#24050) (#24065)
GiteaBot Apr 12, 2023
5482602
Add cardtype to org/user level project on creation, edit and view (#2…
HesterG Apr 12, 2023
d562b41
Make label templates have consistent behavior and priority (#23749) (…
wxiaoguang Apr 12, 2023
16d2cf0
Fix custom mailer template on Windows (#24081)
wxiaoguang Apr 12, 2023
607801e
Update the value of the `diffEnd` when click `Show More` btn in the D…
GiteaBot Apr 12, 2023
93c7611
Improve LFS error logs (#24072) (#24082)
GiteaBot Apr 12, 2023
2398a23
Backport locales to 1.19 (#24083)
wxiaoguang Apr 12, 2023
447fa67
Changelog v1.19.1 (#24079)
6543 Apr 13, 2023
893c97d
Fix mismatch between hook events and github event types (#24048) (#24…
Zettat123 Apr 13, 2023
67a73dd
Fix incorrect server error content in RunnersList (#24118) (#24121)
GiteaBot Apr 14, 2023
10f9399
Highlight selected file in the PR file tree (#23947) (#24126)
sillyguodong Apr 14, 2023
494e373
Fix 2-dot direct compare to use the right base commit (#24133) (#24150)
GiteaBot Apr 16, 2023
94fbd44
Set EasyMDE heading font-size to the same size as the resulting markd…
wxiaoguang Apr 16, 2023
2b32f8b
Sort repo topic labels by name (#24123) (#24153)
wxiaoguang Apr 17, 2023
463e144
Update redis library to support redis v7 (#24114) (#24156)
pat-s Apr 17, 2023
03b6e79
Use 1.18's aria role for dropdown menus (#24144) (#24155)
wxiaoguang Apr 17, 2023
c4f569b
Support converting varchar to nvarchar for mssql database (#24105) (#…
GiteaBot Apr 17, 2023
3d3c740
Fix Org edit page bugs: renaming detection, maxlength (#24161) (#24171)
GiteaBot Apr 17, 2023
f134229
Use correct locale key for forks page (#24172) (#24175)
GiteaBot Apr 17, 2023
2e6e5bc
Fix incorrect CORS default values (#24206) (#24217)
GiteaBot Apr 19, 2023
8cd5483
Fix template error in pull request with deleted head repo (#24192) (#…
GiteaBot Apr 19, 2023
dc66cea
Don't list root repository on compare page if pulls not allowed (#241…
GiteaBot Apr 19, 2023
7d717e2
Vertical widths of containers removed (#24184) (#24211)
GiteaBot Apr 20, 2023
95c2cb4
Add run status in action view page (#24223)
yp05327 Apr 20, 2023
d5f2c9d
Fix issue attachment handling (#24202) (#24221)
wxiaoguang Apr 20, 2023
7117355
Fix label color, fix divider in dropdown (#24215) (#24244)
GiteaBot Apr 21, 2023
51fd730
Show commit history for closed/merged PRs (#24238) (#24261)
GiteaBot Apr 21, 2023
b00f7c3
Fix access token issue on some public endpoints (#24194) (#24259)
GiteaBot Apr 21, 2023
5ccb626
Fix owner team access mode value in team_unit table (#24224)
yp05327 Apr 22, 2023
da44484
Fix footer display (#24251) (#24269)
wxiaoguang Apr 22, 2023
077160b
fix calReleaseNumCommitsBehind (#24148) (#24197)
oliverpool Apr 22, 2023
7297cce
Only delete secrets belonging to its owner (#24284) (#24286)
GiteaBot Apr 23, 2023
7e86dff
Load reviewer for comments when dismissing a review (#24281) (#24288)
GiteaBot Apr 23, 2023
65de747
Handle canceled workflow as a warning instead of a fail (#24282) (#24…
GiteaBot Apr 23, 2023
a2f52f3
Fix bug when deleting wiki with no code write permission (#24274) (#2…
GiteaBot Apr 24, 2023
1b8e365
Upgrade act (#24298) (#24300)
GiteaBot Apr 24, 2023
8044d87
Unify nightly naming across binaries and docker images (#24116) (#24308)
GiteaBot Apr 24, 2023
b1094ff
Remove org users who belong to no teams (#24247) (#24313)
GiteaBot Apr 25, 2023
ef3e3af
Fix typo in API route (#24310) (#24332)
GiteaBot Apr 25, 2023
1254a82
Wrap too long push mirror addresses (#21120) (#24334)
GiteaBot Apr 25, 2023
1bbbeb2
Respect the REGISTER_MANUAL_CONFIRM setting when registering via OIDC…
GiteaBot Apr 25, 2023
5f82011
Add --font-weight-bold and set previous bold to 601 (#24307) (#24331)
wxiaoguang Apr 25, 2023
cc7a4f1
Don't set meta `theme-color` by default (#24340) (#24346)
GiteaBot Apr 26, 2023
912a418
Fix broken clone script on an empty archived repo (#24339) (#24348)
GiteaBot Apr 26, 2023
af5d66b
Fix wrong error info in RepoRefForAPI (#24344) (#24351)
GiteaBot Apr 26, 2023
d2328c4
Fix Monaco IOS keyboard button (#24341) (#24347)
GiteaBot Apr 26, 2023
89297c9
Fix no edit/close/delete button in org repo project view page (#24349)
yp05327 Apr 26, 2023
d2efd2b
Require repo scope for PATs for private repos and basic authenticatio…
GiteaBot Apr 27, 2023
e301e26
Add tags list for repos whose release setting is disabled (#23465) (…
Zettat123 Apr 27, 2023
5999349
Fix auth check bug (#24382) (#24387)
GiteaBot Apr 27, 2023
4bc6bfb
Changelog 1.19.2 (#24365)
jolheiser Apr 27, 2023
e76b3f7
getting the tag list does not require being signed in (#24413) (#24416)
GiteaBot Apr 29, 2023
7d7ba76
Fix user-cards format (#24428) (#24431)
GiteaBot Apr 30, 2023
d9d3f52
Fix incorrect CurrentUser check for docker rootless (#24435)
wxiaoguang Apr 30, 2023
3abbf5f
Improve milestone filter on issues page (#22423) (#24440)
GiteaBot Apr 30, 2023
bfdbc62
nightly tag for docker images
techknowlogick Apr 30, 2023
f1a0b64
Skip known flaky `queue` tests on CI environment (#24443)
silverwind Apr 30, 2023
84fa30e
Remove less/_repository.less (#24467)
wxiaoguang May 1, 2023
499257d
nightly tag
techknowlogick May 1, 2023
73e70f3
Enable whitespace rendering on selection in Monaco (#24444) (#24485)
GiteaBot May 2, 2023
4dccac3
Fix api error message if fork exists (#24487) (#24493)
GiteaBot May 3, 2023
8ceb78c
Changelog for 1.19.3 (#24495)
techknowlogick May 3, 2023
f979569
Bump go.etcd.io/bbolt and blevesearch deps (#23062) (#24519)
lunny May 4, 2023
7a74957
Fix new wiki page mirror (#24518)
lunny May 4, 2023
2572879
Fix the permission of team's `Actions` unit issue (#24536) (#24545)
GiteaBot May 5, 2023
6f57be0
Makefile: Use portable !, not GNUish -not, with find(1). (#24565) (#2…
GiteaBot May 7, 2023
4498a26
Improve decryption failure message (#24573) (#24575)
wxiaoguang May 7, 2023
306b7b5
Refresh the refernce of the closed PR when reopening (#24231) (#24587)
GiteaBot May 8, 2023
b390b43
Fix close org projects (#24588) (#24591)
GiteaBot May 8, 2023
7eaf7aa
Do not select line numbers when selecting text from the action run lo…
GiteaBot May 8, 2023
cb7ba89
fix: release page for empty or non-existing target (#24659)
oliverpool May 12, 2023
8f72201
Fix issues list page multiple selection update milestones (#24660) (#…
GiteaBot May 12, 2023
aa984f2
Fix docs documenting invalid `@every` for `OLDER_THAN` cron settings …
GiteaBot May 13, 2023
da1c38d
Fix `organization` field being `null` in `GET /api/v1/teams/{id}` (#2…
GiteaBot May 13, 2023
0ee51a5
Add test for api team organization (#24699) (#24702)
GiteaBot May 13, 2023
2fea93b
Fix run list broken when trigger user deleted (#24706) (#24709)
GiteaBot May 14, 2023
6ecd2e7
Fix Pull Mirror out-of-sync bugs (#24732) (#24733)
wxiaoguang May 15, 2023
e4f200e
Respect original content when creating secrets (#24745) (#24746)
GiteaBot May 16, 2023
57f520e
Make mailer SMTP check have timed context (#24751) (#24759)
GiteaBot May 17, 2023
1bad05d
Fix missed table name on iterate lfs meta objects (#24768) (#24774)
GiteaBot May 17, 2023
64cc691
Fix safari cookie session bug (#24772)
wxiaoguang May 18, 2023
b369ed5
Fix Actions being enabled accidentally (#24802) (#24810)
GiteaBot May 19, 2023
04f9ab1
Fix topics deleted via API not being deleted in org page (#24825) (#2…
GiteaBot May 21, 2023
f29c52a
Return `404` in the API if the requested webhooks were not found (#24…
GiteaBot May 21, 2023
e81d38b
Set `--font-weight-bold` to 600 (#24840)
silverwind May 22, 2023
e7757aa
Remove unnecessary prefix usage (#24888)
lunny May 23, 2023
d19d5bc
Make DeleteIssue use correct context (#24885)
wxiaoguang May 23, 2023
275abd6
Only validate changed columns when update user (#24867) (#24903)
GiteaBot May 24, 2023
c5dee88
Hiding Secrets options when Actions feature is disabled (#24792)
pboguslawski May 24, 2023
a83d597
Merge different languages for language stats (#24900) (#24921)
wxiaoguang May 25, 2023
d1af0a3
Merge two translation contributing documents (#23939) (#24933)
GiteaBot May 25, 2023
b4cd102
Fix doc for 1.19 backend guideline (#24942)
HesterG May 26, 2023
8a6a114
Remove reference to caddy v1 in docs (#24962) (#24964)
GiteaBot May 28, 2023
9da84a3
simple docs fixes: 'pull request' page (en-us & zh-tw) link path to '…
GiteaBot May 29, 2023
3a7e095
`zh-cn` translation for usage docs (#24897) (#24977)
GiteaBot May 29, 2023
7dc46ff
Match unqualified references when syncing pulls as well (#23070)
lflare May 29, 2023
826b7b9
Fix missing reference prefix of commits when sync mirror repository (…
sillyguodong May 30, 2023
0ef7b66
Update from-binary.en-us.md (#24975) (#24999)
GiteaBot May 30, 2023
cdeb55f
Remove unnecessary content on docs (#24976) (#25001)
HesterG May 30, 2023
d2c9fb0
Unify doc links to use paths relative to doc folder (#24979) (#25000)
HesterG May 30, 2023
37b73b3
Add Chinese docs for help, contribution and development (#24925) (#25…
HesterG May 31, 2023
3b5cc02
Add chinese documentations for installation (#24904) (#25015)
sillyguodong May 31, 2023
95bf09f
Add chinese documentations for Packages (#24914) (#25016)
sillyguodong May 31, 2023
b83e4f2
Run markdownlint on drone, fix lint issue (#25040)
silverwind Jun 1, 2023
73ae6b2
Fix users cannot visit issue attachment bug (#25019) (#25027)
GiteaBot Jun 1, 2023
edfa2c5
Port Chinese document for localization to v1.19 (#25021)
HesterG Jun 2, 2023
b2ec116
Add oauth Chinese document for v1.19 (#25020)
HesterG Jun 2, 2023
8e94b71
GitLab migration: Sanitize response for reaction list (#25054) (#25059)
GiteaBot Jun 2, 2023
15adec1
improve permission documentation (#23942) (#25078)
GiteaBot Jun 5, 2023
3ef9793
Fix parallelly generating index failure with Mysql (#24567) (#25081)
GiteaBot Jun 5, 2023
8df6713
update labels link to correct location in 1.19 docs (#25105)
techknowlogick Jun 6, 2023
e3cdb05
add zh-cn for `Upgrade from old Gitea` in v1.19 (#25022)
sillyguodong Jun 6, 2023
c23ab42
Change branch name from master to main in some documents' links (#251…
HesterG Jun 8, 2023
ed78711
Fix broken links in documents v1.19 (#25142)
HesterG Jun 8, 2023
a903005
Fix open redirect check for more cases (#25143) (#25155)
lafriks Jun 8, 2023
de6ac4b
Add `WithPullRequest` for `actionsNotifier` (#25144) (#25196)
GiteaBot Jun 11, 2023
a9ebf91
Hide limited users if viewed by anonymous ghost (#25214) (#25224)
GiteaBot Jun 13, 2023
1650a26
Fix task list checkbox toggle to work with YAML front matter (#25184)…
jtran Jun 13, 2023
b4bfaf7
Add link to support page for commercial support (#25293) (#25299)
GiteaBot Jun 16, 2023
1b27189
Show outdated comments in files changed tab (#24936)
sebastian-sauer Jun 21, 2023
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
Add chinese documentations for installation (#24904) (#25015)
backport #24904
sillyguodong authored May 31, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3b5cc02345cd64f9179b8c4d47effa2dc4948867
307 changes: 307 additions & 0 deletions docs/content/doc/installation/database-preparation.zh-cn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,307 @@
---
date: "2020-01-16"
title: "数据库准备"
slug: "database-prep"
weight: 10
toc: false
draft: false
aliases:
- /zh-cn/database-prep
menu:
sidebar:
parent: "installation"
name: "数据库准备"
weight: 10
identifier: "database-prep"
---

# 数据库准备

在使用 Gitea 前,您需要准备一个数据库。Gitea 支持 PostgreSQL(>=10)、MySQL(>=5.7)、SQLite 和 MSSQL(>=2008R2 SP3)这几种数据库。本页将指导您准备数据库。由于 PostgreSQL 和 MySQL 在生产环境中被广泛使用,因此本文档将仅涵盖这两种数据库。如果您计划使用 SQLite,则可以忽略本章内容。

数据库实例可以与 Gitea 实例在相同机器上(本地数据库),也可以与 Gitea 实例在不同机器上(远程数据库)。

注意:以下所有步骤要求您的选择的数据库引擎已安装在您的系统上。对于远程数据库设置,请在数据库实例上安装服务器应用程序,在 Gitea 服务器上安装客户端程序。客户端程序用于测试 Gitea 服务器与数据库之间的连接,而 Gitea 本身使用 Go 提供的数据库驱动程序完成相同的任务。此外,请确保服务器和客户端使用相同的引擎版本,以使某些引擎功能正常工作。出于安全原因,请使用安全密码保护 `root`(MySQL)或 `postgres`(PostgreSQL)数据库超级用户。以下步骤假设您在数据库和 Gitea 服务器上都使用 Linux。

**目录**

{{< toc >}}

## MySQL

1. 对于远程数据库设置,您需要让 MySQL 监听您的 IP 地址。编辑数据库实例上的 `/etc/mysql/my.cnf` 文件中的 `bind-address` 选项为:

```ini
bind-address = 203.0.113.3
```

2. 在数据库实例上,使用 `root` 用户登录到数据库控制台:

```
mysql -u root -p
```

按提示输入密码。

3. 创建一个将被 Gitea 使用的数据库用户,并使用密码进行身份验证。以下示例中使用了 `'gitea'` 作为密码。请为您的实例使用一个安全密码。

对于本地数据库:

```sql
SET old_passwords=0;
CREATE USER 'gitea' IDENTIFIED BY 'gitea';
```

对于远程数据库:

```sql
SET old_passwords=0;
CREATE USER 'gitea'@'192.0.2.10' IDENTIFIED BY 'gitea';
```

其中 `192.0.2.10` 是您的 Gitea 实例的 IP 地址。

根据需要替换上述用户名和密码。

4. 使用 UTF-8 字符集和排序规则创建数据库。确保使用 `**utf8mb4**` 字符集,而不是 `utf8`,因为前者支持 _Basic Multilingual Plane_ 之外的所有 Unicode 字符(包括表情符号)。排序规则根据您预期的内容选择。如果不确定,可以使用 `unicode_ci` 或 `general_ci`。

```sql
CREATE DATABASE giteadb CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
```

根据需要替换数据库名称。

5. 将数据库上的所有权限授予上述创建的数据库用户。

对于本地数据库:

```sql
GRANT ALL PRIVILEGES ON giteadb.* TO 'gitea';
FLUSH PRIVILEGES;
```

对于远程数据库:

```sql
GRANT ALL PRIVILEGES ON giteadb.* TO 'gitea'@'192.0.2.10';
FLUSH PRIVILEGES;
```

6. 通过 exit 退出数据库控制台。

7. 在您的 Gitea 服务器上,测试与数据库的连接:

```
mysql -u gitea -h 203.0.113.3 -p giteadb
```

其中 `gitea` 是数据库用户名,`giteadb` 是数据库名称,`203.0.113.3` 是数据库实例的 IP 地址。对于本地数据库,省略 -h 选项。

到此您应该能够连接到数据库了。

## PostgreSQL

1. 对于远程数据库设置,通过编辑数据库实例上的 postgresql.conf 文件中的 listen_addresses 将 PostgreSQL 配置为监听您的 IP 地址:

```ini
listen_addresses = 'localhost, 203.0.113.3'
```

2. PostgreSQL 默认使用 `md5` 质询-响应加密方案进行密码身份验证。现在这个方案不再被认为是安全的。改用 SCRAM-SHA-256 方案,通过编辑数据库服务器上的` postgresql.conf` 配置文件:

```ini
password_encryption = scram-sha-256
```

重启 PostgreSQL 以应用该设置。

3. 在数据库服务器上,以超级用户身份登录到数据库控制台:

```
su -c "psql" - postgres
```

4. 创建具有登录权限和密码的数据库用户(在 PostgreSQL 术语中称为角色)。请使用安全的、强密码,而不是下面的 `'gitea'`:

```sql
CREATE ROLE gitea WITH LOGIN PASSWORD 'gitea';
```

根据需要替换用户名和密码。

5. 使用 UTF-8 字符集创建数据库,并由之前创建的数据库用户拥有。可以根据预期内容使用任何 `libc` 排序规则,使用 `LC_COLLATE` 和 `LC_CTYPE` 参数指定:

```sql
CREATE DATABASE giteadb WITH OWNER gitea TEMPLATE template0 ENCODING UTF8 LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8';
```

根据需要替换数据库名称。

6. 通过将以下身份验证规则添加到 `pg_hba.conf`,允许数据库用户访问上面创建的数据库。

对于本地数据库:

```ini
local giteadb gitea scram-sha-256
```

对于远程数据库:

```ini
host giteadb gitea 192.0.2.10/32 scram-sha-256
```

根据您自己的数据库名称、用户和 Gitea 实例的 IP 地址进行替换。

注意:`pg_hba.conf` 上的规则按顺序评估,也就是第一个匹配的规则将用于身份验证。您的 PostgreSQL 安装可能附带了适用于所有用户和数据库的通用身份验证规则。如果是这种情况,您可能需要将此处提供的规则放置在此类通用规则之上。

重启 PostgreSQL 以应用新的身份验证规则。

7. 在您的 Gitea 服务器上,测试与数据库的连接。

对于本地数据库:

```
psql -U gitea -d giteadb
```

对于远程数据库:

```
psql "postgres://[email protected]/giteadb"
```

其中 `gitea` 是数据库用户,`giteadb` 是数据库名称,`203.0.113.3` 是您的数据库实例的 IP 地址。

您应该会被提示输入数据库用户的密码,并连接到数据库。

## 使用 TLS 进行数据库连接

如果 Gitea 和您的数据库实例之间的通信是通过私有网络进行的,或者如果 Gitea 和数据库运行在同一台服务器上,那么可以省略本节,因为 Gitea 和数据库实例之间的安全性不会受到严重威胁。但是,如果数据库实例位于公共网络上,请使用 TLS 对数据库连接进行加密,以防止第三方拦截流量数据。

### 先决条件

- 您需要两个有效的 TLS 证书,一个用于数据库实例(数据库服务器),一个用于 Gitea 实例(数据库客户端)。两个证书都必须由受信任的 CA 签名。
- 数据库证书必须在 `X509v3 Extended Key Usage` 扩展属性中包含 `TLS Web Server Authentication`,而客户端证书则需要在相应的属性中包含 `TLS Web Client Authentication`。
- 在数据库服务器证书中,`Subject Alternative Name` 或 `Common Name` 条目之一必须是数据库实例的完全限定域名(FQDN)(例如 `db.example.com`)。在数据库客户端证书中,上述提到的条目之一必须包含 Gitea 将用于连接的数据库用户名。
- 您需要将 Gitea 和数据库服务器的域名映射到它们各自的 IP 地址。可以为它们设置 DNS 记录,也可以在每个系统上的 `/etc/hosts`(Windows 中的 `%WINDIR%\System32\drivers\etc\hosts`)中添加本地映射。这样可以通过域名而不是 IP 地址进行数据库连接。有关详细信息,请参阅您系统的文档。

### PostgreSQL

Gitea 使用的 PostgreSQL 驱动程序支持双向 TLS。在双向 TLS 中,数据库客户端和服务器通过将各自的证书发送给对方进行验证来相互认证。换句话说,服务器验证客户端证书,客户端验证服务器证书。

1. 在数据库实例所在的服务器上,放置以下凭据:

- `/path/to/postgresql.crt`: 数据库实例证书
- `/path/to/postgresql.key`: 数据库实例私钥
- `/path/to/root.crt`: 用于验证客户端证书的CA证书链

2. 在 `postgresql.conf` 中添加以下选项:

```ini
ssl = on
ssl_ca_file = '/path/to/root.crt'
ssl_cert_file = '/path/to/postgresql.crt'
ssl_key_file = '/path/to/postgresql.key'
ssl_min_protocol_version = 'TLSv1.2'
```

3. 根据 PostgreSQL 的要求,调整凭据的所有权和权限:

```
chown postgres:postgres /path/to/root.crt /path/to/postgresql.crt /path/to/postgresql.key
chmod 0600 /path/to/root.crt /path/to/postgresql.crt /path/to/postgresql.key
```

4. 编辑 `pg_hba.conf` 规则,仅允许 Gitea 数据库用户通过SSL连接,并要求客户端证书验证。

对于PostgreSQL 12:

```ini
hostssl giteadb gitea 192.0.2.10/32 scram-sha-256 clientcert=verify-full
```

对于PostgreSQL 11及更早版本:

```ini
hostssl giteadb gitea 192.0.2.10/32 scram-sha-256 clientcert=1
```

根据需要替换数据库名称、用户和 Gitea 实例的 IP 地址。

5. 重新启动 PostgreSQL 以应用上述配置。

6. 在运行 Gitea 实例的服务器上,将以下凭据放置在运行 Gitea 的用户的主目录下(例如 `git`):

- `~/.postgresql/postgresql.crt`: 数据库客户端证书
- `~/.postgresql/postgresql.key`: 数据库客户端私钥
- `~/.postgresql/root.crt`: 用于验证服务器证书的CA证书链

注意:上述文件名在 PostgreSQL 中是硬编码的,无法更改。

7. 根据需要调整凭据、所有权和权限:

```
chown git:git ~/.postgresql/postgresql.crt ~/.postgresql/postgresql.key ~/.postgresql/root.crt
chown 0600 ~/.postgresql/postgresql.crt ~/.postgresql/postgresql.key ~/.postgresql/root.crt
```

8. 测试与数据库的连接:

```
psql "postgres://[email protected]/giteadb?sslmode=verify-full"
```

您将被提示输入数据库用户的密码,然后连接到数据库。

### MySQL

虽然 Gitea 使用的MySQL驱动程序也支持双向 TLS,但目前 Gitea 仅支持单向 TLS。有关详细信息,请参见工单#10828。

在单向TLS中,数据库客户端在连接握手期间验证服务器发送的证书,而服务器则假定连接的客户端是合法的,因为不进行客户端证书验证。

1. 在数据库实例上放置以下凭据:

- `/path/to/mysql.crt`: 数据库实例证书
- `/path/to/mysql.key`: 数据库实例密钥
- `/path/to/ca.crt`: CA证书链。在单向TLS中不使用此文件,但用于验证双向TLS中的客户端证书。

2. 将以下选项添加到 `my.cnf`:

```ini
[mysqld]
ssl-ca = /path/to/ca.crt
ssl-cert = /path/to/mysql.crt
ssl-key = /path/to/mysql.key
tls-version = TLSv1.2,TLSv1.3
```

3. 调整凭据的所有权和权限:

```
chown mysql:mysql /path/to/ca.crt /path/to/mysql.crt /path/to/mysql.key
chmod 0600 /path/to/ca.crt /path/to/mysql.crt /path/to/mysql.key
```

4. 重新启动MySQL以应用设置。

5. Gitea 的数据库用户可能已经创建过,但只会对运行 Gitea 的服务器的 IP 地址进行身份验证。要对其域名进行身份验证,请重新创建用户,并设置其需要通过 TLS 连接到数据库:

```sql
DROP USER 'gitea'@'192.0.2.10';
CREATE USER 'gitea'@'example.gitea' IDENTIFIED BY 'gitea' REQUIRE SSL;
GRANT ALL PRIVILEGES ON giteadb.* TO 'gitea'@'example.gitea';
FLUSH PRIVILEGES;
```

根据需要替换数据库用户名、密码和 Gitea 实例域名。

6. 确保用于验证数据库服务器证书的CA证书链位于数据库和 Gitea 服务器的系统证书存储中。请参考系统文档中有关将 CA 证书添加到证书存储的说明。

7. 在运行Gitea的服务器上,测试与数据库的连接:

```
mysql -u gitea -h example.db -p --ssl
```

至此应该成功连接到数据库了。
6 changes: 3 additions & 3 deletions docs/content/doc/installation/from-binary.zh-cn.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
date: "2016-12-01T16:00:00+02:00"
title: "从二进制安装"
title: "使用二进制文件安装"
slug: "install-from-binary"
weight: 15
toc: false
draft: false
menu:
sidebar:
parent: "installation"
name: "从二进制安装"
name: "使用二进制文件安装"
weight: 15
identifier: "install-from-binary"
---

# 从二进制安装
# 使用二进制文件安装

所有打包的二进制程序均包含 SQLite,MySQL 和 PostgreSQL 的数据库连接支持,同时网站的静态资源均已嵌入到可执行程序中,这一点和曾经的 Gogs 有所不同。

6 changes: 3 additions & 3 deletions docs/content/doc/installation/from-source.zh-cn.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
date: "2016-12-01T16:00:00+02:00"
title: "从源代码安装"
title: "使用源代码安装"
slug: "install-from-source"
weight: 30
toc: false
draft: false
menu:
sidebar:
parent: "installation"
name: "从源代码安装"
name: "使用源代码安装"
weight: 30
identifier: "install-from-source"
---

# 从源代码安装
# 使用源代码安装

首先你需要安装Golang,关于Golang的安装,参见[官方文档](https://golang.google.cn/doc/install)。

Loading