-
Notifications
You must be signed in to change notification settings - Fork 15
Adds parent property of repo endpoint #12
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
Conversation
Signed-off-by: Guyzmo <[email protected]>
Signed-off-by: Guyzmo <[email protected]>
Signed-off-by: Guyzmo <[email protected]>
89dd090
to
6d28a9c
Compare
I just changed the content, to expose Repository* BaseRepo as 'parent' property, instead of an id. because that's more restful. |
gogs_client/entities.py
Outdated
""" | ||
Gets the repository's parent, when a fork | ||
|
||
:rtype: int |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
.
Signed-off-by: Guyzmo <[email protected]>
6d28a9c
to
ddba2ac
Compare
LGTM (coverage decrease is negligible) |
cf gogs/gogs#4484
cf gogs/go-gogs-client#64
cf go-gitea/gitea#1687
cf go-gitea/go-sdk#59