Commit Graph

19006 Commits (3c863223c53cbef7203bc68ef41f2bc6e38229b6)
 

Author SHA1 Message Date
yp05327 7bb7ba1b5b
Add `show more` organizations icon in user's profile (#32986)
Close #32952

# ⚠️ Doc update is required


![image](https://github.com/user-attachments/assets/296c5109-8fc1-43ea-b7dc-e79919cc1f9a)

![image](https://github.com/user-attachments/assets/d30980f6-22e4-4b97-9143-c750dc399da6)


------
⚠️This PR refuses to be cherry-picked by any forked projects without any
mentions.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 months ago
Lunny Xiao 2178347348
add function for recusive 3 months ago
Lunny Xiao 15f4b920b7 Merge branch 'add-file-tree-to-file-view-page' of github.com:kerwin612/gitea into kerwin612-add-file-tree-to-file-view-page 3 months ago
wxiaoguang 550abdbc24
Improve "ellipsis string" (#32989) 3 months ago
wxiaoguang 9bfa9f450d
Refactor "string truncate" (#32984) 3 months ago
Kerwin Bryant 634fbe0c2d
Merge branch 'main' into add-file-tree-to-file-view-page 3 months ago
Kerwin Bryant 143249f4f1 change loading 3 months ago
wxiaoguang 594edad213
Do not render truncated links in markdown (#32980)
Fixes #31780
3 months ago
Kerwin Bryant 158b79e40a debug new api /tree 3 months ago
Lunny Xiao 5feb1a6bff
Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467)
The behaviors of closing issues and reopening issues are very different.
So splitting it into two different functions makes it easier to
maintain.

- [x] Split ChangeIssueStatus into CloseIssue and ReopenIssue both at
the service layer and model layer
- [x] Rename `isClosed` to `CloseOrReopen` to make it more readable.
- [x] Add transactions for ReopenIssue and CloseIssue

---------

Co-authored-by: Zettat123 <zettat123@gmail.com>
3 months ago
Lunny Xiao f44712f22b
demilestone should not include milestone (#32923)
Fix #32887
3 months ago
metiftikci 1a7591d7f9
fix textarea newline handle (#32966)
- Fix cursor position if input newline on middle of lines
- ~Increment number if numbered list~


![image](https://github.com/user-attachments/assets/bcfe2625-11a8-4ea4-9a71-b7ecfe81b2e0)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 months ago
Zettat123 abaeae0b9c
Fix Azure blob object `Seek` (#32974)
This bug was found in a
[test](https://github.com/go-gitea/gitea/actions/runs/12464294025/job/34788152194?pr=32883#step:9:105)
of #32883

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 months ago
wxiaoguang 973363fec3
Fix maven pom inheritance (#32943)
Fix  #30568
3 months ago
wxiaoguang ca31d478ee
Refactor arch route handlers (#32972) 3 months ago
GiteaBot 65e45fdcfd [skip ci] Updated translations via Crowdin 3 months ago
wxiaoguang b7260400f8
Refactor tmpl and blob_excerpt (#32967)
1. do not use `{{/* */}}` to remove spaces, use `{{- -}}`
2. fix "blob_excerpt" endpoint, remove the legacy fragile code: have
tested commit diff and wiki diff
3 months ago
wxiaoguang 2a828e2798
Clarify path param naming (#32969)
In history (from some legacy frameworks), both `:name` and `name` are
supported as path path name, `:name` is an alias to `name`.

To make code consistent, now we should only use `name` but not `:name`.

Also added panic check in related functions to make sure the name won't
be abused in case some downstreams still use them.
3 months ago
Kerwin Bryant 76a56149d5
Merge branch 'main' into add-file-tree-to-file-view-page 3 months ago
Kerwin Bryant a1830dc1e8
Merge pull request #3 from lunny/add-file-tree-to-file-view-page
Fix a TODO
3 months ago
Lunny Xiao f2b1da5392
Fix bug 3 months ago
Lunny Xiao b8b690feb9
Refactor getpatch/getdiff functions and remove unnecessary fallback (#32817)
Extract from #32786 

`git diff a..b` is equal to `git diff a b` which is different from `git
diff a...b`. For pull request, we should always 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 months ago
Lunny Xiao 3b3eaec840
Fix todo 3 months ago
Kerwin Bryant 6cb22e5046
Merge pull request #2 from lunny/add-file-tree-to-file-view-page
Add some backend logic
3 months ago
Kerwin Bryant 023a26037e
Merge branch 'add-file-tree-to-file-view-page' into add-file-tree-to-file-view-page 3 months ago
Kerwin Bryant e46f7e40a1
Merge branch 'main' into add-file-tree-to-file-view-page 3 months ago
Lunny Xiao a86c9e43a9 Merge branch 'main' into add-file-tree-to-file-view-page 3 months ago
Lunny Xiao 38de8aa341 Merge branch 'add-file-tree-to-file-view-page' of github.com:kerwin612/gitea into add-file-tree-to-file-view-page 3 months ago
Lunny Xiao a28b65d69b
complete first version 3 months ago
wxiaoguang 6d5aa9218e
Refactor request context (#32956)
Introduce RequestContext: is a short-lived context that is used to store
request-specific data.

RequestContext could be used to clean form tmp files, close context git
repo, and do some tracing in the future.

Then a lot of legacy code could be removed or improved. For example:
most `ctx.Repo.GitRepo.Close()` could be removed because the git repo
could be closed when the request is done.
3 months ago
wxiaoguang 781c6df40f
Add sub issue list support (#32940)
Just like GitHub, show issue icon/title when the issue number is in a list
3 months ago
GiteaBot 02c64e48b7 [skip ci] Updated translations via Crowdin 3 months ago
wxiaoguang 7553ae1a57
Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946)
Fix #23703

When Gitea starts, it reads GITEA_RUNNER_REGISTRATION_TOKEN
or GITEA_RUNNER_REGISTRATION_TOKEN_FILE to add registration token.
3 months ago
wxiaoguang bd5d1341d4
Fix commit range paging (#32944) 3 months ago
wxiaoguang 89f31f79fd
Fix outdated tmpl code (#32953)
Some PRs were before tmpl ctx refactoring and used outdated code
3 months ago
Kerwin Bryant 07fb84f830
Merge branch 'main' into add-file-tree-to-file-view-page 3 months ago
wxiaoguang 462ce31530
Fix repo avatar conflict (#32958)
Continue even if the avatar deleting fails
3 months ago
GiteaBot b5f9a2d7c0 [skip ci] Updated licenses and gitignores 3 months ago
katsu fb75151fb1
fix trailing comma not matched in the case of alphanumeric issue (#32945)
Fix #32428.

Patch the regex to match `,`besides `.` `"` `'` `:` and space.
3 months ago
bytedream 6279646ee4
Add auto-expanding running actions step (#30058)
Auto-expands the currently running action step.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 months ago
Illya Marchenko daf2776db7
Fix #32954 (#32955)
`/bin/s6-svscan` is actuall located at `/usr/bin/s6-svscan`
3 months ago
techknowlogick a09ea2f483
Use Alpine 3.21 for the docker images (#32924) 3 months ago
wxiaoguang a163c53a60
Refactor template & test related code (#32938)
Move some legacy code from "base" package to proper packages.
3 months ago
wxiaoguang afe314fa77
Use primary as button color (#32949)
* Fix #32871
* Fix #32948
3 months ago
GiteaBot 35c86af164 [skip ci] Updated translations via Crowdin 3 months ago
bytedream 5d6d62493b
Add action auto-scroll (#30057)
Adds an auto-scroll/follow feature to running actions (fix #25186, fix
#28535).

When new log lines are appended and the bottom of the logs container
(`.action-view-right`) is visible at this time, the page automatically
scrolls down to the bottom of the logs.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
3 months ago
wxiaoguang 143946834a
Fix locale (#32937)
Fix #32936
3 months ago
silverwind c0e80dbe26
Enable Typescript `strictFunctionTypes` (#32911)
1. Enable
[strictFunctionTypes](https://www.typescriptlang.org/tsconfig/#strictFunctionTypes)
2. Introduce `DOMEvent` helper type which sets `e.target`. Surely not
totally correct with that `Partial` but seems to work.
3. Various type-related refactors, change objects in
`eventsource.sharedworker.ts` to `Map`.
3 months ago
wxiaoguang 09a0041965
Fix areYouSure confirm (#32941)
See the comment
3 months ago
Aindriú Mac Giolla Eoin 23687a0a71
Update i18n.go - Language Picker (#32933) 3 months ago