Skip to content

Commit 3dcd247

Browse files
committed
Merge branch 'main' of https://github.com/go-gitea/gitea into notification-table
# Conflicts: # templates/user/notification/notification_div.tmpl # web_src/less/_user.less
2 parents 47669e5 + e52ea44 commit 3dcd247

File tree

1,773 files changed

+43546
-31997
lines changed

Some content is hidden

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

1,773 files changed

+43546
-31997
lines changed

.drone.yml

Lines changed: 637 additions & 199 deletions
Large diffs are not rendered by default.

.eslintrc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ rules:
149149
jquery/no-global-eval: [2]
150150
jquery/no-grep: [2]
151151
jquery/no-has: [2]
152-
jquery/no-hide: [0]
152+
jquery/no-hide: [2]
153153
jquery/no-html: [0]
154154
jquery/no-in-array: [2]
155155
jquery/no-is-array: [2]
@@ -166,13 +166,13 @@ rules:
166166
jquery/no-proxy: [2]
167167
jquery/no-ready: [0]
168168
jquery/no-serialize: [2]
169-
jquery/no-show: [0]
169+
jquery/no-show: [2]
170170
jquery/no-size: [2]
171171
jquery/no-sizzle: [0]
172172
jquery/no-slide: [0]
173173
jquery/no-submit: [0]
174174
jquery/no-text: [0]
175-
jquery/no-toggle: [0]
175+
jquery/no-toggle: [2]
176176
jquery/no-trigger: [0]
177177
jquery/no-trim: [2]
178178
jquery/no-val: [0]

.github/pull_request_template.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!--
2-
1+
<!-- start tips -->
32
Please check the following:
4-
5-
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for bug fixes.
6-
2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md
7-
3. Describe what your pull request does and which issue you're targeting (if any)
8-
9-
-->
3+
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for backports.
4+
2. Make sure you have read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md .
5+
3. Describe what your pull request does and which issue you're targeting (if any).
6+
4. It is recommended to enable "Allow edits by maintainers", so maintainers can help more easily.
7+
5. Your input here will be included in the commit message when this PR has been merged. If you don't want some content to be included, please separate them with a line like `---`.
8+
6. Delete all these tips before posting.
9+
<!-- end tips -->

.gitpod.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ tasks:
1010
- name: Run backend
1111
command: |
1212
gp sync-await setup
13-
mkdir -p custom/conf/
14-
echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini
15-
echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini
13+
if [ ! -f custom/conf/app.ini ]
14+
then
15+
mkdir -p custom/conf/
16+
echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini
17+
echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini
18+
fi
1619
export TAGS="sqlite sqlite_unlock_notify"
1720
make watch-backend
1821
- name: Run frontend

.golangci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ linters:
2828
fast: false
2929

3030
run:
31-
go: 1.19
31+
go: "1.20"
3232
timeout: 10m
3333
skip-dirs:
3434
- node_modules
@@ -74,7 +74,7 @@ linters-settings:
7474
- name: modifies-value-receiver
7575
gofumpt:
7676
extra-rules: true
77-
lang-version: "1.19"
77+
lang-version: "1.20"
7878
depguard:
7979
list-type: denylist
8080
# Check the list against standard lib.
@@ -84,6 +84,7 @@ linters-settings:
8484
- github.com/unknwon/com: "use gitea's util and replacements"
8585
- io/ioutil: "use os or io instead"
8686
- golang.org/x/exp: "it's experimental and unreliable."
87+
- code.gitea.io/gitea/modules/git/internal: "do not use the internal package, use AddXxx function instead"
8788

8889
issues:
8990
max-issues-per-linter: 0

.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: 108 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,137 @@
1-
extends: stylelint-config-standard
2-
31
plugins:
42
- stylelint-declaration-strict-value
53

4+
ignoreFiles:
5+
- "**/*.go"
6+
67
overrides:
7-
- files: ["**/*.less"]
8-
customSyntax: postcss-less
9-
- files: ["**/*.less"]
10-
rules:
11-
scale-unlimited/declaration-strict-value: [color, {
12-
ignoreValues: /^(inherit|transparent|unset|initial)$/
13-
}]
148
- files: ["**/chroma/*", "**/codemirror/*", "**/standalone/*", "**/console/*"]
159
rules:
1610
scale-unlimited/declaration-strict-value: null
11+
- files: ["**/chroma/*", "**/codemirror/*"]
12+
rules:
13+
block-no-empty: null
1714

1815
rules:
1916
alpha-value-notation: null
17+
annotation-no-unknown: true
18+
at-rule-allowed-list: null
19+
at-rule-disallowed-list: null
2020
at-rule-empty-line-before: null
21-
block-closing-brace-empty-line-before: null
21+
at-rule-no-unknown: true
22+
at-rule-no-vendor-prefix: true
23+
at-rule-property-required-list: null
24+
block-no-empty: true
2225
color-function-notation: null
26+
color-hex-alpha: null
2327
color-hex-length: null
28+
color-named: null
29+
color-no-hex: null
30+
color-no-invalid-hex: true
2431
comment-empty-line-before: null
32+
comment-no-empty: true
33+
comment-pattern: null
34+
comment-whitespace-inside: null
35+
comment-word-disallowed-list: null
36+
custom-media-pattern: null
37+
custom-property-empty-line-before: null
38+
custom-property-no-missing-var-function: true
39+
custom-property-pattern: null
40+
declaration-block-no-duplicate-custom-properties: true
41+
declaration-block-no-duplicate-properties: [true, {ignore: [consecutive-duplicates-with-different-values]}]
2542
declaration-block-no-redundant-longhand-properties: null
43+
declaration-block-no-shorthand-property-overrides: null
2644
declaration-block-single-line-max-declarations: null
2745
declaration-empty-line-before: null
46+
declaration-no-important: null
47+
declaration-property-max-values: null
48+
declaration-property-unit-allowed-list: null
49+
declaration-property-unit-disallowed-list: null
50+
declaration-property-value-allowed-list: null
51+
declaration-property-value-disallowed-list: null
52+
declaration-property-value-no-unknown: true
53+
font-family-name-quotes: always-where-recommended
54+
font-family-no-duplicate-names: true
55+
font-family-no-missing-generic-family-keyword: true
56+
font-weight-notation: null
57+
function-allowed-list: null
58+
function-calc-no-unspaced-operator: true
59+
function-disallowed-list: null
60+
function-linear-gradient-no-nonstandard-direction: true
61+
function-name-case: lower
2862
function-no-unknown: null
63+
function-url-no-scheme-relative: null
64+
function-url-quotes: always
65+
function-url-scheme-allowed-list: null
66+
function-url-scheme-disallowed-list: null
2967
hue-degree-notation: null
3068
import-notation: string
31-
indentation: 2
32-
max-line-length: null
69+
keyframe-block-no-duplicate-selectors: true
70+
keyframe-declaration-no-important: true
71+
keyframe-selector-notation: null
72+
keyframes-name-pattern: null
73+
length-zero-no-unit: true
74+
max-nesting-depth: null
75+
media-feature-name-allowed-list: null
76+
media-feature-name-disallowed-list: null
77+
media-feature-name-no-unknown: true
78+
media-feature-name-no-vendor-prefix: true
79+
media-feature-name-unit-allowed-list: null
80+
media-feature-name-value-allowed-list: null
81+
media-feature-range-notation: null
82+
named-grid-areas-no-invalid: true
3383
no-descending-specificity: null
84+
no-duplicate-at-import-rules: true
85+
no-duplicate-selectors: true
86+
no-empty-source: true
87+
no-invalid-double-slash-comments: true
3488
no-invalid-position-at-import-rule: null
35-
number-leading-zero: never
89+
no-irregular-whitespace: true
90+
no-unknown-animations: null
3691
number-max-precision: null
92+
property-allowed-list: null
93+
property-disallowed-list: null
94+
property-no-unknown: true
3795
property-no-vendor-prefix: null
3896
rule-empty-line-before: null
97+
rule-selector-property-disallowed-list: null
98+
scale-unlimited/declaration-strict-value: [color, {ignoreValues: /^(inherit|transparent|unset|initial|currentcolor)$/}]
99+
selector-attribute-name-disallowed-list: null
100+
selector-attribute-operator-allowed-list: null
101+
selector-attribute-operator-disallowed-list: null
102+
selector-attribute-quotes: always
39103
selector-class-pattern: null
104+
selector-combinator-allowed-list: null
105+
selector-combinator-disallowed-list: null
106+
selector-disallowed-list: null
40107
selector-id-pattern: null
108+
selector-max-attribute: null
109+
selector-max-class: null
110+
selector-max-combinators: null
111+
selector-max-compound-selectors: null
112+
selector-max-id: null
113+
selector-max-pseudo-class: null
114+
selector-max-specificity: null
115+
selector-max-type: null
116+
selector-max-universal: null
117+
selector-nested-pattern: null
118+
selector-no-qualifying-type: null
119+
selector-no-vendor-prefix: true
120+
selector-not-notation: null
121+
selector-pseudo-class-allowed-list: null
122+
selector-pseudo-class-disallowed-list: null
123+
selector-pseudo-class-no-unknown: true
124+
selector-pseudo-element-allowed-list: null
41125
selector-pseudo-element-colon-notation: double
126+
selector-pseudo-element-disallowed-list: null
127+
selector-pseudo-element-no-unknown: true
128+
selector-type-case: lower
129+
selector-type-no-unknown: [true, {ignore: [custom-elements]}]
42130
shorthand-property-no-redundant-values: true
43-
string-quotes: null
44-
value-no-vendor-prefix: null
131+
string-no-newline: true
132+
time-min-milliseconds: null
133+
unit-allowed-list: null
134+
unit-disallowed-list: null
135+
unit-no-unknown: true
136+
value-keyword-case: null
137+
value-no-vendor-prefix: [true, {ignoreValues: [box, inline-box]}]

0 commit comments

Comments
 (0)