feat: add convertLabel
This commit is contained in:
parent
4afb7eb108
commit
e1d8e122ce
|
@ -178,6 +178,19 @@ func convertChanges(changes *structs.ChangesPayload) *github.EditChange {
|
|||
}
|
||||
}
|
||||
|
||||
func convertLabel(label *structs.Label) *github.Label {
|
||||
if label == nil {
|
||||
return &github.Label{}
|
||||
}
|
||||
return &github.Label{
|
||||
ID: int64Ptr(label.ID),
|
||||
Name: stringPtr(label.Name),
|
||||
Color: stringPtr(label.Color),
|
||||
Description: stringPtr(label.Description),
|
||||
URL: stringPtr(label.URL),
|
||||
}
|
||||
}
|
||||
|
||||
func translatePrAction(action structs.HookIssueAction) string {
|
||||
translatedAction := ""
|
||||
|
||||
|
|
Loading…
Reference in New Issue