-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add some more fields to repo, and structure for organization (#191)
* add some more fields to repo, and structure for organization * add API to read a user's starred repositories * add test for repo updates * test org decoding; remove some invalid properties * remove duplicate methods to fetch starred repos * add Organization to all necessary targets * use local fork of RequestKit * fix tests * fix spm tool version * put back RequestKit dep * fix spm tool version again * fix lint issues --------- Co-authored-by: Andrew McKnight <git@mcknight.rocks>
- Loading branch information
1 parent
590b60a
commit 1e63f58
Showing
7 changed files
with
329 additions
and
5 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
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 @@ | ||
import Foundation | ||
|
||
open class Organization: Codable { | ||
public let login: String | ||
public let id: Int | ||
public let node_id: String | ||
public let avatar_url: String | ||
public let url: String | ||
public let html_url: String | ||
public let repos_url: String | ||
public let events_url: String | ||
public let type: String | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case login | ||
case id | ||
case node_id | ||
case avatar_url | ||
case url | ||
case html_url | ||
case repos_url | ||
case events_url | ||
case type | ||
} | ||
} |
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
Oops, something went wrong.