Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing properties of User #114

Merged
merged 3 commits into from
Sep 10, 2020
Merged

Add missing properties of User #114

merged 3 commits into from
Sep 10, 2020

Conversation

mvolpato
Copy link
Contributor

@mvolpato mvolpato commented Sep 5, 2020

I added some properties that were missing in the User model.

I also added a Plan model, which can be returned when you retrieve a user.
As far as I know there is no direct API to request plans.

Tests added for Plan and on the unit test on the user_me.json file.

MaxDesiatov
MaxDesiatov previously approved these changes Sep 5, 2020
Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems legit

Copy link
Member

@pietbrauer pietbrauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! Just some very minor things.

Tests/OctoKitTests/UserTests.swift Outdated Show resolved Hide resolved
OctoKit/User.swift Outdated Show resolved Hide resolved
Co-authored-by: Piet Brauer <piet.brauer@me.com>
@@ -22,7 +22,7 @@
"location": "Hamburg",
"email": null,
"hireable": true,
"bio": null,
"bio": "Tweeting about iOS and Drumming",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha very humbled, wasn't aware it's my user in the stubs 😆

@pietbrauer pietbrauer merged commit f8641fa into nerdishbynature:master Sep 10, 2020
@pietbrauer
Copy link
Member

Thanks again for your contribution!

@mvolpato mvolpato deleted the complete-user-data branch September 10, 2020 07:59
tngranados pushed a commit to tngranados/octokit.swift that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants