mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-22 23:42:50 +08:00
23 lines
510 B
Swift
23 lines
510 B
Swift
//
|
|
// LabelableFields+IssueLabelModel.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 6/2/17.
|
|
// Copyright © 2017 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension LabelableFields {
|
|
|
|
var issueLabelModels: [RepositoryLabel] {
|
|
var models = [RepositoryLabel]()
|
|
for node in labels?.nodes ?? [] {
|
|
guard let node = node else { continue }
|
|
models.append(RepositoryLabel(color: node.color, name: node.name))
|
|
}
|
|
return models
|
|
}
|
|
|
|
}
|