Skip to content

Commit 7aaeaee

Browse files
Merge branch 'master' into refactor-doctor
2 parents 78ab338 + 253add8 commit 7aaeaee

File tree

496 files changed

+12668
-10583
lines changed

Some content is hidden

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

496 files changed

+12668
-10583
lines changed

.drone.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ steps:
1818
- make node_modules
1919

2020
- name: lint-frontend
21-
pull: always
2221
image: node:14
2322
commands:
2423
- make lint-frontend
@@ -35,7 +34,6 @@ steps:
3534
TAGS: bindata sqlite sqlite_unlock_notify
3635

3736
- name: checks-frontend
38-
pull: always
3937
image: node:14
4038
commands:
4139
- make checks-frontend
@@ -49,7 +47,6 @@ steps:
4947
depends_on: [lint-backend]
5048

5149
- name: build-frontend
52-
pull: always
5350
image: node:14
5451
commands:
5552
- make frontend
@@ -66,7 +63,6 @@ steps:
6663
depends_on: [checks-backend]
6764

6865
- name: build-backend-arm64
69-
pull: always
7066
image: golang:1.15
7167
environment:
7268
GO111MODULE: on
@@ -80,7 +76,6 @@ steps:
8076
depends_on: [checks-backend]
8177

8278
- name: build-backend-386
83-
pull: always
8479
image: golang:1.15
8580
environment:
8681
GO111MODULE: on
@@ -108,33 +103,28 @@ workspace:
108103

109104
services:
110105
- name: mysql
111-
pull: default
112106
image: mysql:5.7
113107
environment:
114108
MYSQL_ALLOW_EMPTY_PASSWORD: yes
115109
MYSQL_DATABASE: test
116110

117111
- name: mysql8
118-
pull: default
119112
image: mysql:8.0
120113
environment:
121114
MYSQL_ALLOW_EMPTY_PASSWORD: yes
122115
MYSQL_DATABASE: testgitea
123116

124117
- name: mssql
125-
pull: default
126118
image: mcr.microsoft.com/mssql/server:latest
127119
environment:
128120
ACCEPT_EULA: Y
129121
MSSQL_PID: Standard
130122
SA_PASSWORD: MwantsaSecurePassword1
131123

132124
- name: ldap
133-
pull: default
134125
image: gitea/test-openldap:latest
135126

136127
- name: elasticsearch
137-
pull: default
138128
environment:
139129
discovery.type: single-node
140130
image: elasticsearch:7.5.0
@@ -149,7 +139,6 @@ services:
149139

150140
steps:
151141
- name: fetch-tags
152-
pull: default
153142
image: docker:git
154143
commands:
155144
- git fetch --tags --force
@@ -175,7 +164,6 @@ steps:
175164
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
176165

177166
- name: unit-test
178-
pull: always
179167
image: golang:1.15
180168
commands:
181169
- make unit-test-coverage test-check
@@ -186,7 +174,6 @@ steps:
186174
from_secret: github_read_token
187175

188176
- name: test-mysql
189-
pull: always
190177
image: golang:1.15
191178
commands:
192179
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
@@ -202,7 +189,6 @@ steps:
202189
- build
203190

204191
- name: test-mysql8
205-
pull: always
206192
image: golang:1.15
207193
commands:
208194
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
@@ -217,7 +203,6 @@ steps:
217203
- build
218204

219205
- name: test-mssql
220-
pull: always
221206
image: golang:1.15
222207
commands:
223208
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
@@ -232,7 +217,6 @@ steps:
232217
- build
233218

234219
- name: generate-coverage
235-
pull: always
236220
image: golang:1.15
237221
commands:
238222
- make coverage
@@ -295,7 +279,6 @@ services:
295279

296280
steps:
297281
- name: fetch-tags
298-
pull: default
299282
image: docker:git
300283
commands:
301284
- git fetch --tags --force
@@ -315,7 +298,6 @@ steps:
315298
TAGS: bindata sqlite sqlite_unlock_notify
316299

317300
- name: test-sqlite
318-
pull: always
319301
image: golang:1.15
320302
commands:
321303
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
@@ -329,7 +311,6 @@ steps:
329311
- build
330312

331313
- name: test-pgsql
332-
pull: always
333314
image: golang:1.15
334315
commands:
335316
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
@@ -431,7 +412,6 @@ depends_on:
431412

432413
steps:
433414
- name: fetch-tags
434-
pull: default
435415
image: docker:git
436416
commands:
437417
- git fetch --tags --force
@@ -485,7 +465,6 @@ steps:
485465
- push
486466

487467
- name: release-master
488-
pull: always
489468
image: plugins/s3:1
490469
settings:
491470
acl: public-read
@@ -644,7 +623,6 @@ trigger:
644623

645624
steps:
646625
- name: fetch-tags
647-
pull: default
648626
image: docker:git
649627
commands:
650628
- git fetch --tags --force
@@ -668,7 +646,6 @@ steps:
668646
- pull_request
669647

670648
- name: publish-rootless
671-
pull: always
672649
image: plugins/docker:linux-amd64
673650
settings:
674651
dockerfile: Dockerfile.rootless
@@ -747,7 +724,6 @@ trigger:
747724
- "refs/tags/**"
748725
steps:
749726
- name: fetch-tags
750-
pull: default
751727
image: docker:git
752728
commands:
753729
- git fetch --tags --force
@@ -774,7 +750,6 @@ steps:
774750
- pull_request
775751

776752
- name: publish-rootless
777-
pull: always
778753
image: plugins/docker:linux-arm64
779754
settings:
780755
dockerfile: Dockerfile.rootless
@@ -817,7 +792,6 @@ steps:
817792
from_secret: docker_username
818793

819794
- name: manifest
820-
pull: always
821795
image: plugins/manifest
822796
settings:
823797
auto_tag: true

.eslintrc

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ reportUnusedDisableDirectives: true
33

44
ignorePatterns:
55
- /web_src/js/vendor
6+
- /templates/base/head.tmpl
7+
- /templates/repo/activity.tmpl
8+
- /templates/repo/view_file.tmpl
69

710
parserOptions:
811
sourceType: module
9-
ecmaVersion: 2020
12+
ecmaVersion: 2021
1013

1114
plugins:
1215
- eslint-plugin-unicorn
1316
- eslint-plugin-import
1417
- eslint-plugin-vue
18+
- eslint-plugin-html
1519

1620
extends:
1721
- plugin:vue/recommended
@@ -27,12 +31,19 @@ globals:
2731
SimpleMDE: false
2832
u2fApi: false
2933

34+
settings:
35+
html/html-extensions: [".tmpl"]
36+
3037
overrides:
31-
- files: ["web_src/**/*.js", "web_src/**/*.vue"]
38+
- files: ["web_src/**/*.js", "web_src/**/*.vue", "templates/**/*.tmpl"]
3239
env:
3340
browser: true
3441
jquery: true
3542
node: false
43+
- files: ["templates/**/*.tmpl"]
44+
rules:
45+
no-tabs: [0]
46+
indent: [2, tab, {SwitchCase: 1}]
3647
- files: ["web_src/**/*worker.js"]
3748
env:
3849
worker: true
@@ -224,6 +235,7 @@ rules:
224235
no-new-symbol: [2]
225236
no-new-wrappers: [2]
226237
no-new: [0]
238+
no-nonoctal-decimal-escape: [2]
227239
no-obj-calls: [2]
228240
no-octal-escape: [2]
229241
no-octal: [2]

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
* text=auto eol=lf
22
/vendor/** -text -eol linguist-vendored
33
/public/vendor/** -text -eol linguist-vendored
4+
/templates/**/*.tmpl linguist-language=Handlebars
5+
/.eslintrc linguist-language=YAML
6+
/.stylelintrc linguist-language=YAML

.github/lock.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Configuration for Lock Threads - https://github.com/dessant/lock-threads-app
2+
3+
# Number of days of inactivity before a closed issue or pull request is locked
4+
daysUntilLock: 60
5+
6+
# Skip issues and pull requests created before a given timestamp. Timestamp must
7+
# follow ISO 8601 (`YYYY-MM-DD`). `false` is disabled
8+
skipCreatedBefore: false
9+
10+
# Issues and pull requests with these labels will be ignored.
11+
exemptLabels: []
12+
13+
# Label to add before locking, such as `outdated`. `false` is disabled
14+
lockLabel: false
15+
16+
# Comment to post before locking.
17+
lockComment: >
18+
This thread has been automatically locked since there has not been
19+
any recent activity after it was closed. Please open a new issue for
20+
related bugs and link to relevant comments in this thread.
21+
22+
# Assign `resolved` as the reason for locking. Set to `false` to disable
23+
setLockReason: true

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ issues:
7070
- path: modules/log/
7171
linters:
7272
- errcheck
73-
- path: routers/routes/routes.go
73+
- path: routers/routes/macaron.go
7474
linters:
7575
- dupl
7676
- path: routers/api/v1/repo/issue_subscription.go

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
audit=false
2+
fund=false
13
package-lock=true
24
save-exact=true

.stylelintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ rules:
1111
no-descending-specificity: null
1212
number-leading-zero: never
1313
rule-empty-line-before: null
14-
selector-pseudo-element-colon-notation: null
14+
selector-pseudo-element-colon-notation: double
1515
shorthand-property-no-redundant-values: true

Dockerfile.rootless

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ RUN mkdir -p /var/lib/gitea /etc/gitea
5050
RUN chown git:git /var/lib/gitea /etc/gitea
5151

5252
COPY docker/rootless /
53-
COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /usr/local/bin/gitea
54-
RUN chown root:root /usr/local/bin/* && chmod 755 /usr/local/bin/*
53+
COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/gitea /usr/local/bin/gitea
5554

5655
USER git:git
5756
ENV GITEA_WORK_DIR /var/lib/gitea

0 commit comments

Comments
 (0)