Skip to content

Commit 6ee6ef7

Browse files
authored
Merge branch 'main' into main
2 parents a467a2b + c28e29f commit 6ee6ef7

File tree

5,822 files changed

+289195
-320368
lines changed

Some content is hidden

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

5,822 files changed

+289195
-320368
lines changed

.air.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ root = "."
22
tmp_dir = ".air"
33

44
[build]
5-
cmd = "make backend"
5+
cmd = "make --no-print-directory backend"
66
bin = "gitea"
7+
delay = 1000
78
include_ext = ["go", "tmpl"]
8-
exclude_dir = ["modules/git/tests", "services/gitdiff/testdata", "modules/avatar/testdata"]
9-
include_dir = ["cmd", "models", "modules", "options", "routers", "services", "templates"]
10-
exclude_regex = ["_test.go$"]
9+
include_file = ["main.go"]
10+
include_dir = ["cmd", "models", "modules", "options", "routers", "services"]
11+
exclude_dir = ["modules/git/tests", "services/gitdiff/testdata", "modules/avatar/testdata", "models/fixtures", "models/migrations/fixtures", "modules/migration/file_format_testdata", "modules/avatar/identicon/testdata"]
12+
exclude_regex = ["_test.go$", "_gen.go$"]
13+
stop_on_error = true

.devcontainer/devcontainer.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "Gitea DevContainer",
3+
"image": "mcr.microsoft.com/devcontainers/go:1.20-bullseye",
4+
"features": {
5+
// installs nodejs into container
6+
"ghcr.io/devcontainers/features/node:1": {
7+
"version":"20"
8+
},
9+
"ghcr.io/devcontainers/features/git-lfs:1.1.0": {},
10+
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
11+
"ghcr.io/devcontainers/features/python:1": {}
12+
},
13+
"customizations": {
14+
"vscode": {
15+
"settings": {},
16+
// same extensions as Gitpod, should match /.gitpod.yml
17+
"extensions": [
18+
"editorconfig.editorconfig",
19+
"dbaeumer.vscode-eslint",
20+
"golang.go",
21+
"stylelint.vscode-stylelint",
22+
"DavidAnson.vscode-markdownlint",
23+
"Vue.volar",
24+
"ms-azuretools.vscode-docker",
25+
"zixuanchen.vitest-explorer",
26+
"qwtel.sqlite-viewer",
27+
"GitHub.vscode-pull-request-github"
28+
]
29+
}
30+
},
31+
"portsAttributes": {
32+
"3000": {
33+
"label": "Gitea Web",
34+
"onAutoForward": "notify"
35+
}
36+
},
37+
"postCreateCommand": "make deps"
38+
}

.dockerignore

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# IntelliJ
11+
.idea
12+
# Goland's output filename can not be set manually
13+
/go_build_*
14+
15+
# MS VSCode
16+
.vscode
17+
__debug_bin
18+
19+
# Architecture specific extensions/prefixes
20+
*.[568vq]
21+
[568vq].out
22+
23+
*.cgo1.go
24+
*.cgo2.c
25+
_cgo_defun.c
26+
_cgo_gotypes.go
27+
_cgo_export.*
28+
29+
_testmain.go
30+
31+
*.exe
32+
*.test
33+
*.prof
34+
35+
*coverage.out
36+
coverage.all
37+
cpu.out
38+
39+
/modules/migration/bindata.go
40+
/modules/migration/bindata.go.hash
41+
/modules/options/bindata.go
42+
/modules/options/bindata.go.hash
43+
/modules/public/bindata.go
44+
/modules/public/bindata.go.hash
45+
/modules/templates/bindata.go
46+
/modules/templates/bindata.go.hash
47+
48+
*.db
49+
*.log
50+
51+
/gitea
52+
/gitea-vet
53+
/debug
54+
/integrations.test
55+
56+
/bin
57+
/dist
58+
/custom/*
59+
!/custom/conf
60+
/custom/conf/*
61+
!/custom/conf/app.example.ini
62+
/data
63+
/indexers
64+
/log
65+
/public/img/avatar
66+
/tests/integration/gitea-integration-*
67+
/tests/integration/indexers-*
68+
/tests/e2e/gitea-e2e-*
69+
/tests/e2e/indexers-*
70+
/tests/e2e/reports
71+
/tests/e2e/test-artifacts
72+
/tests/e2e/test-snapshots
73+
/tests/*.ini
74+
/node_modules
75+
/yarn.lock
76+
/yarn-error.log
77+
/npm-debug.log*
78+
/public/assets/js
79+
/public/assets/css
80+
/public/assets/fonts
81+
/public/assets/img/webpack
82+
/vendor
83+
/web_src/fomantic/node_modules
84+
/web_src/fomantic/build/*
85+
!/web_src/fomantic/build/semantic.js
86+
!/web_src/fomantic/build/semantic.css
87+
!/web_src/fomantic/build/themes
88+
/web_src/fomantic/build/themes/*
89+
!/web_src/fomantic/build/themes/default
90+
/web_src/fomantic/build/themes/default/assets/*
91+
!/web_src/fomantic/build/themes/default/assets/fonts
92+
/web_src/fomantic/build/themes/default/assets/fonts/*
93+
!/web_src/fomantic/build/themes/default/assets/fonts/icons.woff2
94+
!/web_src/fomantic/build/themes/default/assets/fonts/outline-icons.woff2
95+
/VERSION
96+
/.air
97+
/.go-licenses
98+
99+
# Snapcraft
100+
snap/.snapcraft/
101+
parts/
102+
stage/
103+
prime/
104+
*.snap
105+
*.snap-build
106+
*_source.tar.bz2
107+
.DS_Store
108+
109+
# Make evidence files
110+
/.make_evidence
111+
112+
# Manpage
113+
/man

0 commit comments

Comments
 (0)