From cfddbeb143ac40f3ce0ad7881e2ad998480049d0 Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Mon, 6 May 2024 18:41:17 +0000 Subject: [PATCH] feat: add desc to webhooks (#2022) --- app/services/webhook/types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/webhook/types.go b/app/services/webhook/types.go index 1d4a30dfb..af4b390e0 100644 --- a/app/services/webhook/types.go +++ b/app/services/webhook/types.go @@ -120,6 +120,7 @@ type PullReqInfo struct { State enum.PullReqState `json:"state"` IsDraft bool `json:"is_draft"` Title string `json:"title"` + Description string `json:"description"` SourceRepoID int64 `json:"source_repo_id"` SourceBranch string `json:"source_branch"` TargetRepoID int64 `json:"target_repo_id"` @@ -136,6 +137,7 @@ func pullReqInfoFrom(pr *types.PullReq, repo *types.Repository, urlProvider url. State: pr.State, IsDraft: pr.IsDraft, Title: pr.Title, + Description: pr.Description, SourceRepoID: pr.SourceRepoID, SourceBranch: pr.SourceBranch, TargetRepoID: pr.TargetRepoID,