fix: add missing convertChanges
This commit is contained in:
parent
d97dd79e59
commit
0093a15645
|
@ -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 := ""
|
||||
|
||||
|
|
Loading…
Reference in New Issue