tea/modules
appleboy 4915862b95 refactor: optimize PR title generation and expand test coverage (#549)
- Import "regexp" package in pull_create.go
- Replace existing code for `GetDefaultPRTitle` with a more efficient regular expression approach
- Add a new test file pull_create_test.go with a test function for `GetDefaultPRTitle`

Signed-off-by: appleboy <appleboy.tw@gmail.com>
Reviewed-on: https://gitea.com/gitea/tea/pulls/549
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io>
Co-authored-by: appleboy <appleboy.tw@gmail.com>
Co-committed-by: appleboy <appleboy.tw@gmail.com>
2023-04-30 00:16:18 +08:00
..
config If gitea version is not detected, just fall back to last supported one and print warning (#538) 2023-04-03 13:49:33 +08:00
context Allow batch operations on multiple entities (#512) 2022-09-27 04:35:59 +08:00
git Find DefaultPRHead based on branch and SHA (#514) 2022-10-25 06:38:39 +08:00
interact Add option to disable version checking (#520) 2022-10-31 09:56:23 +08:00
print Handle Team Reviews (#515) 2022-09-29 10:49:24 +08:00
task refactor: optimize PR title generation and expand test coverage (#549) 2023-04-30 00:16:18 +08:00
utils Allow batch operations on multiple entities (#512) 2022-09-27 04:35:59 +08:00
workaround Introduce workaround for missing pull head sha (#340) 2021-03-08 03:45:50 +08:00