gitea/modules
Lunny Xiao 1352080ef7
Fix incorrect comment diff hunk parsing, fix github asset ID nil panic (#35046)
* Fix missing the first char when parsing diff hunk header
* Fix #35040
* Fix #35049

----

Introduced in
https://github.com/go-gitea/gitea/pull/12047/files#diff-de48c2f70e24ff5603180acf8b5ce9d0356ede8a45bfbf2a485707282ace6d6aR268

Before:

<img width="487" height="167" alt="image"
src="https://github.com/user-attachments/assets/17524c76-a296-4b4b-a4f9-c5150c41bae5"
/>

After:

<img width="749" height="144" alt="image"
src="https://github.com/user-attachments/assets/bcb12c76-c1ae-40f1-81b7-183d15f891db"
/>

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-11 15:18:41 -07:00
..
actions Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +08:00
activitypub Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
analyze Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
assetfs Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
auth Fix http auth header parsing (#34936) 2025-07-03 03:02:38 +00:00
avatar Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
badge Add flat-square action badge style (#34062) 2025-04-01 09:42:10 +00:00
base Fix http auth header parsing (#34936) 2025-07-03 03:02:38 +00:00
cache enforce explanation for necessary nolints and fix bugs (#34883) 2025-06-27 21:48:03 +08:00
cachegroup Cache GPG keys, emails and users when list commits (#34086) 2025-04-09 16:34:38 +00:00
charset Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
commitstatus enforce nolint scope (#34851) 2025-06-27 07:59:55 +02:00
container Refactor sidebar assignee&milestone&project selectors (#32465) 2024-11-11 04:07:54 +08:00
csv Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
dump Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
emoji Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
eventsource Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
fileicon Follow file symlinks in the UI to their target (#28835) 2025-07-01 06:55:36 +08:00
generate Refactor JWT secret generating & decoding code (#29172) 2024-02-16 15:18:30 +00:00
git Fix incorrect comment diff hunk parsing, fix github asset ID nil panic (#35046) 2025-07-11 15:18:41 -07:00
gitrepo Refactor Branch struct in package modules/git (#33980) 2025-04-02 17:31:32 +00:00
globallock Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
graceful enforce explanation for necessary nolints and fix bugs (#34883) 2025-06-27 21:48:03 +08:00
gtprof enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
hcaptcha Consume hcaptcha and pwn deps (#22610) 2023-01-29 09:49:51 -06:00
highlight Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
hostmatcher Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
htmlutil Improve `labels-list` rendering (#34846) 2025-06-27 23:12:25 +08:00
httpcache Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
httplib Make public URL generation configurable (#34250) 2025-04-22 06:49:37 +08:00
indexer Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
issue/template Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
json enforce explanation for necessary nolints and fix bugs (#34883) 2025-06-27 21:48:03 +08:00
label Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
lfs Refactor repo contents API and add "contents-ext" API (#34822) 2025-06-25 02:34:21 +00:00
lfstransfer Fix SSH LFS timeout (#34838) 2025-06-24 15:49:31 +00:00
log enforce explanation for necessary nolints and fix bugs (#34883) 2025-06-27 21:48:03 +08:00
markup Enable gocritic `equalFold` and fix issues (#34952) 2025-07-06 16:53:34 +00:00
mcaptcha Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
metrics feat: add label 'state' to metric 'gitea_users' (#34326) 2025-05-07 18:00:53 +00:00
migration Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
nosql Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
optional Fix updating user visibility (#35036) 2025-07-10 16:17:28 -07:00
options Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
packages Improve NuGet API Parity (#21291) (#34940) 2025-07-07 10:43:58 +00:00
paginator Only use prev and next buttons for pagination on user dashboard (#33981) 2025-03-23 19:52:43 +00:00
pprof Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
private Fix a bug when uploading file via lfs ssh command (#34408) 2025-05-09 16:17:08 +00:00
process Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
proxy Use proxy for pull mirror (#22771) 2023-02-11 08:39:50 +08:00
proxyprotocol Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
public Upgrade `gopls` to v0.19.0, add `make fix` (#34772) 2025-06-18 19:30:40 +00:00
queue Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
recaptcha Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
references Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
regexplru Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
repository Use standalone function to update repository cols (#34811) 2025-06-26 17:23:21 +00:00
reqctx Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
secret Upgrade golangci-lint to v1.64.5 (#33654) 2025-02-21 00:05:40 +08:00
session Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
setting Refactor OpenIDConnect to support SSH/FullName sync (#34978) 2025-07-10 18:35:59 +00:00
sitemap Fix sitemap (#22272) 2022-12-30 23:31:00 +08:00
ssh Update x/crypto package and make builtin SSH use default parameters (#34667) 2025-06-09 19:51:02 +00:00
storage Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
structs Fix ListWorkflowRuns OpenAPI response model. (#35026) 2025-07-10 05:58:07 +00:00
svg Add sub issue list support (#32940) 2024-12-24 01:54:19 +00:00
sync Use global lock instead of NewExclusivePool to allow distributed lock between multiple Gitea instances (#31813) 2024-09-06 10:12:41 +00:00
system Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
tailmsg Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
tempdir Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
templates Refactor mail template and support preview (#34990) 2025-07-09 10:25:25 +08:00
test Validate hex colors when creating/editing labels (#34623) 2025-06-07 11:25:08 +03:00
testlogger Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
timeutil Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
translation Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
turnstile Add new captcha: cloudflare turnstile (#22369) 2023-02-05 15:29:03 +08:00
typesniffer Add support for 3D/CAD file formats preview (#34794) 2025-06-30 16:12:25 +08:00
updatechecker Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
uri Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
user Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
util Enable gocritic `equalFold` and fix issues (#34952) 2025-07-06 16:53:34 +00:00
validation Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
web Refactor some trivial problems (#34959) 2025-07-05 23:19:33 +08:00
webhook Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +08:00
zstd Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00