Commit Graph

4708 Commits

Author SHA1 Message Date
wxiaoguang d03e7fd65e
Support disable passkey auth () ()
* Backport 
* Backport 

---------

Co-authored-by: yp05327 <576951401@qq.com>
2025-03-07 21:31:25 +02:00
Jimmy Praet e3021fae79
Use MatchPhraseQuery for bleve code search ()
Fix regression from  which unintentionally changed the search mode
for bleve from MaatchPhraseQuery to MatchQuery.

On the main branch, meanwhile with  a "literal code search" mode
(by using quotes) was implemented as workaround for this unexpected code
search behavior. Maybe that feature needs some redesign as it turns out
to have been caused by a regression.

But this PR at least already fixes the regression for 1.23.x
2025-02-25 20:20:54 +00:00
Giteabot 039924aa2a
Try to fix ACME path when renew () ()
Backport  by wxiaoguang

Try to fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-23 12:58:10 +00:00
Giteabot 8844e62cb4
git graph: don't show detached commits () ()
Backport  by ericLemanissier

Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
2025-02-20 09:11:43 +08:00
Giteabot 0512b02b01
Fix project issues list and counting () ()
Backport  by lunny

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-18 00:59:32 +08:00
Giteabot 76bd60fc1d
Fix various problems (artifact order, api empty slice, assignee check, fuzzy prompt, mirror proxy, adopt git) () ()
Backport  by @wxiaoguang

* Make artifact list output has stable order
* Fix 
* Fix 
* Fix 
* Fix 
* Fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-13 07:33:11 +08:00
Giteabot 2df7d0835a
Fix unnecessary comment when moving issue on the same project column () ()
Backport  by @lunny

Fix 

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-02-05 04:41:48 +00:00
Lunny Xiao 23971a77a0
Add tests for webhook and fix some webhook bugs () ()
This PR created a mock webhook server in the tests and added integration
tests for generic webhooks.
It also fixes bugs in package webhooks and pull request comment
webhooks.

This also corrected an error on the package webhook. The previous
implementation uses a `User` struct as an organization, now it has been
corrected but it will not be consistent with the previous
implementation, some fields which not belong to the organization have
been removed.

Backport 
Backport part of 
2025-02-02 14:44:50 +08:00
Giteabot ebac324ff2
Fix `GetCommitBranchStart` bug () ()
Backport  by Zettat123

Fix 
Fix 

This PR also fixes some bugs in `TestGitGeneral`.

---------

Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-01 09:43:10 +01:00
Giteabot 7df1204795
Fix SSH LFS memory usage () ()
Backport  by wxiaoguang

Fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-31 11:30:16 +00:00
Giteabot 159544a950
Revert empty lfs ref name () ()
Backport  by wxiaoguang

Fix 

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-31 10:27:23 +00:00
wxiaoguang a8eaf43f97
Fix user avatar () 2025-01-30 17:11:13 +08:00
silverwind 987d014468
Update go tool dependencies () ()
Clean cherry-pick of https://github.com/go-gitea/gitea/pull/32916.
Update all go tool dependencies to latest version.
2025-01-22 11:37:47 -05:00
wxiaoguang eef635523a
Make tracked time representation display as hours () ()
Try to backport , the only trivial conflict is in the helper
functions map in the helper.go

Fix 

Co-authored-by: Sysoev, Vladimir <i@vsysoev.ru>
2025-01-21 06:49:58 +08:00
wxiaoguang bf664c2e85
Trivial fixes () ()
Backport 

The only conflict is caused by `templates/shared/issueicon.tmpl`
2025-01-18 03:09:17 +08:00
wxiaoguang 52d298890b
Fix "stop time tracking button" on navbar () ()
Backport  (no conflict)
Fix , and remove incorrect translations
2025-01-17 04:48:31 +08:00
Giteabot 2c47b06869
Fix mirror bug () ()
Backport  by lunny

Fix 

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-12 11:11:02 +00:00
Giteabot 31f2a325dc
fix(cache): cache test triggered by non memory cache () ()
Backport  by TheFox0x7

Change SlowCacheThreshold to 30 milliseconds so it doesn't trigger on
non memory cache

Closes: https://github.com/go-gitea/gitea/issues/33190
Closes: https://github.com/go-gitea/gitea/issues/32657

Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
2025-01-12 09:19:37 +08:00
Giteabot d70348836b
Fix sync fork for consistency () ()
Backport  by changchaishi

Fixes 

An integration test could be added.

---------

Co-authored-by: Chai-Shi <changchaishi@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-10 15:11:45 +08:00
Giteabot d65af69c2b
Fix pam auth test regression () ()
Backport  by TheFox0x7

fixes: https://github.com/go-gitea/gitea/issues/33168

Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
2025-01-09 13:33:50 +00:00
wxiaoguang 531f36ea4a
Fix `git remote` error check, fix dependencies, fix js error () ()
And update some dependencies to fix bugs.

Backport  , 

Fix 
Fix 
Fix 

---------

Co-authored-by: yp05327 <576951401@qq.com>
2025-01-08 05:08:44 +00:00
wxiaoguang 0fad40dd8c
Fix package error handling and npm meta and empty repo guide () 2025-01-06 14:17:28 +08:00
wxiaoguang e10d222434
Fix bleve fuzziness search () () 2025-01-02 21:45:14 +00:00
wxiaoguang 81768675d4
Inherit submodules from template repository content () ()
Backport  (it more likely a bug fix)

Co-authored-by: Steffen Schröter <steffen@vexar.de>
2025-01-02 12:17:05 +08:00
Giteabot 27de60381d
Fix settings not being loaded at CLI () ()
Backport  by cassiozareck

Closes 

Signed-off-by: cassiozareck <cassiomilczareck@gmail.com>
Co-authored-by: cassio zareck <121526696+cassiozareck@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-30 07:39:59 +00:00
Giteabot 610b2fb88d
Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache () () 2024-12-30 05:17:07 +00:00
wxiaoguang ce6a60a38b
Refactor testfixtures ()
Partial backport of 
2024-12-30 02:49:49 +00:00
Giteabot a0b65ed17f
Do not render truncated links in markdown () ()
Backport  by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-26 01:12:18 +08:00
Giteabot 6636b37a9c
Fix Azure blob object `Seek` () ()
Backport  by Zettat123

Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-25 06:17:27 +00:00
Giteabot af5e5e8f00
Fix maven pom inheritance () ()
Backport  by wxiaoguang

Fix  

At the moment, here only `GroupID` (no `Version`) is parsed & used

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-25 05:47:51 +00:00
Giteabot e18e31d557
Fix commit range paging () ()
Backport  by wxiaoguang

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-23 15:32:29 +08:00
Giteabot e1026feddc
Fix repo avatar conflict () ()
Backport  by wxiaoguang

Continue even if the avatar deleting fails

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-23 03:17:38 +00:00
Giteabot a8f98fd3be
fix trailing comma not matched in the case of alphanumeric issue () ()
Backport  by @katsusan

Fix .

Patch the regex to match `,`besides `.` `"` `'` `:` and space.

Co-authored-by: katsu <evergonuaa@gmail.com>
2024-12-23 06:08:35 +08:00
Giteabot b1c21880c1
Update i18n.go - Language Picker () () 2024-12-21 10:24:17 -05:00
wxiaoguang 1e71ad89ce
Deprecated gopid in log () 2024-12-20 16:20:51 +00:00
Giteabot c20642fa99
Relax the version checking for Arch packages () ()
Backport  by ExplodingDragon

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: Exploding Dragon <explodingfkl@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-19 19:02:58 +08:00
Giteabot cb42232080
Fix Arch package metadata introduced incorrect field () ()
Backport  by ExplodingDragon

Incorrect content was introduced while generating the index, which has
now been removed, and the missing fields have been added.

Co-authored-by: Exploding Dragon <explodingfkl@gmail.com>
2024-12-18 12:56:47 +01:00
wxiaoguang e98dd6ee5b
Backport 1.23 ()
Co-authored-by: delvh <dev.lh@web.de>
2024-12-17 11:58:27 +08:00
hiifong 276f43330c
Do not display `attestation-manifest` and use short sha256 instead of full sha256 ()
Related: 

Before:

![image](https://github.com/user-attachments/assets/bca17900-5075-4d15-af7a-c71bf8979c04)

After:

![image](https://github.com/user-attachments/assets/c5a24e3b-763b-4463-80db-d4dbd89f7dc4)

Index:
```json
{
  "schemaVersion": 2,
  "mediaType": "application/vnd.oci.image.index.v1+json",
  "manifests": [
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:5967afffdfde104ca1459286a72346baaef8b70ac153325d7a6cd85c7734ac6e",
      "size": 672,
      "platform": {
        "architecture": "amd64",
        "os": "linux"
      }
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:f9abfcc55320f9ff1f38eeb7dbb4bea10b29c7febfa49ccd7aab9fa02403b9f0",
      "size": 672,
      "platform": {
        "architecture": "arm64",
        "os": "linux"
      }
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:d70ad19d00c19e40691045cbddc3e8a5a4454c31cc454d1132b13bcaf35b6d46",
      "size": 566,
      "annotations": {
        "vnd.docker.reference.digest": "sha256:5967afffdfde104ca1459286a72346baaef8b70ac153325d7a6cd85c7734ac6e",
        "vnd.docker.reference.type": "attestation-manifest"
      },
      "platform": {
        "architecture": "unknown",
        "os": "unknown"
      }
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:73bc233bf4eac96a404ce3e0430b698831a4ea7050c878d5f76d1d1f133751dd",
      "size": 566,
      "annotations": {
        "vnd.docker.reference.digest": "sha256:f9abfcc55320f9ff1f38eeb7dbb4bea10b29c7febfa49ccd7aab9fa02403b9f0",
        "vnd.docker.reference.type": "attestation-manifest"
      },
      "platform": {
        "architecture": "unknown",
        "os": "unknown"
      }
    }
  ]
}
```

---------

Co-authored-by: silverwind <me@silverwind.io>
2024-12-16 10:22:49 +08:00
TheFox0x7 33e8e82c4b
Enable tenv and testifylint rules ()
Enables tenv and testifylint linters
closes: https://github.com/go-gitea/gitea/issues/32842
2024-12-15 10:41:29 +00:00
wxiaoguang d1c1e3cbcc
Fine tune ssh related comments and code ()
Add more comments to explain the ssh problem, 
and rename `sshConn` to `sshSession`
2024-12-15 06:07:50 +00:00
silverwind 1cfb718976
Update golangci-lint to v1.62.2, fix issues ()
Update it and fix new issues related to `redefines-builtin-id`
2024-12-15 02:31:07 +00:00
hiifong 7616aeb2ea
In some lfs server implementations, they require the ref attribute. ()
Fix: 

In some lfs server implementations, they require the ref attribute.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-15 02:06:21 +00:00
wxiaoguang cc5ff98e0d
Refactor markdown math render ()
Add more tests
2024-12-14 13:43:05 +08:00
hiifong 82c59d52ea
Add User-Agent for gitea's self-implemented lfs client. () 2024-12-14 03:35:19 +00:00
wxiaoguang a66c16dc1b
Allow to fork repository into the same owner ()
This feature is experimental, not fully tested, and may be changed in
the future.

It is only designed for users who really need it: set
`[repository].ALLOW_FORK_INTO_SAME_OWNER=true` in your app.ini

Doc: https://gitea.com/gitea/docs/pulls/122


![image](https://github.com/user-attachments/assets/38d08c23-9cfc-49d8-9321-ff81edf65395)
2024-12-14 09:39:05 +08:00
wxiaoguang 5bc030efa2
Fix various UI bugs () 2024-12-13 01:45:32 -05:00
wxiaoguang 2910f384d5
Fix misuse of PublicKeyCallback ()
Only upgrading the ssh package is not enough.
2024-12-13 03:57:37 +00:00
hiifong 0b8a8941a0
Fix lfs migration ()
Fix: 
2024-12-12 21:36:39 +00:00
wxiaoguang 22bf2ca6ba
Make API "compare" accept commit IDs () 2024-12-12 08:10:09 +00:00