From a82e6301f77d3dce95e7945a05429e3d594bd246 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Fri, 3 May 2024 22:43:16 +0800 Subject: Fix no edit history after editing issue's title and content (#30814) (#30845) Backport #30814 by @yp05327 Fix #30807 reuse functions in services Co-authored-by: yp05327 <576951401@qq.com> --- modules/structs/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/structs') diff --git a/modules/structs/pull.go b/modules/structs/pull.go index 05a8d59633..b04def52b8 100644 --- a/modules/structs/pull.go +++ b/modules/structs/pull.go @@ -85,7 +85,7 @@ type CreatePullRequestOption struct { // EditPullRequestOption options when modify pull request type EditPullRequestOption struct { Title string `json:"title"` - Body string `json:"body"` + Body *string `json:"body"` Base string `json:"base"` Assignee string `json:"assignee"` Assignees []string `json:"assignees"` -- cgit v1.2.3