Skip to content

Commit ebd6917

Browse files
committed
Merge remote-tracking branch 'upstream/main'
* upstream/main: adapt README_{Country}.md stype name in localizedExtensions (go-gitea#21486) dump: Add option to skip index dirs (go-gitea#21501) Use recommended vscode configuration in gitpod environments (go-gitea#21537) Expand "Go to File" button again, fix 'Add File' margin (go-gitea#21543) Add yardenshoham to maintainers (go-gitea#21566) Refactor git command arguments and make all arguments to be safe to be used (go-gitea#21535) Update binding to fix bugs (go-gitea#21556) Link mentioned user in markdown only if they are visible to viewer (go-gitea#21554) Require authentication for OAuth token refresh (go-gitea#21421) CSS color enhancements (go-gitea#21534) Allow package version sorting (go-gitea#21453) Add link to user profile in markdown mention only if user exists (go-gitea#21533) Update milestone counters when issue is deleted (go-gitea#21459) Prevent Authorization header for presigned LFS urls (go-gitea#21531) Remove deleted repos from searchresult (go-gitea#21512) Remove unnecessary debug log (go-gitea#21536) Added check for disabled Packages (go-gitea#21540) Decouple HookTask from Repository (go-gitea#17940) Add color previews in markdown (go-gitea#21474) Fix generating compare link (go-gitea#21519)
2 parents 8c21404 + e1ce45e commit ebd6917

File tree

128 files changed

+1306
-736
lines changed

Some content is hidden

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

128 files changed

+1306
-736
lines changed

.gitpod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
tasks:
22
- name: Setup
33
init: |
4+
cp -r contrib/ide/vscode .vscode
45
make deps
56
make build
67
command: |

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ silentcode <[email protected]> (@silentcodeg)
4949
Wim <[email protected]> (@42wim)
5050
xinyu <[email protected]> (@penlinux)
5151
Jason Song <[email protected]> (@wolfogre)
52+
Yarden Shoham <[email protected]> (@yardenshoham)

cmd/dump.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ It can be used for backup and capture Gitea server image to send to maintainer`,
146146
Name: "skip-package-data",
147147
Usage: "Skip package data",
148148
},
149+
cli.BoolFlag{
150+
Name: "skip-index",
151+
Usage: "Skip bleve index data",
152+
},
149153
cli.GenericFlag{
150154
Name: "type",
151155
Value: outputTypeEnum,
@@ -327,6 +331,11 @@ func runDump(ctx *cli.Context) error {
327331
excludes = append(excludes, opts.ProviderConfig)
328332
}
329333

334+
if ctx.IsSet("skip-index") && ctx.Bool("skip-index") {
335+
excludes = append(excludes, setting.Indexer.RepoPath)
336+
excludes = append(excludes, setting.Indexer.IssuePath)
337+
}
338+
330339
excludes = append(excludes, setting.RepoRootPath)
331340
excludes = append(excludes, setting.LFS.Path)
332341
excludes = append(excludes, setting.Attachment.Path)

contrib/pr/checkout.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333
"code.gitea.io/gitea/modules/setting"
3434
"code.gitea.io/gitea/modules/util"
3535
"code.gitea.io/gitea/routers"
36+
markup_service "code.gitea.io/gitea/services/markup"
3637

3738
"github.com/go-git/go-git/v5"
3839
"github.com/go-git/go-git/v5/config"
@@ -112,7 +113,7 @@ func runPR() {
112113
log.Printf("[PR] Setting up router\n")
113114
// routers.GlobalInit()
114115
external.RegisterRenderers()
115-
markup.Init()
116+
markup.Init(markup_service.ProcessorHelper())
116117
c := routers.NormalRoutes(graceful.GetManager().HammerContext())
117118

118119
log.Printf("[PR] Ready for testing !\n")

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
code.gitea.io/gitea-vet v0.2.2-0.20220122151748-48ebc902541b
77
code.gitea.io/sdk/gitea v0.15.1
88
codeberg.org/gusted/mcaptcha v0.0.0-20220723083913-4f3072e1d570
9-
gitea.com/go-chi/binding v0.0.0-20220309004920-114340dabecb
9+
gitea.com/go-chi/binding v0.0.0-20221013104517-b29891619681
1010
gitea.com/go-chi/cache v0.2.0
1111
gitea.com/go-chi/captcha v0.0.0-20211013065431-70641c1a35d5
1212
gitea.com/go-chi/session v0.0.0-20211218221615-e3605d8b28b8

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ contrib.go.opencensus.io/resource v0.1.1/go.mod h1:F361eGI91LCmW1I/Saf+rX0+OFcig
8181
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
8282
git.sr.ht/~mariusor/go-xsd-duration v0.0.0-20220703122237-02e73435a078 h1:cliQ4HHsCo6xi2oWZYKWW4bly/Ory9FuTpFPRxj/mAg=
8383
git.sr.ht/~mariusor/go-xsd-duration v0.0.0-20220703122237-02e73435a078/go.mod h1:g/V2Hjas6Z1UHUp4yIx6bATpNzJ7DYtD0FG3+xARWxs=
84-
gitea.com/go-chi/binding v0.0.0-20220309004920-114340dabecb h1:Yy0Bxzc8R2wxiwXoG/rECGplJUSpXqCsog9PuJFgiHs=
85-
gitea.com/go-chi/binding v0.0.0-20220309004920-114340dabecb/go.mod h1:77TZu701zMXWJFvB8gvTbQ92zQ3DQq/H7l5wAEjQRKc=
84+
gitea.com/go-chi/binding v0.0.0-20221013104517-b29891619681 h1:MMSPgnVULVwV9kEBgvyEUhC9v/uviZ55hPJEMjpbNR4=
85+
gitea.com/go-chi/binding v0.0.0-20221013104517-b29891619681/go.mod h1:77TZu701zMXWJFvB8gvTbQ92zQ3DQq/H7l5wAEjQRKc=
8686
gitea.com/go-chi/cache v0.0.0-20210110083709-82c4c9ce2d5e/go.mod h1:k2V/gPDEtXGjjMGuBJiapffAXTv76H4snSmlJRLUhH0=
8787
gitea.com/go-chi/cache v0.2.0 h1:E0npuTfDW6CT1yD8NMDVc1SK6IeRjfmRL2zlEsCEd7w=
8888
gitea.com/go-chi/cache v0.2.0/go.mod h1:iQlVK2aKTZ/rE9UcHyz9pQWGvdP9i1eI2spOpzgCrtE=

models/fixtures/hook_task.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
-
22
id: 1
3-
repo_id: 1
43
hook_id: 1
54
uuid: uuid1
65
is_delivered: true
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# type Milestone struct {
2+
# ID int64 `xorm:"pk autoincr"`
3+
# IsClosed bool
4+
# NumIssues int
5+
# NumClosedIssues int
6+
# Completeness int // Percentage(1-100).
7+
# }
8+
-
9+
id: 1
10+
is_closed: false
11+
num_issues: 3
12+
num_closed_issues: 1
13+
completeness: 33
14+
-
15+
id: 2
16+
is_closed: true
17+
num_issues: 5
18+
num_closed_issues: 5
19+
completeness: 100
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# type Issue struct {
2+
# ID int64 `xorm:"pk autoincr"`
3+
# RepoID int64 `xorm:"INDEX UNIQUE(repo_index)"`
4+
# Index int64 `xorm:"UNIQUE(repo_index)"` // Index in one repository.
5+
# MilestoneID int64 `xorm:"INDEX"`
6+
# IsClosed bool `xorm:"INDEX"`
7+
# }
8+
-
9+
id: 1
10+
repo_id: 1
11+
index: 1
12+
milestone_id: 1
13+
is_closed: false
14+
-
15+
id: 2
16+
repo_id: 1
17+
index: 2
18+
milestone_id: 1
19+
is_closed: true
20+
-
21+
id: 4
22+
repo_id: 1
23+
index: 3
24+
milestone_id: 1
25+
is_closed: false
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# type Milestone struct {
2+
# ID int64 `xorm:"pk autoincr"`
3+
# IsClosed bool
4+
# NumIssues int
5+
# NumClosedIssues int
6+
# Completeness int // Percentage(1-100).
7+
# }
8+
-
9+
id: 1
10+
is_closed: false
11+
num_issues: 4
12+
num_closed_issues: 2
13+
completeness: 50
14+
-
15+
id: 2
16+
is_closed: true
17+
num_issues: 5
18+
num_closed_issues: 5
19+
completeness: 100

0 commit comments

Comments
 (0)