aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix Azure blob object `Seek` (#32974)Zettat1232024-12-252-1/+46
| | | | | | | | | 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>
* Fix maven pom inheritance (#32943)wxiaoguang2024-12-253-9/+63
| | | Fix #30568
* Refactor arch route handlers (#32972)wxiaoguang2024-12-253-150/+221
|
* [skip ci] Updated translations via CrowdinGiteaBot2024-12-251-0/+1
|
* Refactor tmpl and blob_excerpt (#32967)wxiaoguang2024-12-2516-132/+108
| | | | | 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
* Clarify path param naming (#32969)wxiaoguang2024-12-24102-429/+461
| | | | | | | | | 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.
* Refactor getpatch/getdiff functions and remove unnecessary fallback (#32817)Lunny Xiao2024-12-243-67/+24
| | | | | | | | | | 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>
* Refactor request context (#32956)wxiaoguang2024-12-2434-419/+376
| | | | | | | | | | | 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.
* Add sub issue list support (#32940)wxiaoguang2024-12-2419-116/+332
| | | Just like GitHub, show issue icon/title when the issue number is in a list
* [skip ci] Updated translations via CrowdinGiteaBot2024-12-2428-0/+34
|
* Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946)wxiaoguang2024-12-238-18/+152
| | | | | | Fix #23703 When Gitea starts, it reads GITEA_RUNNER_REGISTRATION_TOKEN or GITEA_RUNNER_REGISTRATION_TOKEN_FILE to add registration token.
* Fix commit range paging (#32944)wxiaoguang2024-12-232-4/+24
|
* Fix outdated tmpl code (#32953)wxiaoguang2024-12-232-2/+2
| | | Some PRs were before tmpl ctx refactoring and used outdated code
* Fix repo avatar conflict (#32958)wxiaoguang2024-12-234-10/+14
| | | Continue even if the avatar deleting fails
* [skip ci] Updated licenses and gitignoresGiteaBot2024-12-237-20/+134
|
* fix trailing comma not matched in the case of alphanumeric issue (#32945)katsu2024-12-222-1/+2
| | | | | Fix #32428. Patch the regex to match `,`besides `.` `"` `'` `:` and space.
* Add auto-expanding running actions step (#30058)bytedream2024-12-226-56/+113
| | | | | | | Auto-expands the currently running action step. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix #32954 (#32955)Illya Marchenko2024-12-231-1/+1
| | | `/bin/s6-svscan` is actuall located at `/usr/bin/s6-svscan`
* Use Alpine 3.21 for the docker images (#32924)techknowlogick2024-12-222-4/+4
|
* Refactor template & test related code (#32938)wxiaoguang2024-12-22109-476/+479
| | | Move some legacy code from "base" package to proper packages.
* Use primary as button color (#32949)wxiaoguang2024-12-222-2/+2
| | | | * Fix #32871 * Fix #32948
* [skip ci] Updated translations via CrowdinGiteaBot2024-12-226-12/+0
|
* Add action auto-scroll (#30057)bytedream2024-12-212-6/+39
| | | | | | | | | | | | | 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>
* Fix locale (#32937)wxiaoguang2024-12-211-2/+2
| | | Fix #32936
* Enable Typescript `strictFunctionTypes` (#32911)silverwind2024-12-2221-84/+94
| | | | | | | | 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`.
* Fix areYouSure confirm (#32941)wxiaoguang2024-12-214-4/+12
| | | See the comment
* Update i18n.go - Language Picker (#32933)Aindriú Mac Giolla Eoin2024-12-211-0/+1
|
* Move some errors to their own sub packages (#32880)Lunny Xiao2024-12-2052-781/+728
|
* Improve navbar: add "admin" tip, add "active" style (#32927)wxiaoguang2024-12-202-51/+46
| | | By the way, remove all "tw-" patches and unused styles.
* Refactor db package and remove unnecessary `DumpTables` (#32930)wxiaoguang2024-12-2010-221/+247
|
* show warning on navigation if currently editing comment or title (#32920)Tim2024-12-205-16/+27
| | | | | | | | | | This PR fixes the issue https://github.com/go-gitea/gitea/issues/32223 Make the browser to show the confirm popup, as it does with other forms. --------- Co-authored-by: Tim Wundenberg <tim@wundenbergs.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor pprof labels and process desc (#32909)wxiaoguang2024-12-2031-247/+182
| | | | | | * Deprecate "gopid" in log, it is not useful and requires very hacky approach * Remove "git.Command.SetDescription" because it is not useful and only makes the logs too flexible
* [skip ci] Updated translations via CrowdinGiteaBot2024-12-201-4/+17
|
* Update JS dependencies (#32914)silverwind2024-12-192-1642/+524
| | | Result of `make update-js`. Tested Monaco and Math.
* Update go tool dependencies (#32916)silverwind2024-12-198-14/+11
| | | | | | | | | | | | | | | | | Update all go tool dependencies to latest version. WIP because I think there are new gopls errors, would like to confirm them on CI first. Here is from a local run: ``` modules/markup/markdown/goldmark.go:115:37-53: unnecessary type arguments modules/markup/html.go:45:32-49: unnecessary type arguments modules/markup/internal/renderinternal.go:20:33-49: unnecessary type arguments modules/markup/common/linkify.go:27:32-49: unnecessary type arguments modules/util/time_str.go:28:39-63: unnecessary type arguments routers/web/repo/pull.go:704:19: impossible condition: non-nil == nil modules/util/util_test.go:248:14-23: unused parameter: other ``` ~~Backport because the `gxz` update might have security benefits.~~
* Relax the version checking for Arch packages (#32908)Exploding Dragon2024-12-192-2/+11
| | | | | | | | | | | | It is mentioned in https://man.archlinux.org/man/PKGBUILD.5: 'The variable is not allowed to contain colons, forward slashes, hyphens, or whitespace.' `_` is also an allowed character, and some software in the Arch Linux AUR uses this naming convention. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor repo-projects.ts (#32892)silverwind2024-12-198-239/+152
| | | | | | | | | | - Remove jQuery - Add types to all functions - Tested all modified functionality --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add more load functions to make sure the reference object loaded (#32901)Lunny Xiao2024-12-192-0/+9
| | | Fix #32897
* [skip ci] Updated translations via CrowdinGiteaBot2024-12-193-0/+15
|
* bump x/net (#32896)techknowlogick2024-12-182-3/+3
|
* Move RepoBranchTagSelector init outside the SFC (#32890)silverwind2024-12-183-47/+38
| | | | | SFCs shouldn't export anything besides their component, and this eliminates one issue with tsc, while apparently also solving a hack. It seems to work as before, also when multiples are on the same page.
* Fix Arch package metadata introduced incorrect field (#32881)Exploding Dragon2024-12-183-1/+12
| | | | | | Incorrect content was introduced while generating the index, which has now been removed, and the missing fields have been added. ![](https://github.com/user-attachments/assets/4fbb8884-337e-43b1-939f-a5ba687f7ffd)
* Move delete deploy keys into service layer (#32201)Lunny Xiao2024-12-187-66/+61
|
* Move RepoTransfer from models to models/repo sub package (#32506)Lunny Xiao2024-12-1830-389/+383
| | | | | | | | | | | | | `RepoTransfer` now is at models, but if we want to move it into `repo` model, it will depend on `Team`. So this PR also makes repo model depend on org model to make it possible. Just refactor, no code change. - [x] Move `DeleteOrganization` from `models/organization` to service layer - [x] Move `AccessibleTeamReposEnv` to `models/repo` - [x] Move `RepoTransfer` from `models` to `models/repo` - [x] Merge `getUserTeamIDs` and `GetUserTeamIDs`, Merge `GetUserTeams` and `getUserTeams`. - [x] Remove `Team`'s `Repos []*repo_model.Repository` to avoid dependency recycle.
* Change pprof labels to be prometheus compatible (#32865)TheFox0x72024-12-184-10/+16
| | | | | Enables scrapping pprof endpoint for continuous profiling Closes: https://github.com/go-gitea/gitea/issues/32854
* Move eslint config to javascript (#32869)silverwind2024-12-182-967/+999
| | | | | | | In preparation for migrating to eslint flat config, move the config file to javascript. Additional changes: - `no-undef` is now disabled as it's no longer needed with typescript - `no-restricted-globals` config is simplified
* [skip ci] Updated translations via CrowdinGiteaBot2024-12-182-20/+712
|
* Fix various trivial problems (#32861)wxiaoguang2024-12-1712-4/+38
| | | | | | | | | | | | | | 1. add/improve comments to help future readers could understand the problem more easily. 2. add an error log to LDAP with username fallback 3. use `or` instead of `Iif` for "repo/branch_dropdown" (`Iif` was a mistake, but it doesn't really affect the UI) 4. add `tw-font-mono` style to container digest to match dockerhub 5. fix a bug in RepoBranchTagSelector: the form is not updated when there is no click to an item --------- Co-authored-by: delvh <dev.lh@web.de>
* [skip ci] Updated translations via CrowdinGiteaBot2024-12-174-4/+171
|
* Improve Actions status aggregations (#32860)v1.24.0-devwxiaoguang2024-12-162-9/+31
| | | | | | Make the result the same as GitHub: * all skipped, then result is skipped * any cancelled, then result cancelled