feat: add desc to webhooks (#2022)

ritik/code-1773
Abhinav Singh 2024-05-06 18:41:17 +00:00 committed by Harness
parent a576087694
commit cfddbeb143
1 changed files with 2 additions and 0 deletions

View File

@ -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,