Skip to content

Commit d2d2479

Browse files
committed
Merge remote-tracking branch 'origin/master' into ensure-user-email-is-stored-in-email-address-table
2 parents 77cd657 + 946bbbe commit d2d2479

File tree

12 files changed

+62694
-13
lines changed

12 files changed

+62694
-13
lines changed

.gitignore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,17 @@ coverage.all
8080
/public/css
8181
/public/fonts
8282
/public/img/webpack
83-
/web_src/fomantic/build
83+
/web_src/fomantic/build/*
84+
!/web_src/fomantic/build/semantic.js
85+
!/web_src/fomantic/build/semantic.css
86+
!/web_src/fomantic/build/themes
87+
/web_src/fomantic/build/themes/*
88+
!/web_src/fomantic/build/themes/default
89+
/web_src/fomantic/build/themes/default/assets/*
90+
!/web_src/fomantic/build/themes/default/assets/fonts
91+
/web_src/fomantic/build/themes/default/assets/fonts/*
92+
!/web_src/fomantic/build/themes/default/assets/fonts/icons.woff2
93+
!/web_src/fomantic/build/themes/default/assets/fonts/outline-icons.woff2
8494
/VERSION
8595
/.air
8696

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ node-check:
210210

211211
.PHONY: clean-all
212212
clean-all: clean
213-
rm -rf $(WEBPACK_DEST_ENTRIES) $(FOMANTIC_DEST_DIR)
213+
rm -rf $(WEBPACK_DEST_ENTRIES)
214214

215215
.PHONY: clean
216216
clean:
@@ -323,7 +323,7 @@ watch:
323323
bash tools/watch.sh
324324

325325
.PHONY: watch-frontend
326-
watch-frontend: node-check $(FOMANTIC_DEST) node_modules
326+
watch-frontend: node-check node_modules
327327
rm -rf $(WEBPACK_DEST_ENTRIES)
328328
NODE_ENV=development npx webpack --hide-modules --display-entrypoints=false --watch --progress
329329

@@ -541,7 +541,7 @@ install: $(wildcard *.go)
541541
build: frontend backend
542542

543543
.PHONY: frontend
544-
frontend: node-check $(FOMANTIC_DEST) $(WEBPACK_DEST)
544+
frontend: node-check $(WEBPACK_DEST)
545545

546546
.PHONY: backend
547547
backend: go-check generate $(EXECUTABLE)

contrib/ide/vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"type": "go",
2020
"request": "launch",
2121
"mode": "debug",
22-
"buildFlags": "-tags=\"sqlite sqlite_unlock_notify\"",
22+
"buildFlags": "-tags='sqlite sqlite_unlock_notify'",
2323
"port": 2345,
2424
"host": "127.0.0.1",
2525
"program": "${workspaceRoot}/main.go",

contrib/ide/vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"go.buildTags": "'sqlite sqlite_unlock_notify'",
3+
"go.testFlags": ["-v"]
4+
}

docs/content/doc/features/webhooks.en-us.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ All event pushes are POST requests. The methods currently supported are:
3030

3131
### Event information
3232

33+
**WARNING**: The `secret` field in the payload is deprecated as of Gitea 1.13.0 and will be removed in 1.14.0: https://github.com/go-gitea/gitea/issues/11755
34+
3335
The following is an example of event information that will be sent by Gitea to
3436
a Payload URL:
3537

modules/migrations/gitea_downloader.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (f *GiteaDownloaderFactory) New(ctx context.Context, opts base.MigrateOptio
4747

4848
path := strings.Split(repoNameSpace, "/")
4949
if len(path) < 2 {
50-
return nil, fmt.Errorf("invalid path")
50+
return nil, fmt.Errorf("invalid path: %s", repoNameSpace)
5151
}
5252

5353
repoPath := strings.Join(path[len(path)-2:], "/")
@@ -87,7 +87,7 @@ func NewGiteaDownloader(ctx context.Context, baseURL, repoPath, username, passwo
8787
gitea_sdk.SetContext(ctx),
8888
)
8989
if err != nil {
90-
log.Error(fmt.Sprintf("NewGiteaDownloader: %s", err.Error()))
90+
log.Error(fmt.Sprintf("Failed to create NewGiteaDownloader for: %s. Error: %v", baseURL, err))
9191
return nil, err
9292
}
9393

@@ -395,7 +395,7 @@ func (g *GiteaDownloader) GetIssues(page, perPage int) ([]*base.Issue, bool, err
395395

396396
reactions, err := g.getIssueReactions(issue.Index)
397397
if err != nil {
398-
return nil, false, fmt.Errorf("error while loading reactions: %v", err)
398+
return nil, false, fmt.Errorf("error while loading reactions for issue #%d. Error: %v", issue.Index, err)
399399
}
400400

401401
var assignees []string
@@ -446,13 +446,13 @@ func (g *GiteaDownloader) GetComments(index int64) ([]*base.Comment, error) {
446446
// Page: i,
447447
}})
448448
if err != nil {
449-
return nil, fmt.Errorf("error while listing comments: %v", err)
449+
return nil, fmt.Errorf("error while listing comments for issue #%d. Error: %v", index, err)
450450
}
451451

452452
for _, comment := range comments {
453453
reactions, err := g.getCommentReactions(comment.ID)
454454
if err != nil {
455-
return nil, fmt.Errorf("error while listing comment creactions: %v", err)
455+
return nil, fmt.Errorf("error while listing reactions for comment %d in issue #%d. Error: %v", comment.ID, index, err)
456456
}
457457

458458
allComments = append(allComments, &base.Comment{
@@ -490,7 +490,7 @@ func (g *GiteaDownloader) GetPullRequests(page, perPage int) ([]*base.PullReques
490490
State: gitea_sdk.StateAll,
491491
})
492492
if err != nil {
493-
return nil, false, fmt.Errorf("error while listing repos: %v", err)
493+
return nil, false, fmt.Errorf("error while listing pull requests (page: %d, pagesize: %d). Error: %v", page, perPage, err)
494494
}
495495
for _, pr := range prs {
496496
var milestone string
@@ -521,7 +521,7 @@ func (g *GiteaDownloader) GetPullRequests(page, perPage int) ([]*base.PullReques
521521
if headSHA == "" {
522522
headCommit, _, err := g.client.GetSingleCommit(g.repoOwner, g.repoName, url.PathEscape(pr.Head.Ref))
523523
if err != nil {
524-
return nil, false, fmt.Errorf("error while resolving git ref: %v", err)
524+
return nil, false, fmt.Errorf("error while resolving head git ref: %s for pull #%d. Error: %v", pr.Head.Ref, pr.Index, err)
525525
}
526526
headSHA = headCommit.SHA
527527
}
@@ -534,7 +534,7 @@ func (g *GiteaDownloader) GetPullRequests(page, perPage int) ([]*base.PullReques
534534

535535
reactions, err := g.getIssueReactions(pr.Index)
536536
if err != nil {
537-
return nil, false, fmt.Errorf("error while loading reactions: %v", err)
537+
return nil, false, fmt.Errorf("error while loading reactions for pull #%d. Error: %v", pr.Index, err)
538538
}
539539

540540
var assignees []string

modules/migrations/gitea_uploader.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
"code.gitea.io/gitea/modules/storage"
2929
"code.gitea.io/gitea/modules/structs"
3030
"code.gitea.io/gitea/modules/timeutil"
31+
"code.gitea.io/gitea/services/pull"
3132

3233
gouuid "github.com/google/uuid"
3334
)
@@ -524,6 +525,7 @@ func (g *GiteaLocalUploader) CreatePullRequests(prs ...*base.PullRequest) error
524525
}
525526
for _, pr := range gprs {
526527
g.issues.Store(pr.Issue.Index, pr.Issue.ID)
528+
pull.AddToTaskQueue(pr)
527529
}
528530
return nil
529531
}

options/locale/locale_es-ES.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,11 @@ issues.label_templates.info=No hay etiquetas existentes todavía. Crea una etiqu
978978
issues.label_templates.helper=Seleccionar un conjunto de etiquetas
979979
issues.label_templates.use=Utilice la etiqueta
980980
issues.label_templates.fail_to_load_file=Error al cargar el archivo de plantilla de etiqueta '%s': %v
981+
issues.add_label=añadió la etiqueta %s %s
982+
issues.add_labels=añadió las etiquetas %s %s
983+
issues.remove_label=eliminó la etiqueta %s %s
984+
issues.remove_labels=eliminó las etiquetas %s %s
985+
issues.add_remove_labels=ha añadido %s y eliminado %s etiquetas %s
981986
issues.add_milestone_at=`ha añadido esto al hito <b>%s</b> %s`
982987
issues.add_project_at=`añadió esto al proyecto <b>%s</b> %s`
983988
issues.change_milestone_at=`modificó el hito de <b>%s</b> a <b>%s</b> %s`

0 commit comments

Comments
 (0)