// updateLabel update label on Github by updating or creating it
updateLabel update label on Github by updating or creating it
// updateLabel update label on Github by updating or creating it
func (app *Application) updateLabel(currentLabels map[string]models.Label, label *models.Label) {
	if _, isThere := currentLabels[label.Name]; isThere {
		fmt.Println("\tLabel", label.Name, "exists in", label.Information.Repository, "update it.")
		label.Update(app.Token)
	} else {
		fmt.Println("\tCreate label", label.Name, "in", label.Information.Repository)
		label.Create(app.Token)
	}
}
func ( app * Application ) updateLabel ( currentLabels map [ string ] models . Label , label * models . Label ) { if _ , isThere := currentLabels [ label . Name ] ; isThere { fmt . Println ( " \t " , label . Name , " " , label . Information . Repository , " " ) label . Update ( app . Token ) } else { fmt . Println ( " \t " , label . Name , " " , label . Information . Repository ) label . Create ( app . Token ) } }
updateLabel update label on Github by updating or creating it
updateLabel update label on Github by updating or creating it