Skip to content

Commit 146aa02

Browse files
authored
Merge branch 'main' into fix-submit-button-refresh-in-fork-repo-page
2 parents 2a5a88c + d67e406 commit 146aa02

File tree

853 files changed

+8725
-13491
lines changed

Some content is hidden

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

853 files changed

+8725
-13491
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ steps:
726726

727727
# TODO: We should probably build all dependencies into a test image
728728
- name: test-e2e
729-
image: mcr.microsoft.com/playwright:v1.29.2-focal
729+
image: mcr.microsoft.com/playwright:v1.32.1-focal
730730
commands:
731731
- curl -sLO https://go.dev/dl/go1.20.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.20.linux-amd64.tar.gz
732732
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea

.eslintrc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ rules:
164164
jquery/no-parse-html: [2]
165165
jquery/no-prop: [0]
166166
jquery/no-proxy: [2]
167-
jquery/no-ready: [0]
167+
jquery/no-ready: [2]
168168
jquery/no-serialize: [2]
169169
jquery/no-show: [2]
170170
jquery/no-size: [2]

.gitpod.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ tasks:
2424
make watch-frontend
2525
openMode: split-right
2626
- name: Run docs
27-
before: sudo bash -c "$(grep 'https://github.com/gohugoio/hugo/releases/download' Makefile | tr -d '\')" # install hugo
28-
command: cd docs && make clean update && hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
27+
command: |
28+
gp sync-await setup
29+
cd docs
30+
make clean update
31+
hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
2932
openMode: split-right
3033

3134
vscode:

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ fund=false
33
update-notifier=false
44
package-lock=true
55
save-exact=true
6+
lockfile-version=3

.stylelintrc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ rules:
8888
no-invalid-position-at-import-rule: null
8989
no-irregular-whitespace: true
9090
no-unknown-animations: null
91+
no-unknown-custom-properties: null
9192
number-max-precision: null
9293
property-allowed-list: null
9394
property-disallowed-list: null

CHANGELOG.md

Lines changed: 350 additions & 0 deletions
Large diffs are not rendered by default.

MAINTAINERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Kees de Vries <[email protected]> (@Bwko)
55
Kim Carlbäcker <[email protected]> (@bkcsoft)
66
LefsFlare <[email protected]> (@LefsFlarey)
77
Lunny Xiao <[email protected]> (@lunny)
8-
Matthias Loibl <[email protected]> (@metalmatze)
98
Rachid Zarouali <[email protected]> (@xinity)
109
Rémy Boulanouar <[email protected]> (@DblK)
1110
Sandro Santilli <[email protected]> (@strk)
@@ -45,7 +44,7 @@ Jimmy Praet <[email protected]> (@jpraet)
4544
Leon Hofmeister <[email protected]> (@delvh)
4645
Wim <[email protected]> (@42wim)
4746
Jason Song <[email protected]> (@wolfogre)
48-
Yarden Shoham <hrsi88@gmail.com> (@yardenshoham)
47+
Yarden Shoham <git@yardenshoham.com> (@yardenshoham)
4948
Yu Tian <[email protected]> (@Zettat123)
5049
Eddie Yang <[email protected]> (@yp05327)
5150
Dong Ge <[email protected]> (@sillyguodong)

Makefile

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ ifeq ($(RACE_ENABLED),true)
7777
endif
7878

7979
STORED_VERSION_FILE := VERSION
80+
HUGO_VERSION ?= 0.111.3
8081

8182
ifneq ($(DRONE_TAG),)
8283
VERSION ?= $(subst v,,$(DRONE_TAG))
@@ -130,7 +131,7 @@ TEST_TAGS ?= sqlite sqlite_unlock_notify
130131

131132
TAR_EXCLUDES := .git data indexers queues log node_modules $(EXECUTABLE) $(FOMANTIC_WORK_DIR)/node_modules $(DIST) $(MAKE_EVIDENCE_DIR) $(AIR_TMP_DIR) $(GO_LICENSE_TMP_DIR)
132133

133-
GO_DIRS := cmd tests models modules routers build services tools
134+
GO_DIRS := build cmd models modules routers services tests
134135
WEB_DIRS := web_src/js web_src/css
135136

136137
GO_SOURCES := $(wildcard *.go)
@@ -188,6 +189,7 @@ help:
188189
@echo " - clean delete backend and integration files"
189190
@echo " - clean-all delete backend, frontend and integration files"
190191
@echo " - deps install dependencies"
192+
@echo " - deps-docs install docs dependencies"
191193
@echo " - deps-frontend install frontend dependencies"
192194
@echo " - deps-backend install backend dependencies"
193195
@echo " - deps-tools install tool dependencies"
@@ -217,7 +219,6 @@ help:
217219
@echo " - tidy run go mod tidy"
218220
@echo " - test[\#TestSpecificName] run unit test"
219221
@echo " - test-sqlite[\#TestSpecificName] run integration test for sqlite"
220-
@echo " - pr#<index> build and start gitea from a PR with integration test data loaded"
221222

222223
.PHONY: go-check
223224
go-check:
@@ -273,7 +274,7 @@ fmt:
273274

274275
.PHONY: fmt-check
275276
fmt-check: fmt
276-
@diff=$$(git diff $(GO_SOURCES) templates $(WEB_DIRS)); \
277+
@diff=$$(git diff --color=always $(GO_SOURCES) templates $(WEB_DIRS)); \
277278
if [ -n "$$diff" ]; then \
278279
echo "Please run 'make fmt' and commit the result:"; \
279280
echo "$${diff}"; \
@@ -309,7 +310,7 @@ $(SWAGGER_SPEC): $(GO_SOURCES_NO_BINDATA)
309310

310311
.PHONY: swagger-check
311312
swagger-check: generate-swagger
312-
@diff=$$(git diff '$(SWAGGER_SPEC)'); \
313+
@diff=$$(git diff --color=always '$(SWAGGER_SPEC)'); \
313314
if [ -n "$$diff" ]; then \
314315
echo "Please run 'make generate-swagger' and commit the result:"; \
315316
echo "$${diff}"; \
@@ -351,7 +352,7 @@ lint-backend: golangci-lint vet editorconfig-checker
351352

352353
.PHONY: watch
353354
watch:
354-
bash tools/watch.sh
355+
bash build/watch.sh
355356

356357
.PHONY: watch-frontend
357358
watch-frontend: node-check node_modules
@@ -414,7 +415,7 @@ vendor: go.mod go.sum
414415

415416
.PHONY: tidy-check
416417
tidy-check: tidy
417-
@diff=$$(git diff go.mod go.sum $(GO_LICENSE_FILE)); \
418+
@diff=$$(git diff --color=always go.mod go.sum $(GO_LICENSE_FILE)); \
418419
if [ -n "$$diff" ]; then \
419420
echo "Please run 'make tidy' and commit the result:"; \
420421
echo "$${diff}"; \
@@ -815,14 +816,17 @@ release-docs: | $(DIST_DIRS) docs
815816
tar -czf $(DIST)/release/gitea-docs-$(VERSION).tar.gz -C ./docs/public .
816817

817818
.PHONY: docs
818-
docs:
819+
docs: deps-docs
820+
cd docs; make trans-copy clean build-offline;
821+
822+
.PHONY: deps-docs
823+
deps-docs:
819824
@hash hugo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
820-
curl -sL https://github.com/gohugoio/hugo/releases/download/v0.74.3/hugo_0.74.3_Linux-64bit.tar.gz | tar zxf - -C /tmp && mv /tmp/hugo /usr/bin/hugo && chmod +x /usr/bin/hugo; \
825+
curl -sL https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_$(HUGO_VERSION)_Linux-64bit.tar.gz | tar zxf - -C /tmp && mkdir -p ~/go/bin && mv /tmp/hugo ~/go/bin/hugo && chmod +x ~/go/bin/hugo; \
821826
fi
822-
cd docs; make trans-copy clean build-offline;
823827

824828
.PHONY: deps
825-
deps: deps-frontend deps-backend deps-tools
829+
deps: deps-frontend deps-backend deps-tools deps-docs
826830

827831
.PHONY: deps-frontend
828832
deps-frontend: node_modules
@@ -885,7 +889,7 @@ svg: node-check | node_modules
885889
.PHONY: svg-check
886890
svg-check: svg
887891
@git add $(SVG_DEST_DIR)
888-
@diff=$$(git diff --cached $(SVG_DEST_DIR)); \
892+
@diff=$$(git diff --color=always --cached $(SVG_DEST_DIR)); \
889893
if [ -n "$$diff" ]; then \
890894
echo "Please run 'make svg' and 'git add $(SVG_DEST_DIR)' and commit the result:"; \
891895
echo "$${diff}"; \
@@ -895,7 +899,7 @@ svg-check: svg
895899
.PHONY: lockfile-check
896900
lockfile-check:
897901
npm install --package-lock-only
898-
@diff=$$(git diff package-lock.json); \
902+
@diff=$$(git diff --color=always package-lock.json); \
899903
if [ -n "$$diff" ]; then \
900904
echo "package-lock.json is inconsistent with package.json"; \
901905
echo "Please run 'npm install --package-lock-only' and commit the result:"; \
@@ -934,10 +938,6 @@ generate-manpage:
934938
@gzip -9 man/man1/gitea.1 && echo man/man1/gitea.1.gz created
935939
@#TODO A small script that formats config-cheat-sheet.en-us.md nicely for use as a config man page
936940

937-
.PHONY: pr\#%
938-
pr\#%: clean-all
939-
$(GO) run contrib/pr/checkout.go $*
940-
941941
.PHONY: golangci-lint
942942
golangci-lint:
943943
$(GO) run $(GOLANGCI_LINT_PACKAGE) run

0 commit comments

Comments
 (0)