diff --git a/api/convert.go b/api/convert.go index c9077db..95a83eb 100644 --- a/api/convert.go +++ b/api/convert.go @@ -147,6 +147,25 @@ func convertPullRequest(request *structs.PullRequest) *github.PullRequest { return pr } +func convertChanges(changes *structs.ChangesPayload) *github.EditChange { + if changes == nil { + return nil + } + return &github.EditChange{ + Title: &github.EditTitle{ + From: stringPtr(changes.Title.From), + }, + Body: &github.EditBody{ + From: stringPtr(changes.Body.From), + }, + Base: &github.EditBase{ + Ref: &github.EditRef{ + From: stringPtr(changes.Ref.From), + }, + }, + } +} + func translatePrAction(action structs.HookIssueAction) string { translatedAction := ""