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

Adds parent property of repo endpoint #12

Merged
merged 4 commits into from
May 8, 2017

Conversation

guyzmo
Copy link
Contributor

@guyzmo guyzmo commented May 5, 2017

@coveralls
Copy link

coveralls commented May 5, 2017

Coverage Status

Coverage increased (+0.04%) to 94.139% when pulling 89dd090 on guyzmo:feature/api_parent_id into e56c6bc on unfoldingWord-dev:master.

@coveralls
Copy link

coveralls commented May 5, 2017

Coverage Status

Coverage increased (+0.04%) to 94.139% when pulling 6d28a9c on guyzmo:feature/api_parent_id into e56c6bc on unfoldingWord-dev:master.

@guyzmo guyzmo changed the title Adds parent_id property of repo endpoint Adds parent property of repo endpoint May 5, 2017
@guyzmo
Copy link
Contributor Author

guyzmo commented May 5, 2017

I just changed the content, to expose Repository* BaseRepo as 'parent' property, instead of an id. because that's more restful.

"""
Gets the repository's parent, when a fork

:rtype: int
Copy link
Contributor

Choose a reason for hiding this comment

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

No longer an int, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup, solved. Also made it automatically convert to GogsRepo if not None.

@coveralls
Copy link

coveralls commented May 5, 2017

Coverage Status

Coverage decreased (-0.1%) to 93.982% when pulling ddba2ac on guyzmo:feature/api_parent_id into e56c6bc on unfoldingWord-dev:master.

guyzmo referenced this pull request in guyzmo/git-repo May 5, 2017
@ethantkoenig
Copy link
Contributor

LGTM (coverage decrease is negligible)

@ethantkoenig ethantkoenig merged commit aea8d9d into unfoldingWord-dev:master May 8, 2017
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