Skip to content

Commit 295d726

Browse files
committed
Merge remote-tracking branch 'upstream/main'
* upstream/main: (24 commits) Update zh-cn documentation (go-gitea#26406) Fix NuGet search endpoints (go-gitea#25613) Fix tooltip of commit select button (go-gitea#26472) fix grab cursor on default column (go-gitea#26476) Fix storage path logic especially for relative paths (go-gitea#26441) Rename `Sync2` -> `Sync` (go-gitea#26479) Add ThreadID parameter for Telegram webhooks (go-gitea#25996) Fix stderr usages (go-gitea#26477) Use correct pull request commit link instead of a generic commit link (go-gitea#26434) Close stdout correctly for "git blame" (go-gitea#26470) Refactor tests (go-gitea#26464) Remove last newline from config file (go-gitea#26468) Add matrix to support (go-gitea#26382) Refactor project templates (go-gitea#26448) Avoiding accessing undefined mentionValues (go-gitea#26461) Tweak actions menu (go-gitea#26278) Adjust minio new sequence, now it will check whether bucket exist first and then create one if it doesn't exist (go-gitea#26420) Set commit id when ref used explicitly (go-gitea#26447) Fix 404 error when remove self from an organization (go-gitea#26362) Update index doc (go-gitea#26455) ...
2 parents 6397195 + db7b0a1 commit 295d726

File tree

205 files changed

+2895
-2186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+2895
-2186
lines changed

cmd/admin_user_create.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package cmd
66
import (
77
"errors"
88
"fmt"
9-
"os"
109

1110
auth_model "code.gitea.io/gitea/models/auth"
1211
user_model "code.gitea.io/gitea/models/user"
@@ -87,7 +86,7 @@ func runCreateUser(c *cli.Context) error {
8786
username = c.String("username")
8887
} else {
8988
username = c.String("name")
90-
fmt.Fprintf(os.Stderr, "--name flag is deprecated. Use --username instead.\n")
89+
_, _ = fmt.Fprintf(c.App.ErrWriter, "--name flag is deprecated. Use --username instead.\n")
9190
}
9291

9392
ctx, cancel := installSignals()

cmd/web.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ func serveInstalled(ctx *cli.Context) error {
208208
}
209209

210210
// Set up Chi routes
211-
c := routers.NormalRoutes()
212-
err := listen(c, true)
211+
webRoutes := routers.NormalRoutes()
212+
err := listen(webRoutes, true)
213213
<-graceful.GetManager().Done()
214214
log.Info("PID: %d Gitea Web Finished", os.Getpid())
215215
log.GetManager().Close()

docs/content/administration/command-line.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ Sometimes when there are migrations the old columns and default values may be le
403403
unchanged in the database schema. This may lead to warning such as:
404404

405405
```
406-
2020/08/02 11:32:29 ...rm/session_schema.go:360:Sync2() [W] Table user Column keep_activity_private db default is , struct default is 0
406+
2020/08/02 11:32:29 ...rm/session_schema.go:360:Sync() [W] Table user Column keep_activity_private db default is , struct default is 0
407407
```
408408

409409
You can cause Gitea to recreate these tables and copy the old data into the new table

docs/content/administration/command-line.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ AuthorizedKeysCommand /path/to/gitea keys -e git -u %u -t %t -k %k
375375
有时,在迁移时,旧的列和默认值可能会在数据库模式中保持不变。这可能会导致警告,如下所示:
376376

377377
```
378-
2020/08/02 11:32:29 ...rm/session_schema.go:360:Sync2() [W] Table user Column keep_activity_private db default is , struct default is 0
378+
2020/08/02 11:32:29 ...rm/session_schema.go:360:Sync() [W] Table user Column keep_activity_private db default is , struct default is 0
379379
```
380380

381381
您可以通过以下方式让 Gitea 重新创建这些表,并将旧数据复制到新表中,并适当设置默认值:

docs/content/administration/config-cheat-sheet.zh-cn.md

Lines changed: 1187 additions & 359 deletions
Large diffs are not rendered by default.

docs/content/help/faq.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ Sometimes when there are migrations the old columns and default values may be le
410410
unchanged in the database schema. This may lead to warning such as:
411411

412412
```
413-
2020/08/02 11:32:29 ...rm/session_schema.go:360:Sync2() [W] Table user Column keep_activity_private db default is , struct default is 0
413+
2020/08/02 11:32:29 ...rm/session_schema.go:360:Sync() [W] Table user Column keep_activity_private db default is , struct default is 0
414414
```
415415

416416
These can safely be ignored, but you are able to stop these warnings by getting Gitea to recreate these tables using:

docs/content/help/faq.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ SystemD 上的标准输出默认会写入日志记录中。您可以尝试使用
424424
这可能会导致警告,例如:
425425

426426
```
427-
2020/08/02 11:32:29 ...rm/session_schema.go:360:Sync2() [W] Table user Column keep_activity_private db default is , struct default is 0
427+
2020/08/02 11:32:29 ...rm/session_schema.go:360:Sync() [W] Table user Column keep_activity_private db default is , struct default is 0
428428
```
429429

430430
可以安全地忽略这些警告,但您可以通过让 Gitea 重新创建这些表来停止这些警告,使用以下命令:

docs/content/help/support.en-us.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ menu:
2020
- [Paid Commercial Support](https://about.gitea.com/)
2121
- [Discord](https://discord.gg/Gitea)
2222
- [Discourse Forum](https://discourse.gitea.io/)
23+
- [Matrix](https://matrix.to/#/#gitea-space:matrix.org)
24+
- NOTE: Most of the Matrix channels are bridged with their counterpart in Discord and may experience some degree of flakiness with the bridge process.
2325

2426
**NOTE:** When asking for support, it may be a good idea to have the following available so that the person helping has all the info they need:
2527

docs/content/index.en-us.md

Lines changed: 21 additions & 238 deletions
Original file line numberDiff line numberDiff line change
@@ -25,244 +25,27 @@ You can try it out using [the online demo](https://try.gitea.io/).
2525

2626
## Features
2727

28-
- User Dashboard
29-
- Context switcher (organization or current user)
30-
- Activity timeline
31-
- Commits
32-
- Issues
33-
- Pull requests
34-
- Repository creation
35-
- Searchable repository list
36-
- List of organizations
37-
- A list of mirror repositories
38-
- Issues dashboard
39-
- Context switcher (organization or current user)
40-
- Filter by
41-
- Open
42-
- Closed
43-
- Your repositories
44-
- Assigned issues
45-
- Your issues
46-
- Repository
47-
- Sort by
48-
- Oldest
49-
- Last updated
50-
- Number of comments
51-
- Pull request dashboard
52-
- Same as issue dashboard
53-
- Repository types
54-
- Mirror
55-
- Normal
56-
- Migrated
57-
- Notifications (email and web)
58-
- Read
59-
- Unread
60-
- Pin
61-
- Explore page
62-
- Users
63-
- Repos
64-
- Organizations
65-
- Search
66-
- Custom templates
67-
- Override public files (logo, css, etc)
68-
- CSRF and XSS protection
69-
- HTTPS support
70-
- Set allowed upload sizes and types
71-
- Logging
72-
- Configuration
73-
- Databases
74-
- MySQL (>=5.7)
75-
- PostgreSQL (>=10)
76-
- SQLite3
77-
- MSSQL (>=2008R2 SP3)
78-
- TiDB (MySQL protocol)
79-
- Configuration file
80-
- [app.ini](https://github.com/go-gitea/gitea/blob/main/custom/conf/app.example.ini)
81-
- Admin panel
82-
- Statistics
83-
- Actions
84-
- Delete inactive accounts
85-
- Delete cached repository archives
86-
- Delete repositories records which are missing their files
87-
- Run garbage collection on repositories
88-
- Rewrite SSH keys
89-
- Resync hooks
90-
- Recreate repositories which are missing
91-
- Server status
92-
- Uptime
93-
- Memory
94-
- Current # of goroutines
95-
- And more
96-
- User management
97-
- Search
98-
- Sort
99-
- Last login
100-
- Authentication source
101-
- Maximum repositories
102-
- Disable account
103-
- Admin permissions
104-
- Permission to create Git Hooks
105-
- Permission to create organizations
106-
- Permission to import repositories
107-
- Organization management
108-
- Members
109-
- Teams
110-
- Avatar
111-
- Hooks
112-
- Repository management
113-
- See all repository information and manage repositories
114-
- Authentication sources
115-
- OAuth
116-
- PAM
117-
- LDAP
118-
- SMTP
119-
- Configuration viewer
120-
- Everything in config file
121-
- System notices
122-
- When something unexpected happens
123-
- Monitoring
124-
- Current processes
125-
- Cron jobs
126-
- Update mirrors
127-
- Repository health check
128-
- Check repository statistics
129-
- Clean up old archives
130-
- Environment variables
131-
- Command line options
132-
- Multi-language support ([21 languages](https://github.com/go-gitea/gitea/tree/main/options/locale))
133-
- [Mermaid](https://mermaidjs.github.io/) diagrams in Markdown
134-
- Math syntax in Markdown
135-
- Mail service
136-
- Notifications
137-
- Registration confirmation
138-
- Password reset
139-
- Reverse proxy support
140-
- Includes subpaths
141-
- Users
142-
- Profile
143-
- Name
144-
- Username
145-
- Email
146-
- Website
147-
- Join date
148-
- Followers and following
149-
- Organizations
150-
- Repositories
151-
- Activity
152-
- Starred repositories
153-
- Settings
154-
- Same as profile and more below
155-
- Keep email private
156-
- Avatar
157-
- Gravatar
158-
- Libravatar
159-
- Custom
160-
- Password
161-
- Multiple email addresses
162-
- SSH Keys
163-
- Connected applications
164-
- Two factor authentication
165-
- Linked OAuth2 sources
166-
- Delete account
167-
- Repositories
168-
- Clone with SSH/HTTP/HTTPS
169-
- Git LFS
170-
- Watch, Star, Fork
171-
- View watchers, stars, and forks
172-
- Code
173-
- Branch browser
174-
- Web based file upload and creation
175-
- Clone urls
176-
- Download
177-
- ZIP
178-
- TAR.GZ
179-
- Web based editor
180-
- Markdown editor
181-
- Plain text editor
182-
- Syntax highlighting
183-
- Diff preview
184-
- Preview
185-
- Choose where to commit to
186-
- View file history
187-
- Delete file
188-
- View raw
189-
- Issues
190-
- Issue templates
191-
- Milestones
192-
- Labels
193-
- Assign issues
194-
- Track time
195-
- Reactions
196-
- Filter
197-
- Open
198-
- Closed
199-
- Assigned person
200-
- Created by you
201-
- Mentioning you
202-
- Sort
203-
- Oldest
204-
- Last updated
205-
- Number of comments
206-
- Search
207-
- Comments
208-
- Attachments
209-
- Pull requests
210-
- Same features as issues
211-
- Commits
212-
- Commit graph
213-
- Commits by branch
214-
- Search
215-
- Search in all branches
216-
- View diff
217-
- View SHA
218-
- View author
219-
- Browse files in commit
220-
- Releases
221-
- Attachments
222-
- Title
223-
- Content
224-
- Delete
225-
- Mark as pre-release
226-
- Choose branch
227-
- Wiki
228-
- Import
229-
- Markdown editor
230-
- Settings
231-
- Options
232-
- Name
233-
- Description
234-
- Private/Public
235-
- Website
236-
- Wiki
237-
- Enabled/disabled
238-
- Internal/external
239-
- Issues
240-
- Enabled/disabled
241-
- Internal/external
242-
- External supports url rewriting for better integration
243-
- Enable/disable pull requests
244-
- Transfer repository
245-
- Delete wiki
246-
- Delete repository
247-
- Collaboration
248-
- Read/write/admin
249-
- Branches
250-
- Default branch
251-
- Branch protection
252-
- Webhooks
253-
- Git Hooks
254-
- Deploy keys
255-
- Package Registries
256-
- Composer
257-
- Conan
258-
- Container
259-
- Generic
260-
- Helm
261-
- Maven
262-
- NPM
263-
- Nuget
264-
- PyPI
265-
- RubyGems
28+
- Code Hosting: Gitea supports creating and managing repositories, browsing commit history and code files, reviewing and merging code submissions, managing collaborators, handling branches, and more. It also supports many common Git features such as tags, Cherry-pick, hooks, integrated collaboration tools, and more.
29+
30+
- Lightweight and Fast: One of Gitea's design goals is to be lightweight and fast in response. Unlike some large code hosting platforms, it remains lean, performing well in terms of speed, and is suitable for resource-limited server environments. Due to its lightweight design, Gitea has relatively low resource consumption and performs well in resource-constrained environments.
31+
32+
- Easy Deployment and Maintenance: It can be easily deployed on various servers without complex configurations or dependencies. This makes it convenient for individual developers or small teams to set up and manage their own Git services.
33+
34+
- Security: Gitea places a strong emphasis on security, offering features such as user permission management, access control lists, and more to ensure the security of code and data.
35+
36+
- Code Review: Code review supports both the Pull Request workflow and AGit workflow. Reviewers can browse code online and provide review comments or feedback. Submitters can receive review comments and respond or modify code online. Code reviews can help individuals and organizations enhance code quality.
37+
38+
- CI/CD: Gitea Actions supports CI/CD functionality, compatible with GitHub Actions. Users can write workflows in familiar YAML format and reuse a variety of existing Actions plugins. Actions plugins support downloading from any Git website.
39+
40+
- Project Management: Gitea tracks project requirements, features, and bugs through boards and issues. Issues support features like branches, tags, milestones, assignments, time tracking, due dates, dependencies, and more.
41+
42+
- Artifact Repository: Gitea supports over 20 different types of public or private software package management, including Cargo, Chef, Composer, Conan, Conda, Container, Helm, Maven, npm, NuGet, Pub, PyPI, RubyGems, Vagrant, and more.
43+
44+
- Open Source Community Support: Gitea is an open-source project based on the MIT license. It has an active open-source community that continuously develops and improves the platform. The project also actively welcomes community contributions, ensuring updates and innovation.
45+
46+
- Multilingual Support: Gitea provides interfaces in multiple languages, catering to users globally and promoting internationalization and localization.
47+
48+
Additional Features: For more detailed information, please refer to: https://docs.gitea.com/installation/comparison#general-features
26649

26750
## System Requirements
26851

0 commit comments

Comments
 (0)