Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from go-gitea:main #33

Merged
merged 135 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
83c5072
[skip ci] Updated translations via Crowdin
GiteaBot Apr 5, 2024
07bcfc1
Commit-Dropdown: Show Author of commit if available (#30272)
sebastian-sauer Apr 5, 2024
9550404
Upgrade `golang.org/x/net` to v0.24.0 (#30283)
silverwind Apr 5, 2024
5dabc67
Update JS dependencies and add new eslint rules (#30279)
silverwind Apr 5, 2024
556099f
Add gap to commit status details (#30284)
silverwind Apr 5, 2024
b2b49c9
Fix view commit link (#30297)
wxiaoguang Apr 5, 2024
9c1f4da
Always use `octicon-eye` on watch button (#30288)
silverwind Apr 6, 2024
7396172
Fix code block style for code preview (#30298)
wxiaoguang Apr 6, 2024
662eb4b
Markup color and font size fixes (#30282)
silverwind Apr 6, 2024
649aada
Remove fomantic list module (#30281)
silverwind Apr 6, 2024
4822390
[skip ci] Updated translations via Crowdin
GiteaBot Apr 7, 2024
bbe5cd7
Refactor startup deprecation messages (#30305)
wxiaoguang Apr 7, 2024
94aad35
Fix right-aligned input icons (#30301)
silverwind Apr 7, 2024
83f8301
Clean up log messages (#30313)
wxiaoguang Apr 7, 2024
644ade5
Fix checkboxes on mobile view, remove some dead css (#30308)
silverwind Apr 7, 2024
0178eae
Action view mobile improvements and fixes (#30309)
silverwind Apr 7, 2024
019857a
Add `--page-spacing` variable, fix admin dashboard notice (#30302)
silverwind Apr 7, 2024
36887ed
Fix and rewrite contrast color calculation, fix project-related bugs …
silverwind Apr 7, 2024
8498e67
Some NuGet package enhancements (#30280)
KN4CK3R Apr 7, 2024
0c7b0c5
[skip ci] Updated licenses and gitignores
GiteaBot Apr 8, 2024
074a3e0
Fix oauth2 builtin application logic (#30304)
wxiaoguang Apr 8, 2024
7d66b9e
Avoid showing `Failed to change the default wiki branch` if repo has …
yp05327 Apr 8, 2024
d872ce0
Avoid running action when action unit is disabled after workflows det…
yp05327 Apr 8, 2024
ff7aab4
Add optional doctor storage init (#30330)
viceice Apr 8, 2024
908426a
Fix missed doer (#30231)
lunny Apr 8, 2024
d7013c2
[skip ci] Updated translations via Crowdin
GiteaBot Apr 9, 2024
72dc75e
Reduce checkbox size to 15px (#30346)
silverwind Apr 9, 2024
263a716
Performance optimization for git push (#30104)
lunny Apr 9, 2024
8d14266
Fix label-list rendering in timeline, decrease gap (#30342)
silverwind Apr 9, 2024
d547b53
Add container.FilterSlice function (#30339)
oliverpool Apr 9, 2024
63c80ae
Fix actions design about default actions download url (#30360)
lunny Apr 9, 2024
fec7542
Fix floated list items (#30377)
silverwind Apr 10, 2024
310e251
Fix ambiguous id when fetch Actions tasks (#30382)
wolfogre Apr 10, 2024
b09687f
Refactor more filterslice (#30370)
lunny Apr 10, 2024
6cac11c
Fix line height on inline code preview (#30372)
silverwind Apr 10, 2024
50099d7
Various improvements for long file and commit names (#30374)
silverwind Apr 10, 2024
c1f76ae
Use raw Wiki links for non-renderable Wiki files (#30273)
rafaelsgirao Apr 10, 2024
e7ecdba
Minor color tweaks (#30397)
silverwind Apr 10, 2024
17c7ebb
[skip ci] Updated translations via Crowdin
GiteaBot Apr 11, 2024
f0bfad2
Replace MSSQL driver with a better maintained version (#30390)
lunny Apr 11, 2024
e6d3f9f
Upgrade golangci-lint to v1.57.2 (#30401)
silverwind Apr 11, 2024
50dbed6
Fix author name alignment in commits table (#30396)
silverwind Apr 11, 2024
f3cc006
Update actions variables documents (#30394)
lunny Apr 11, 2024
96d31fe
Avoid user does not exist error when detecting schedule actions when …
yp05327 Apr 11, 2024
0fe9f93
Check the token's owner and repository when registering a runner (#30…
Zettat123 Apr 11, 2024
26ee663
Split `issue edit` code from `repo-legacy.js` into its own file (#30419)
wxiaoguang Apr 11, 2024
fc34481
Add commit status summary table to reduce query from commit status ta…
lunny Apr 12, 2024
e8a99c8
Fix the spacing issue in the Project view (#30415)
HEREYUA Apr 12, 2024
7af074d
Change the default maxPerPage for gitbucket (#30392)
jam7 Apr 12, 2024
f9fdac9
Limit the max line length when parsing git grep output (#30418)
wxiaoguang Apr 12, 2024
9466fec
Fix rename branch 500 when the target branch is deleted but exist in …
lunny Apr 12, 2024
25427e0
Remove jQuery from the commit graph (except Fomantic) (#30395)
yardenshoham Apr 12, 2024
f9c3e79
Fix commit status cache which missed target_url (#30426)
lunny Apr 12, 2024
487b127
Lock a few tool dependencies to major versions (#30439)
silverwind Apr 12, 2024
6827183
Add `/public/assets/img/webpack` to ignore files again (#30451)
silverwind Apr 13, 2024
b4d8691
Fix mirror error when mirror repo is empty (#30432)
yp05327 Apr 13, 2024
8fd8978
Fix admin notice view-detail (#30450)
silverwind Apr 13, 2024
c248f01
Refactor cache and disable go-chi cache (#30417)
wxiaoguang Apr 13, 2024
c28bed2
Update JS and PY deps, lock eslint and related plugins (#30452)
silverwind Apr 13, 2024
92e27e1
Add comment for ContainsRedirectURI about the exact match (#30457)
wxiaoguang Apr 13, 2024
18dd9f9
Fix label rendering (#30456)
wxiaoguang Apr 13, 2024
fd59cd9
Avoid losing token when updating mirror settings (#30429)
wolfogre Apr 13, 2024
af02b8a
Fix network error when open/close organization/individual projects an…
yp05327 Apr 13, 2024
c77e814
Add `interface{}` to `any` replacement to `make fmt`, exclude `*.pb.g…
silverwind Apr 13, 2024
b18c04e
fix: Fix to delete cookie when AppSubURL is non-empty (#30375)
jtran Apr 14, 2024
ce130ae
Fix JS error when opening to expanded code comment (#30463)
silverwind Apr 14, 2024
6999a88
Pulse page improvements (#30149)
silverwind Apr 14, 2024
4b1063f
Rewrite and restyle reaction selector and enable no-sizzle eslint rul…
silverwind Apr 14, 2024
044cc16
Use `flex-container` for dashboard layout (#30214)
silverwind Apr 14, 2024
f326754
Remove fomantic menu module (#30325)
silverwind Apr 14, 2024
e20428d
Fix commitstatus summary (#30431)
lunny Apr 14, 2024
4c6e2da
Improve "must-change-password" logic and document (#30472)
wxiaoguang Apr 14, 2024
9946353
Remove fomantic button module (#30475)
silverwind Apr 14, 2024
b84baf2
Improve flex ellipsis (#30479)
wxiaoguang Apr 14, 2024
ef3941f
Revert 100% label max-width (#30481)
silverwind Apr 15, 2024
708e87e
[skip ci] Updated licenses and gitignores
GiteaBot Apr 15, 2024
994920c
Kill all gitea processes before air build (#30477)
silverwind Apr 15, 2024
1508a85
Fix overflow on issue dependency (#30484)
silverwind Apr 15, 2024
c63060b
Fix code owners will not be mentioned when a pull request comes from …
lunny Apr 15, 2024
2dc7e9e
Fix button color on red and green buttons (#30500)
silverwind Apr 15, 2024
3b40ebf
Remove active border on pointing menu (#30486)
silverwind Apr 15, 2024
2c80421
Convert max file name length to 255 (#30489)
yp05327 Apr 15, 2024
b9f69b4
Fix various overflows on actions view (#30344)
silverwind Apr 15, 2024
3b045ee
[skip ci] Updated translations via Crowdin
GiteaBot Apr 16, 2024
c70e442
feat(api): implement branch/commit comparison API (#30349)
appleboy Apr 16, 2024
cf9061f
Fix empty field `login_name` in API response JSON when creating user …
yp05327 Apr 16, 2024
6ba0c37
Allow `preferred_username` as username source for OIDC (#30454)
SimonErm Apr 16, 2024
58b204b
Update API to return 'source_id' for users (#29718)
tobiasbp Apr 16, 2024
a658e2f
Fix long branch name overflows (#30345)
silverwind Apr 16, 2024
3746a62
Tweak repo buttons on mobile and labeled button border-radius (#30503)
silverwind Apr 16, 2024
5ccd042
Tweak and fix toggle checkboxes (#30527)
silverwind Apr 16, 2024
38147d0
[skip ci] Updated translations via Crowdin
GiteaBot Apr 17, 2024
6f7d70f
Reduce unnecessary database queries on actions table (#30509)
lunny Apr 17, 2024
4f276a3
Fix install page checkboxes and dropdown width (#30526)
silverwind Apr 17, 2024
3e2e76e
Refactor web routes (#30519)
wxiaoguang Apr 17, 2024
311f526
Fix and tweak pull request commit list (#30528)
silverwind Apr 17, 2024
8e12ef9
Run `go generate` and `go vet` on all packages (#30529)
silverwind Apr 17, 2024
0798370
Correct locale string rendering (#30522)
wxiaoguang Apr 17, 2024
02e183b
Fix branch_protection api shows users/teams who has no readAccess (#3…
edwardzhanged Apr 17, 2024
bafb80f
Support nuspec manifest download for nuget packages (#28921)
viceice Apr 17, 2024
3feba9f
Allow everyone to read or write a wiki by a repo unit setting (#30495)
wxiaoguang Apr 17, 2024
be5be0a
Expose fuzzy search for issues/pulls (#29701)
6543 Apr 18, 2024
ffc9879
[skip ci] Updated translations via Crowdin
GiteaBot Apr 18, 2024
2da1dcf
Add an api test for updating user (#30539)
lunny Apr 18, 2024
49b80f8
Disable enter key for accepting code completion in Monaco (#30548)
silverwind Apr 18, 2024
3153813
Fix border-radius on view, blame and code search (#30545)
silverwind Apr 18, 2024
d4ec6b3
Add form field id generation, remove duplicated ids (#30546)
silverwind Apr 18, 2024
d1ba5f4
Some following up changes for routes (#30550)
wxiaoguang Apr 18, 2024
86d4c8a
Fixup app.example.ini for task section, which is now queue.task (#30555)
xor-gate Apr 18, 2024
d0e0708
Refactor and fix archive link bug (#30535)
wxiaoguang Apr 18, 2024
3547054
Add a few root files to lint-spell (#30530)
silverwind Apr 18, 2024
dd8e6ae
Improve "Reference in new issue" modal (#30547)
silverwind Apr 18, 2024
bcbeb24
Mock queue backoff duration (#30553)
wxiaoguang Apr 18, 2024
ba9b124
[skip ci] Updated translations via Crowdin
GiteaBot Apr 19, 2024
acfe29f
Enable npm cache on `setup-node` action (#30577)
silverwind Apr 19, 2024
61457cd
Avoid importing `modules/web/middleware` in `modules/session` (#30584)
wolfogre Apr 19, 2024
fe82991
Fix changelog (main) (#30582)
wxiaoguang Apr 19, 2024
eb24d97
Fix project description rendering for org (#30587)
wxiaoguang Apr 19, 2024
f60e1a1
Fix HEAD method for robots.txt (#30603)
wxiaoguang Apr 19, 2024
53cf46c
Fix commit file status parser (#30602)
wxiaoguang Apr 19, 2024
cb6814a
Use action user as the trigger user of schedules (#30581)
yp05327 Apr 20, 2024
89e3987
Fix links in PyPI Simple Repository API page (#30594)
wxiaoguang Apr 20, 2024
48d4580
Clarify permission "HasAccess" behavior (#30585)
wxiaoguang Apr 20, 2024
b06aac4
Fix package list performance (#30520)
KN4CK3R Apr 20, 2024
99d789e
[skip ci] Updated translations via Crowdin
GiteaBot Apr 21, 2024
e865de1
Use maintained gziphandler (#30592)
lunny Apr 21, 2024
f95622c
Fix issue comment form and quick-submit (#30623)
wxiaoguang Apr 21, 2024
9de443c
chore: use errors.New to replace fmt.Errorf with no parameters will m…
ChengenH Apr 21, 2024
1b1b850
Fix flash on dashboard (#30572)
silverwind Apr 21, 2024
0606284
Add --skip-db option to dump command (#30613)
kemzeb Apr 21, 2024
6459c50
fix(api): refactor branch and tag existence checks (#30618)
appleboy Apr 21, 2024
1e48677
Fix dropdown text ellipsis (#30628)
wxiaoguang Apr 21, 2024
f4a1cf7
Fix repo home UI when there is no repo description (#30552)
wxiaoguang Apr 21, 2024
7cb88e9
Use correct hash for "git update-index" (#30626)
wxiaoguang Apr 22, 2024
31386dc
[skip ci] Updated licenses and gitignores
GiteaBot Apr 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ root = "."
tmp_dir = ".air"

[build]
pre_cmd = ["killall -9 gitea 2>/dev/null || true"] # kill off potential zombie processes from previous runs
cmd = "make --no-print-directory backend"
bin = "gitea"
delay = 1000
delay = 2000
include_ext = ["go", "tmpl"]
include_file = ["main.go"]
include_dir = ["cmd", "models", "modules", "options", "routers", "services"]
Expand Down
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ cpu.out
/.air
/.go-licenses

# Files and folders that were previously generated
/public/assets/img/webpack

# Snapcraft
snap/.snapcraft/
parts/
Expand Down
9 changes: 6 additions & 3 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ rules:
jquery/no-serialize: [2]
jquery/no-show: [2]
jquery/no-size: [2]
jquery/no-sizzle: [0]
jquery/no-sizzle: [2]
jquery/no-slide: [0]
jquery/no-submit: [0]
jquery/no-text: [0]
Expand Down Expand Up @@ -470,7 +470,7 @@ rules:
no-jquery/no-selector-prop: [2]
no-jquery/no-serialize: [2]
no-jquery/no-size: [2]
no-jquery/no-sizzle: [0]
no-jquery/no-sizzle: [2]
no-jquery/no-slide: [2]
no-jquery/no-sub: [2]
no-jquery/no-support: [2]
Expand Down Expand Up @@ -537,7 +537,7 @@ rules:
no-underscore-dangle: [0]
no-unexpected-multiline: [2]
no-unmodified-loop-condition: [2]
no-unneeded-ternary: [0]
no-unneeded-ternary: [2]
no-unreachable-loop: [2]
no-unreachable: [2]
no-unsafe-finally: [2]
Expand Down Expand Up @@ -716,12 +716,14 @@ rules:
unicorn/import-style: [0]
unicorn/new-for-builtins: [2]
unicorn/no-abusive-eslint-disable: [0]
unicorn/no-anonymous-default-export: [0]
unicorn/no-array-callback-reference: [0]
unicorn/no-array-for-each: [2]
unicorn/no-array-method-this-argument: [2]
unicorn/no-array-push-push: [2]
unicorn/no-array-reduce: [2]
unicorn/no-await-expression-member: [0]
unicorn/no-await-in-promise-methods: [2]
unicorn/no-console-spaces: [0]
unicorn/no-document-cookie: [2]
unicorn/no-empty-file: [2]
Expand All @@ -738,6 +740,7 @@ rules:
unicorn/no-null: [0]
unicorn/no-object-as-default-parameter: [0]
unicorn/no-process-exit: [0]
unicorn/no-single-promise-in-promise-methods: [2]
unicorn/no-static-only-class: [2]
unicorn/no-thenable: [2]
unicorn/no-this-assignment: [2]
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* text=auto eol=lf
*.tmpl linguist-language=Handlebars
*.pb.go linguist-generated
/assets/*.json linguist-generated
/public/assets/img/svg/*.svg linguist-generated
/templates/swagger/v1_json.tmpl linguist-generated
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/pull-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: pip install poetry
- run: make deps-py
- run: make deps-frontend
Expand Down Expand Up @@ -65,6 +67,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend
- run: make lint-swagger

Expand Down Expand Up @@ -134,6 +138,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend
- run: make lint-frontend
- run: make checks-frontend
Expand Down Expand Up @@ -181,6 +187,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend
- run: make lint-md
- run: make docs
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend frontend deps-backend
- run: npx playwright install --with-deps
- run: make test-e2e-sqlite
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend deps-backend
# xgo build
- run: make release
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-tag-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend deps-backend
# xgo build
- run: make release
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-tag-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend deps-backend
# xgo build
- run: make release
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ cpu.out
/.air
/.go-licenses

# Files and folders that were previously generated
/public/assets/img/webpack

# Snapcraft
/gitea_a*.txt
snap/.snapcraft/
Expand Down
7 changes: 3 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ linters:

run:
timeout: 10m
skip-dirs:
- node_modules
- public
- web_src

linters-settings:
stylecheck:
Expand Down Expand Up @@ -90,10 +86,13 @@ linters-settings:
desc: do not use the internal package, use AddXxx function instead
- pkg: gopkg.in/ini.v1
desc: do not use the ini package, use gitea's config system instead
- pkg: gitea.com/go-chi/cache
desc: do not use the go-chi cache package, use gitea's cache system

issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-dirs: [node_modules, public, web_src]
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
Expand Down
Loading
Loading