Skip to content

Commit f387005

Browse files
authored
Merge branch 'main' into update-pin-unpin-icon
2 parents 62ff7a5 + 8251b31 commit f387005

File tree

281 files changed

+6524
-9526
lines changed

Some content is hidden

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

281 files changed

+6524
-9526
lines changed

.eslintrc.yaml

+15-13
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ rules:
113113
import/namespace: [0]
114114
import/newline-after-import: [0]
115115
import/no-absolute-path: [0]
116-
import/no-amd: [0]
116+
import/no-amd: [2]
117117
import/no-anonymous-default-export: [0]
118-
import/no-commonjs: [0]
118+
import/no-commonjs: [2]
119119
import/no-cycle: [2, {ignoreExternal: true, maxDepth: 1}]
120120
import/no-default-export: [0]
121121
import/no-deprecated: [0]
@@ -576,7 +576,7 @@ rules:
576576
sonarjs/no-nested-template-literals: [0]
577577
sonarjs/no-one-iteration-loop: [2]
578578
sonarjs/no-redundant-boolean: [2]
579-
sonarjs/no-redundant-jump: [0]
579+
sonarjs/no-redundant-jump: [2]
580580
sonarjs/no-same-line-conditional: [2]
581581
sonarjs/no-small-switch: [0]
582582
sonarjs/no-unused-collection: [2]
@@ -616,17 +616,18 @@ rules:
616616
unicorn/import-style: [0]
617617
unicorn/new-for-builtins: [2]
618618
unicorn/no-abusive-eslint-disable: [0]
619+
unicorn/no-array-callback-reference: [0]
619620
unicorn/no-array-for-each: [2]
620-
unicorn/no-array-instanceof: [0]
621621
unicorn/no-array-method-this-argument: [2]
622622
unicorn/no-array-push-push: [2]
623+
unicorn/no-array-reduce: [2]
623624
unicorn/no-await-expression-member: [0]
624625
unicorn/no-console-spaces: [0]
625626
unicorn/no-document-cookie: [2]
626627
unicorn/no-empty-file: [2]
627-
unicorn/no-fn-reference-in-iterator: [0]
628628
unicorn/no-for-loop: [0]
629629
unicorn/no-hex-escape: [0]
630+
unicorn/no-instanceof-array: [0]
630631
unicorn/no-invalid-remove-event-listener: [2]
631632
unicorn/no-keyword-prefix: [0]
632633
unicorn/no-lonely-if: [2]
@@ -637,7 +638,6 @@ rules:
637638
unicorn/no-null: [0]
638639
unicorn/no-object-as-default-parameter: [0]
639640
unicorn/no-process-exit: [0]
640-
unicorn/no-reduce: [2]
641641
unicorn/no-static-only-class: [2]
642642
unicorn/no-thenable: [2]
643643
unicorn/no-this-assignment: [2]
@@ -663,25 +663,27 @@ rules:
663663
unicorn/prefer-array-index-of: [2]
664664
unicorn/prefer-array-some: [2]
665665
unicorn/prefer-at: [0]
666+
unicorn/prefer-blob-reading-methods: [2]
666667
unicorn/prefer-code-point: [0]
667-
unicorn/prefer-dataset: [2]
668668
unicorn/prefer-date-now: [2]
669669
unicorn/prefer-default-parameters: [0]
670-
unicorn/prefer-event-key: [2]
670+
unicorn/prefer-dom-node-append: [2]
671+
unicorn/prefer-dom-node-dataset: [0]
672+
unicorn/prefer-dom-node-remove: [2]
673+
unicorn/prefer-dom-node-text-content: [2]
671674
unicorn/prefer-event-target: [2]
672675
unicorn/prefer-export-from: [2, {ignoreUsedVariables: true}]
673676
unicorn/prefer-includes: [2]
674677
unicorn/prefer-json-parse-buffer: [0]
678+
unicorn/prefer-keyboard-event-key: [2]
675679
unicorn/prefer-logical-operator-over-ternary: [2]
676680
unicorn/prefer-math-trunc: [2]
677681
unicorn/prefer-modern-dom-apis: [0]
678682
unicorn/prefer-modern-math-apis: [2]
679683
unicorn/prefer-module: [2]
680684
unicorn/prefer-native-coercion-functions: [2]
681685
unicorn/prefer-negative-index: [2]
682-
unicorn/prefer-node-append: [0]
683686
unicorn/prefer-node-protocol: [2]
684-
unicorn/prefer-node-remove: [0]
685687
unicorn/prefer-number-properties: [0]
686688
unicorn/prefer-object-from-entries: [2]
687689
unicorn/prefer-object-has-own: [0]
@@ -690,17 +692,17 @@ rules:
690692
unicorn/prefer-query-selector: [0]
691693
unicorn/prefer-reflect-apply: [0]
692694
unicorn/prefer-regexp-test: [2]
693-
unicorn/prefer-replace-all: [0]
694695
unicorn/prefer-set-has: [0]
695696
unicorn/prefer-set-size: [2]
696697
unicorn/prefer-spread: [0]
697-
unicorn/prefer-starts-ends-with: [2]
698+
unicorn/prefer-string-replace-all: [0]
698699
unicorn/prefer-string-slice: [0]
700+
unicorn/prefer-string-starts-ends-with: [2]
701+
unicorn/prefer-string-trim-start-end: [2]
699702
unicorn/prefer-switch: [0]
700703
unicorn/prefer-ternary: [0]
701704
unicorn/prefer-text-content: [2]
702705
unicorn/prefer-top-level-await: [0]
703-
unicorn/prefer-trim-start-end: [2]
704706
unicorn/prefer-type-error: [0]
705707
unicorn/prevent-abbreviations: [0]
706708
unicorn/relative-url-style: [2]

.github/workflows/cron-licenses.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
name: "Cron: Update licenses and gitignores"
1+
name: cron-licenses
22

33
on:
44
schedule:
5-
# weekly on Monday at 0:07 UTC
6-
- cron: "7 0 * * 1"
5+
- cron: "7 0 * * 1" # every Monday at 00:07 UTC
76

87
jobs:
9-
cron:
8+
cron-licenses:
9+
if: github.repository == "go-gitea/gitea"
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v3
12+
- uses: actions/checkout@v3
1413
- uses: actions/setup-go@v3
1514
with:
16-
go-version: '>=1.20.1'
17-
- name: update licenses and gitignores
18-
run: timeout -s ABRT 40m make generate-license generate-gitignore
15+
go-version: ">=1.20.1"
16+
- run: make generate-license generate-gitignore
17+
timeout-minutes: 40
1918
- name: push translations to repo
2019
uses: appleboy/git-push-action@v0.0.2
2120
with:

.github/workflows/lock.yml .github/workflows/cron-lock.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: 'Lock Threads'
1+
name: cron-lock
22

33
on:
44
schedule:
5-
- cron: '0 0 * * *' # Run once a day
5+
- cron: "0 0 * * *" # every day at 00:00 UTC
66
workflow_dispatch:
77

88
permissions:

.github/workflows/cron-translations.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
name: "Cron: Pull translations from Crowdin"
1+
name: cron-translations
22

33
on:
44
schedule:
5-
- cron: "7 0 * * *" # every day at 0:07 UTC
5+
- cron: "7 0 * * *" # every day at 00:07 UTC
66

77
jobs:
8-
crowdin_pull:
8+
crowdin-pull:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v3
11+
- uses: actions/checkout@v3
1312
- name: download from crowdin
1413
uses: docker://jonasfranz/crowdin
1514
env:
@@ -30,11 +29,10 @@ jobs:
3029
commit_message: "[skip ci] Updated translations via Crowdin"
3130
remote: "git@github.com:go-gitea/gitea.git"
3231
ssh_key: ${{ secrets.DEPLOY_KEY }}
33-
crowdin_push:
32+
crowdin-push:
3433
runs-on: ubuntu-latest
3534
steps:
36-
- name: Checkout
37-
uses: actions/checkout@v3
35+
- uses: actions/checkout@v3
3836
- name: push translations to crowdin
3937
uses: docker://jonasfranz/crowdin
4038
env:

.github/workflows/push-publish_docs.yml .github/workflows/publish-docs.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Docs: Publish"
1+
name: publish-docs
22

33
on:
44
push:
@@ -11,12 +11,10 @@ jobs:
1111
compliance-docs:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: checkout
15-
uses: actions/checkout@v3
16-
- name: setup go
17-
uses: actions/setup-go@v4
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-go@v4
1816
with:
19-
go-version: '>=1.20.1'
17+
go-version: ">=1.20.1"
2018
- name: build docs
2119
run: |
2220
cd docs
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: compliance-docs
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "docs/**"
7+
- "*.md"
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
compliance-docs:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 20
21+
- run: make deps-frontend
22+
- run: make lint-md

0 commit comments

Comments
 (0)