Skip to content

Commit 3b505c9

Browse files
also fix reference deletion
0 parents  commit 3b505c9

File tree

6,173 files changed

+713485
-0
lines changed

Some content is hidden

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

6,173 files changed

+713485
-0
lines changed

.air.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
root = "."
2+
tmp_dir = ".air"
3+
4+
[build]
5+
pre_cmd = ["killall -9 gitea 2>/dev/null || true"] # kill off potential zombie processes from previous runs
6+
cmd = "make --no-print-directory backend"
7+
bin = "gitea"
8+
delay = 2000
9+
include_ext = ["go", "tmpl"]
10+
include_file = ["main.go"]
11+
include_dir = ["cmd", "models", "modules", "options", "routers", "services"]
12+
exclude_dir = [
13+
"models/fixtures",
14+
"models/migrations/fixtures",
15+
"modules/avatar/identicon/testdata",
16+
"modules/avatar/testdata",
17+
"modules/git/tests",
18+
"modules/migration/file_format_testdata",
19+
"routers/private/tests",
20+
"services/gitdiff/testdata",
21+
]
22+
exclude_regex = ["_test.go$", "_gen.go$"]
23+
stop_on_error = true
24+
25+
[log]
26+
main_only = true

.changelog.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# The full repository name
2+
repo: go-gitea/gitea
3+
4+
# Service type (gitea or github)
5+
service: github
6+
7+
# Base URL for Gitea instance if using gitea service type (optional)
8+
# Default: https://gitea.com
9+
base-url:
10+
11+
# Changelog groups and which labeled PRs to add to each group
12+
groups:
13+
-
14+
name: BREAKING
15+
labels:
16+
- pr/breaking
17+
-
18+
name: SECURITY
19+
labels:
20+
- topic/security
21+
-
22+
name: FEATURES
23+
labels:
24+
- type/feature
25+
-
26+
name: ENHANCEMENTS
27+
labels:
28+
- type/enhancement
29+
-
30+
name: PERFORMANCE
31+
labels:
32+
- performance/memory
33+
- performance/speed
34+
- performance/bigrepo
35+
- performance/cpu
36+
-
37+
name: BUGFIXES
38+
labels:
39+
- type/bug
40+
-
41+
name: API
42+
labels:
43+
- modifies/api
44+
-
45+
name: TESTING
46+
labels:
47+
- type/testing
48+
-
49+
name: BUILD
50+
labels:
51+
- topic/build
52+
- topic/code-linting
53+
-
54+
name: DOCS
55+
labels:
56+
- type/docs
57+
-
58+
name: MISC
59+
default: true
60+
61+
# regex indicating which labels to skip for the changelog
62+
skip-labels: skip-changelog|backport\/.+

.devcontainer/devcontainer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "Gitea DevContainer",
3+
"image": "mcr.microsoft.com/devcontainers/go:1.23-bookworm",
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.2.2": {},
10+
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
11+
"ghcr.io/devcontainers/features/python:1": {
12+
"version": "3.12"
13+
},
14+
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {}
15+
},
16+
"customizations": {
17+
"vscode": {
18+
"settings": {},
19+
// same extensions as Gitpod, should match /.gitpod.yml
20+
"extensions": [
21+
"editorconfig.editorconfig",
22+
"dbaeumer.vscode-eslint",
23+
"golang.go",
24+
"stylelint.vscode-stylelint",
25+
"DavidAnson.vscode-markdownlint",
26+
"Vue.volar",
27+
"ms-azuretools.vscode-docker",
28+
"vitest.explorer",
29+
"cweijan.vscode-database-client2",
30+
"GitHub.vscode-pull-request-github",
31+
"Azurite.azurite"
32+
]
33+
}
34+
},
35+
"portsAttributes": {
36+
"3000": {
37+
"label": "Gitea Web",
38+
"onAutoForward": "notify"
39+
}
40+
},
41+
"postCreateCommand": "make deps"
42+
}

.dockerignore

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
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+
/tests/integration/gitea-integration-*
66+
/tests/integration/indexers-*
67+
/tests/e2e/gitea-e2e-*
68+
/tests/e2e/indexers-*
69+
/tests/e2e/reports
70+
/tests/e2e/test-artifacts
71+
/tests/e2e/test-snapshots
72+
/tests/*.ini
73+
/node_modules
74+
/yarn.lock
75+
/yarn-error.log
76+
/npm-debug.log*
77+
/public/assets/js
78+
/public/assets/css
79+
/public/assets/fonts
80+
/public/assets/img/avatar
81+
/vendor
82+
/web_src/fomantic/node_modules
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
94+
/VERSION
95+
/.air
96+
/.go-licenses
97+
98+
# Files and folders that were previously generated
99+
/public/assets/img/webpack
100+
101+
# Snapcraft
102+
snap/.snapcraft/
103+
parts/
104+
stage/
105+
prime/
106+
*.snap
107+
*.snap-build
108+
*_source.tar.bz2
109+
.DS_Store
110+
111+
# Make evidence files
112+
/.make_evidence
113+
114+
# Manpage
115+
/man

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
tab_width = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.{go,tmpl,html}]
13+
indent_style = tab
14+
15+
[templates/custom/*.tmpl]
16+
insert_final_newline = false
17+
18+
[templates/swagger/v1_json.tmpl]
19+
indent_style = space
20+
21+
[templates/user/auth/oidc_wellknown.tmpl]
22+
indent_style = space
23+
24+
[Makefile]
25+
indent_style = tab
26+
27+
[*.svg]
28+
insert_final_newline = false

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

0 commit comments

Comments
 (0)