-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9964081
commit f2073a4
Showing
5 changed files
with
76 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// Owner.swift | ||
// Swoctokit | ||
// | ||
// Created by Franz Busch on 14.11.18. | ||
// | ||
|
||
import Foundation | ||
|
||
|
||
public struct Owner: Decodable { | ||
|
||
public let login: String | ||
public let id: Int | ||
public let nodeId: String | ||
|
||
private enum CodingKeys: String, CodingKey { | ||
case login | ||
case id | ||
case nodeId = "node_id" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// PullRequest.swift | ||
// Swoctokit | ||
// | ||
// Created by Franz Busch on 14.11.18. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct PullRequest: Decodable { | ||
|
||
public struct Head: Decodable { | ||
|
||
public let label: String | ||
public let ref: String | ||
public let sha: String | ||
public let repo: Repository | ||
} | ||
|
||
public let id: Int | ||
public let number: Int | ||
public let state: String | ||
public let title: String | ||
public let body: String | ||
public let head: Head | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Repository.swift | ||
// Swoctokit | ||
// | ||
// Created by Franz Busch on 14.11.18. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Repository: Decodable { | ||
|
||
public let id: Int | ||
public let nodeId: String | ||
public let name: String | ||
public let fullName: String | ||
public let owner: Owner | ||
|
||
private enum CodingKeys: String, CodingKey { | ||
case id | ||
case nodeId = "node_id" | ||
case name | ||
case fullName = "full_name" | ||
case owner | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters