Skip to content

Commit

Permalink
Merge branch 'main' into token-api-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored May 16, 2021
2 parents 6650476 + 0bf8d34 commit 1a40351
Show file tree
Hide file tree
Showing 1,568 changed files with 76,412 additions and 58,881 deletions.
54 changes: 31 additions & 23 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ trigger:
steps:
- name: deps-frontend
pull: always
image: node:14
image: node:16
commands:
- make node_modules

- name: lint-frontend
image: node:14
image: node:16
commands:
- make lint-frontend
depends_on: [deps-frontend]
Expand Down Expand Up @@ -58,7 +58,7 @@ steps:
TAGS: bindata gogit sqlite sqlite_unlock_notify

- name: checks-frontend
image: node:14
image: node:16
commands:
- make checks-frontend
depends_on: [deps-frontend]
Expand All @@ -70,11 +70,17 @@ steps:
- make checks-backend
depends_on: [lint-backend]

- name: test-frontend
image: node:16
commands:
- make test-frontend
depends_on: [lint-frontend]

- name: build-frontend
image: node:14
image: node:16
commands:
- make frontend
depends_on: [lint-frontend]
depends_on: [test-frontend]

- name: build-backend-no-gcc
pull: always
Expand Down Expand Up @@ -271,7 +277,7 @@ steps:
- test-mysql
when:
branch:
- master
- main
event:
- push
- pull_request
Expand All @@ -288,7 +294,7 @@ steps:
- generate-coverage
when:
branch:
- master
- main
event:
- push
- pull_request
Expand Down Expand Up @@ -377,7 +383,7 @@ platform:

trigger:
branch:
- master
- main
event:
- cron
cron:
Expand Down Expand Up @@ -408,6 +414,7 @@ steps:
settings:
author_email: "[email protected]"
author_name: GiteaBot
branch: main
commit: true
commit_message: "[skip ci] Updated translations via Crowdin"
remote: "[email protected]:go-gitea/gitea.git"
Expand Down Expand Up @@ -437,7 +444,7 @@ platform:

trigger:
branch:
- master
- main
event:
- cron
cron:
Expand All @@ -455,6 +462,7 @@ steps:
settings:
author_email: "[email protected]"
author_name: GiteaBot
branch: main
commit: true
commit_message: "[skip ci] Updated licenses and gitignores "
remote: "[email protected]:go-gitea/gitea.git"
Expand All @@ -476,7 +484,7 @@ workspace:

trigger:
branch:
- master
- main
- "release/*"
event:
- push
Expand All @@ -495,7 +503,7 @@ steps:
pull: always
image: techknowlogick/xgo:go-1.16.x
commands:
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
- export PATH=$PATH:$GOPATH/bin
- make release
environment:
Expand All @@ -522,7 +530,7 @@ steps:
image: plugins/s3:1
settings:
acl: public-read
bucket: releases
bucket: gitea-artifacts
endpoint: https://storage.gitea.io
path_style: true
source: "dist/release/*"
Expand All @@ -539,24 +547,24 @@ steps:
event:
- push

- name: release-master
- name: release-main
image: plugins/s3:1
settings:
acl: public-read
bucket: releases
bucket: gitea-artifacts
endpoint: https://storage.gitea.io
path_style: true
source: "dist/release/*"
strip_prefix: dist/release/
target: /gitea/master
target: /gitea/main
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret_access_key
when:
branch:
- master
- main
event:
- push

Expand Down Expand Up @@ -591,7 +599,7 @@ steps:
pull: always
image: techknowlogick/xgo:go-1.16.x
commands:
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
- export PATH=$PATH:$GOPATH/bin
- make release
environment:
Expand All @@ -618,7 +626,7 @@ steps:
image: plugins/s3:1
settings:
acl: public-read
bucket: releases
bucket: gitea-artifacts
endpoint: https://storage.gitea.io
path_style: true
source: "dist/release/*"
Expand Down Expand Up @@ -677,7 +685,7 @@ steps:
from_secret: netlify_token
when:
branch:
- master
- main
event:
- push

Expand All @@ -695,7 +703,7 @@ depends_on:

trigger:
ref:
- refs/heads/master
- refs/heads/main
- "refs/tags/**"
event:
exclude:
Expand Down Expand Up @@ -792,7 +800,7 @@ depends_on:

trigger:
ref:
- refs/heads/master
- refs/heads/main
- "refs/tags/**"
event:
exclude:
Expand Down Expand Up @@ -880,7 +888,7 @@ steps:

trigger:
ref:
- refs/heads/master
- refs/heads/main
- "refs/tags/**"
event:
exclude:
Expand All @@ -903,7 +911,7 @@ clone:

trigger:
branch:
- master
- main
- "release/*"
event:
- push
Expand Down
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ insert_final_newline = true
[*.{go,tmpl,html}]
indent_style = tab

[templates/custom/*.tmpl]
insert_final_newline = false

[templates/swagger/v1_json.tmpl]
indent_style = space

[templates/user/auth/oidc_wellknown.tmpl]
indent_style = space

[Makefile]
indent_style = tab

Expand Down
12 changes: 11 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ root: true
reportUnusedDisableDirectives: true

ignorePatterns:
- /web_src/js/vendor
- /templates/base/head.tmpl
- /templates/repo/activity.tmpl
- /templates/repo/view_file.tmpl
Expand Down Expand Up @@ -53,6 +52,12 @@ overrides:
rules:
import/no-unresolved: [0]
import/no-extraneous-dependencies: [0]
- files: ["*.test.js"]
env:
jest: true
- files: ["*.config.js"]
rules:
import/no-unused-modules: [0]

rules:
accessor-pairs: [2]
Expand Down Expand Up @@ -361,6 +366,7 @@ rules:
unicorn/no-array-instanceof: [0]
unicorn/no-array-push-push: [2]
unicorn/no-console-spaces: [0]
unicorn/no-document-cookie: [2]
unicorn/no-fn-reference-in-iterator: [0]
unicorn/no-for-loop: [0]
unicorn/no-hex-escape: [0]
Expand All @@ -384,6 +390,7 @@ rules:
unicorn/numeric-separators-style: [0]
unicorn/prefer-add-event-listener: [2]
unicorn/prefer-array-find: [2]
unicorn/prefer-array-flat-map: [2]
unicorn/prefer-array-flat: [2]
unicorn/prefer-array-index-of: [2]
unicorn/prefer-array-some: [2]
Expand All @@ -394,8 +401,10 @@ rules:
unicorn/prefer-includes: [2]
unicorn/prefer-math-trunc: [2]
unicorn/prefer-modern-dom-apis: [0]
unicorn/prefer-module: [2]
unicorn/prefer-negative-index: [2]
unicorn/prefer-node-append: [0]
unicorn/prefer-node-protocol: [0]
unicorn/prefer-node-remove: [0]
unicorn/prefer-number-properties: [0]
unicorn/prefer-optional-catch-binding: [2]
Expand All @@ -407,6 +416,7 @@ rules:
unicorn/prefer-spread: [0]
unicorn/prefer-starts-ends-with: [2]
unicorn/prefer-string-slice: [0]
unicorn/prefer-switch: [0]
unicorn/prefer-ternary: [0]
unicorn/prefer-text-content: [2]
unicorn/prefer-trim-start-end: [2]
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ _testmain.go

*coverage.out
coverage.all
cpu.out

/modules/options/bindata.go
/modules/options/bindata.go.hash
Expand Down Expand Up @@ -75,11 +76,14 @@ coverage.all
/integrations/mssql.ini
/node_modules
/yarn.lock
/yarn-error.log
/npm-debug.log*
/public/js
/public/serviceworker.js
/public/css
/public/fonts
/public/img/webpack
/web_src/fomantic/node_modules
/web_src/fomantic/build/*
!/web_src/fomantic/build/semantic.js
!/web_src/fomantic/build/semantic.css
Expand Down
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,7 @@ issues:
- text: "exitAfterDefer:"
linters:
- gocritic
- path: modules/graceful/manager_windows.go
linters:
- staticcheck
text: "svc.IsAnInteractiveSession is deprecated: Use IsWindowsService instead."
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
audit=false
fund=false
update-notifier=false
package-lock=true
save-exact=true
Loading

0 comments on commit 1a40351

Please sign in to comment.