gitea/services/migrations
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
..
codebase_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
codebase.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
codecommit.go Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
common.go
dump.go Remove context from git struct (#33793) 2025-03-04 11:56:11 -08:00
error.go Upgrade go-github v61 -> v71 (#34385) 2025-05-06 20:10:14 -07:00
git.go refactor: decouple context from migration structs (#33399) 2025-02-07 05:37:32 +00:00
gitbucket.go
gitea_downloader_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
gitea_downloader.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
gitea_uploader_test.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
gitea_uploader.go Fix migration pull request title too long (#34577) 2025-06-04 15:45:45 +00:00
github_test.go fix github migration error when using multiple tokens (#34144) 2025-04-13 23:20:14 +00:00
github.go Fix incorrect comment diff hunk parsing, fix github asset ID nil panic (#35046) 2025-07-11 15:18:41 -07:00
gitlab_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
gitlab.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
gogs_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
gogs.go refactor: decouple context from migration structs (#33399) 2025-02-07 05:37:32 +00:00
http_client.go Support allowed hosts for migrations to work with proxy (#32025) 2024-09-11 05:47:00 +00:00
main_test.go
migrate_test.go
migrate.go enforce explanation for necessary nolints and fix bugs (#34883) 2025-06-27 21:48:03 +08:00
onedev_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
onedev.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
restore.go refactor: decouple context from migration structs (#33399) 2025-02-07 05:37:32 +00:00
update.go