Skip to content

Commit 4defb8f

Browse files
authored
Merge branch 'main' into copy2
2 parents a435d64 + 690272d commit 4defb8f

File tree

7 files changed

+22
-6
lines changed

7 files changed

+22
-6
lines changed

cmd/web.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ func runWeb(ctx *cli.Context) error {
148148
go func() {
149149
http.DefaultServeMux.Handle("/debug/fgprof", fgprof.Handler())
150150
_, _, finished := process.GetManager().AddTypedContext(context.Background(), "Web: PProf Server", process.SystemProcessType, true)
151+
// The pprof server is for debug purpose only, it shouldn't be exposed on public network. At the moment it's not worth to introduce a configurable option for it.
151152
log.Info("Starting pprof server on localhost:6060")
152-
log.Info("%v", http.ListenAndServe("localhost:6060", nil))
153+
log.Info("Stopped pprof server: %v", http.ListenAndServe("localhost:6060", nil))
153154
finished()
154155
}()
155156
}

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
300300
- `APP_DATA_PATH`: **data** (**/data/gitea** on docker): Default path for application data.
301301
- `STATIC_CACHE_TIME`: **6h**: Web browser cache time for static resources on `custom/`, `public/` and all uploaded avatars. Note that this cache is disabled when `RUN_MODE` is "dev".
302302
- `ENABLE_GZIP`: **false**: Enable gzip compression for runtime-generated content, static resources excluded.
303-
- `ENABLE_PPROF`: **false**: Application profiling (memory and cpu). For "web" command it listens on localhost:6060. For "serv" command it dumps to disk at `PPROF_DATA_PATH` as `(cpuprofile|memprofile)_<username>_<temporary id>`
303+
- `ENABLE_PPROF`: **false**: Application profiling (memory and cpu). For "web" command it listens on `localhost:6060`. For "serv" command it dumps to disk at `PPROF_DATA_PATH` as `(cpuprofile|memprofile)_<username>_<temporary id>`
304304
- `PPROF_DATA_PATH`: **data/tmp/pprof**: `PPROF_DATA_PATH`, use an absolute path when you start Gitea as service
305305
- `LANDING_PAGE`: **home**: Landing page for unauthenticated users \[home, explore, organizations, login, **custom**\]. Where custom would instead be any URL such as "/org/repo" or even `https://anotherwebsite.com`
306306
- `LFS_START_SERVER`: **false**: Enables Git LFS support.

docs/content/doc/help/seek-help.en-us.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ menu:
4444
* This will greatly improve the chance that the root of the issue can be quickly discovered and resolved.
4545
5. If you meet slow/hanging/deadlock problems, please report the stack trace when the problem occurs:
4646
1. Enable pprof in `app.ini` and restart Gitea
47-
```
47+
```ini
4848
[server]
4949
ENABLE_PPROF = true
5050
```
51-
2. Trigger the bug, when Gitea gets stuck, use curl or browser to visit: `http://127.0.0.1:6060/debug/pprof/goroutine?debug=1` (IP is `127.0.0.1` and port is `6060`)
52-
3. Report the output (the stack trace doesn't contain sensitive data)
51+
2. Trigger the bug, when Gitea gets stuck, use curl or browser to visit: `http://127.0.0.1:6060/debug/pprof/goroutine?debug=1` (IP must be `127.0.0.1` and port must be `6060`).
52+
3. If you are using Docker, please use `docker exec -it <container-name> curl "http://127.0.0.1:6060/debug/pprof/goroutine?debug=1"`.
53+
4. Report the output (the stack trace doesn't contain sensitive data)
5354
5455
## Bugs
5556

modules/packages/rubygems/metadata.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ type gemspec struct {
8080
VersionRequirements requirement `yaml:"version_requirements"`
8181
} `yaml:"dependencies"`
8282
Description string `yaml:"description"`
83-
Email string `yaml:"email"`
8483
Executables []string `yaml:"executables"`
8584
Extensions []interface{} `yaml:"extensions"`
8685
ExtraRdocFiles []string `yaml:"extra_rdoc_files"`

options/locale/locale_ja-JP.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,7 @@ issues.due_date_form_remove=削除
14201420
issues.due_date_not_writer=イシューの期日を変更するには、リポジトリへの書き込み権限が必要です。
14211421
issues.due_date_not_set=期日は未設定です。
14221422
issues.due_date_added=が期日 %s を追加 %s
1423+
issues.due_date_modified=が期日を %[2]s から %[1]s に変更 %[3]s
14231424
issues.due_date_remove=が期日 %s を削除 %s
14241425
issues.due_date_overdue=期日は過ぎています
14251426
issues.due_date_invalid=期日が正しくないか範囲を超えています。 'yyyy-mm-dd' の形式で入力してください。

routers/web/repo/compare.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,19 @@ func CompareDiff(ctx *context.Context) {
786786
ctx.Data["IsDiffCompare"] = true
787787
ctx.Data["RequireTribute"] = true
788788
setTemplateIfExists(ctx, pullRequestTemplateKey, nil, pullRequestTemplateCandidates)
789+
790+
// If a template content is set, prepend the "content". In this case that's only
791+
// applicable if you have one commit to compare and that commit has a message.
792+
// In that case the commit message will be prepend to the template body.
793+
if templateContent, ok := ctx.Data[pullRequestTemplateKey].(string); ok && templateContent != "" {
794+
if content, ok := ctx.Data["content"].(string); ok && content != "" {
795+
// Re-use the same key as that's priortized over the "content" key.
796+
// Add two new lines between the content to ensure there's always at least
797+
// one empty line between them.
798+
ctx.Data[pullRequestTemplateKey] = content + "\n\n" + templateContent
799+
}
800+
}
801+
789802
ctx.Data["IsAttachmentEnabled"] = setting.Attachment.Enabled
790803
upload.AddUploadContext(ctx, "comment")
791804

routers/web/user/home.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) {
591591
LabelIDs: opts.LabelIDs,
592592
Org: org,
593593
Team: team,
594+
RepoCond: opts.RepoCond,
594595
}
595596

596597
issueStats, err = issues_model.GetUserIssueStats(statsOpts)

0 commit comments

Comments
 (0)