Skip to content

Commit e301b44

Browse files
authored
Merge branch 'main' into releaselink
2 parents 23b3612 + e03e827 commit e301b44

File tree

418 files changed

+5417
-3463
lines changed

Some content is hidden

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

418 files changed

+5417
-3463
lines changed

.drone.yml

+47-17
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ trigger:
1212
- pull_request
1313
paths:
1414
exclude:
15-
- docs/**
15+
- "docs/**"
16+
- "*.md"
1617

1718
volumes:
1819
- name: deps
@@ -181,7 +182,7 @@ trigger:
181182
- pull_request
182183
paths:
183184
exclude:
184-
- docs/**
185+
- "docs/**"
185186

186187
volumes:
187188
- name: deps
@@ -266,6 +267,35 @@ steps:
266267
- name: deps
267268
path: /go
268269

270+
---
271+
kind: pipeline
272+
type: docker
273+
name: compliance-docs
274+
275+
platform:
276+
os: linux
277+
arch: amd64
278+
279+
trigger:
280+
event:
281+
- pull_request
282+
paths:
283+
include:
284+
- "docs/**"
285+
- "*.md"
286+
287+
steps:
288+
- name: deps-frontend
289+
image: node:18
290+
pull: always
291+
commands:
292+
- make deps-frontend
293+
294+
- name: lint-md
295+
image: node:18
296+
commands:
297+
- make lint-md
298+
269299
---
270300
kind: pipeline
271301
type: docker
@@ -283,7 +313,7 @@ trigger:
283313
- pull_request
284314
paths:
285315
exclude:
286-
- docs/**
316+
- "docs/**"
287317

288318
volumes:
289319
- name: deps
@@ -444,7 +474,7 @@ trigger:
444474
- pull_request
445475
paths:
446476
exclude:
447-
- docs/**
477+
- "docs/**"
448478

449479
volumes:
450480
- name: deps
@@ -530,7 +560,7 @@ trigger:
530560
- pull_request
531561
paths:
532562
exclude:
533-
- docs/**
563+
- "docs/**"
534564

535565
volumes:
536566
- name: deps
@@ -616,7 +646,7 @@ trigger:
616646
- pull_request
617647
paths:
618648
exclude:
619-
- docs/**
649+
- "docs/**"
620650

621651
volumes:
622652
- name: deps
@@ -696,7 +726,7 @@ trigger:
696726
- pull_request
697727
paths:
698728
exclude:
699-
- docs/**
729+
- "docs/**"
700730

701731
volumes:
702732
- name: deps
@@ -867,7 +897,7 @@ trigger:
867897
- push
868898
paths:
869899
exclude:
870-
- docs/**
900+
- "docs/**"
871901

872902
depends_on:
873903
- testing-mysql
@@ -1125,7 +1155,7 @@ trigger:
11251155
- pull_request
11261156
paths:
11271157
include:
1128-
- docs/**
1158+
- "docs/**"
11291159

11301160
steps:
11311161
- name: build-docs
@@ -1176,7 +1206,7 @@ trigger:
11761206
- cron
11771207
paths:
11781208
exclude:
1179-
- docs/**
1209+
- "docs/**"
11801210

11811211
steps:
11821212
- name: fetch-tags
@@ -1253,7 +1283,7 @@ trigger:
12531283
- cron
12541284
paths:
12551285
exclude:
1256-
- docs/**
1286+
- "docs/**"
12571287

12581288
steps:
12591289
- name: fetch-tags
@@ -1468,7 +1498,7 @@ trigger:
14681498
- pull_request
14691499
paths:
14701500
exclude:
1471-
- docs/**
1501+
- "docs/**"
14721502

14731503
steps:
14741504
- name: dryrun
@@ -1515,7 +1545,7 @@ trigger:
15151545
- cron
15161546
paths:
15171547
exclude:
1518-
- docs/**
1548+
- "docs/**"
15191549

15201550
steps:
15211551
- name: fetch-tags
@@ -1592,7 +1622,7 @@ trigger:
15921622
- cron
15931623
paths:
15941624
exclude:
1595-
- docs/**
1625+
- "docs/**"
15961626

15971627
steps:
15981628
- name: fetch-tags
@@ -1667,7 +1697,7 @@ trigger:
16671697
- cron
16681698
paths:
16691699
exclude:
1670-
- docs/**
1700+
- "docs/**"
16711701

16721702
steps:
16731703
- name: fetch-tags
@@ -1834,7 +1864,7 @@ trigger:
18341864
- cron
18351865
paths:
18361866
exclude:
1837-
- docs/**
1867+
- "docs/**"
18381868

18391869
depends_on:
18401870
- docker-linux-amd64-release-version
@@ -1884,7 +1914,7 @@ trigger:
18841914
- cron
18851915
paths:
18861916
exclude:
1887-
- docs/**
1917+
- "docs/**"
18881918

18891919
depends_on:
18901920
- docker-linux-amd64-release

.eslintrc.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ plugins:
1313
- eslint-plugin-import
1414
- eslint-plugin-jquery
1515
- eslint-plugin-sonarjs
16+
- eslint-plugin-custom-elements
1617

1718
env:
1819
es2022: true
@@ -62,6 +63,19 @@ rules:
6263
consistent-this: [0]
6364
constructor-super: [2]
6465
curly: [0]
66+
custom-elements/expose-class-on-global: [0]
67+
custom-elements/extends-correct-class: [2]
68+
custom-elements/file-name-matches-element: [0]
69+
custom-elements/no-constructor: [2]
70+
custom-elements/no-customized-built-in-elements: [2]
71+
custom-elements/no-dom-traversal-in-attributechangedcallback: [2]
72+
custom-elements/no-dom-traversal-in-connectedcallback: [2]
73+
custom-elements/no-exports-with-element: [2]
74+
custom-elements/no-method-prefixed-with-on: [2]
75+
custom-elements/no-unchecked-define: [0]
76+
custom-elements/one-element-per-file: [0]
77+
custom-elements/tag-name-matches-class: [2]
78+
custom-elements/valid-tag-name: [2]
6579
default-case-last: [2]
6680
default-case: [0]
6781
default-param-last: [0]

.gitpod.yml

-9
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ tasks:
2323
gp sync-await setup
2424
make watch-frontend
2525
openMode: split-right
26-
- name: Run docs
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
32-
openMode: split-right
3326

3427
vscode:
3528
extensions:
@@ -46,5 +39,3 @@ vscode:
4639
ports:
4740
- name: Gitea
4841
port: 3000
49-
- name: Docs
50-
port: 1313

BSDmakefile

+20-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# GNU makefile proxy script for BSD make
2+
#
23
# Written and maintained by Mahmoud Al-Qudsi <mqudsi@neosmart.net>
3-
# Copyright NeoSmart Technologies <https://neosmart.net/> 2014-2018
4+
# Copyright NeoSmart Technologies <https://neosmart.net/> 2014-2019
45
# Obtain updates from <https://github.com/neosmart/gmake-proxy>
56
#
67
# Redistribution and use in source and binary forms, with or without
@@ -26,26 +27,32 @@
2627

2728
JARG =
2829
GMAKE = "gmake"
29-
#When gmake is called from another make instance, -w is automatically added
30-
#which causes extraneous messages about directory changes to be emitted.
31-
#--no-print-directory silences these messages.
30+
# When gmake is called from another make instance, -w is automatically added
31+
# which causes extraneous messages about directory changes to be emitted.
32+
# Running with --no-print-directory silences these messages.
3233
GARGS = "--no-print-directory"
3334

3435
.if "$(.MAKE.JOBS)" != ""
35-
JARG = -j$(.MAKE.JOBS)
36+
JARG = -j$(.MAKE.JOBS)
3637
.endif
3738

38-
#by default bmake will cd into ./obj first
39+
# bmake prefers out-of-source builds and tries to cd into ./obj (among others)
40+
# where possible. GNU Make doesn't, so override that value.
3941
.OBJDIR: ./
4042

43+
# The GNU convention is to use the lowercased `prefix` variable/macro to
44+
# specify the installation directory. Humor them.
45+
GPREFIX = ""
46+
.if defined(PREFIX) && ! defined(prefix)
47+
GPREFIX = 'prefix = "$(PREFIX)"'
48+
.endif
49+
50+
.BEGIN: .SILENT
51+
which $(GMAKE) || printf "Error: GNU Make is required!\n\n" 1>&2 && false
52+
4153
.PHONY: FRC
4254
$(.TARGETS): FRC
43-
$(GMAKE) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG)
55+
$(GMAKE) $(GPREFIX) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG)
4456

4557
.DONE .DEFAULT: .SILENT
46-
$(GMAKE) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG)
47-
48-
.ERROR: .SILENT
49-
if ! which $(GMAKE) > /dev/null; then \
50-
echo "GNU Make is required!"; \
51-
fi
58+
$(GMAKE) $(GPREFIX) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG)

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM golang:1.20-alpine3.17 AS build-env
2+
FROM docker.io/library/golang:1.20-alpine3.17 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}
@@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2323
# Begin env-to-ini build
2424
RUN go build contrib/environment-to-ini/environment-to-ini.go
2525

26-
FROM alpine:3.17
26+
FROM docker.io/library/alpine:3.17
2727
LABEL maintainer="maintainers@gitea.io"
2828

2929
EXPOSE 22 3000

Dockerfile.rootless

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM golang:1.20-alpine3.17 AS build-env
2+
FROM docker.io/library/golang:1.20-alpine3.17 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}
@@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2323
# Begin env-to-ini build
2424
RUN go build contrib/environment-to-ini/environment-to-ini.go
2525

26-
FROM alpine:3.17
26+
FROM docker.io/library/alpine:3.17
2727
LABEL maintainer="maintainers@gitea.io"
2828

2929
EXPOSE 2222 3000

Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ help:
196196
@echo " - lint lint everything"
197197
@echo " - lint-frontend lint frontend files"
198198
@echo " - lint-backend lint backend files"
199+
@echo " - lint-md lint markdown files"
199200
@echo " - checks run various consistency checks"
200201
@echo " - checks-frontend check frontend files"
201202
@echo " - checks-backend check backend files"
@@ -341,10 +342,13 @@ checks-backend: tidy-check swagger-check fmt-check misspell-check swagger-valida
341342
lint: lint-frontend lint-backend
342343

343344
.PHONY: lint-frontend
344-
lint-frontend: node_modules
345+
lint-frontend: node_modules lint-md
345346
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js docs/assets/js tests/e2e
346347
npx stylelint --color --max-warnings=0 web_src/css
347348
npx spectral lint -q -F hint $(SWAGGER_SPEC)
349+
350+
.PHONY: lint-md
351+
lint-md: node_modules
348352
npx markdownlint docs *.md
349353

350354
.PHONY: lint-backend
@@ -747,7 +751,7 @@ generate-go: $(TAGS_PREREQ)
747751

748752
.PHONY: security-check
749753
security-check:
750-
go run $(GOVULNCHECK_PACKAGE) -v ./...
754+
go run $(GOVULNCHECK_PACKAGE) ./...
751755

752756
$(EXECUTABLE): $(GO_SOURCES) $(TAGS_PREREQ)
753757
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@

0 commit comments

Comments
 (0)