-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Exposes in API the Repo entity's Size and IsBare property #1668
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
Merged
lunny
merged 2 commits into
go-gitea:master
from
guyzmo:feature/api_exposes_extra_properties
May 5, 2017
Merged
Exposes in API the Repo entity's Size and IsBare property #1668
lunny
merged 2 commits into
go-gitea:master
from
guyzmo:feature/api_exposes_extra_properties
May 5, 2017
Conversation
This file contains hidden or 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
Signed-off-by: Guyzmo <[email protected]>
LG-TM depends on go-gitea/go-sdk#56 |
lafriks
requested changes
May 4, 2017
models/repo.go
Outdated
@@ -286,6 +286,7 @@ func (repo *Repository) APIFormat(mode AccessMode) *api.Repository { | |||
Description: repo.Description, | |||
Private: repo.IsPrivate, | |||
Empty: repo.IsBare, | |||
Size: repo.Size, |
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.
it should return Size in kilobytes not bytes like it is in GitHub API
27a70ff
to
6f6167b
Compare
guyzmo
added a commit
to guyzmo/git-repo
that referenced
this pull request
May 4, 2017
for Gogs/Gitea, API is not yet out, cf following PRs: cf unfoldingWord-dev/python-gitea-client#9 cf go-gitea/go-sdk#56 cf go-gitea/gitea#1668 cf gogs/gogs#4484 cf gogs/go-gogs-client#64 fixes #129
@guyzmo You need to update the vendoring :) |
Signed-off-by: Guyzmo <[email protected]>
6f6167b
to
69f0ad4
Compare
done |
LGTM |
LGTM |
7 tasks
sapk
added a commit
to sapk-fork/gitea
that referenced
this pull request
May 14, 2017
changes introduced to repo format by : go-gitea#1687 go-gitea/go-sdk#58 go-gitea#1668 go-gitea/go-sdk#56
Merged
appleboy
pushed a commit
that referenced
this pull request
May 14, 2017
changes introduced to repo format by : #1687 go-gitea/go-sdk#58 #1668 go-gitea/go-sdk#56
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
lgtm/done
This PR has enough approvals to get merged. There are no important open reservations anymore.
modifies/api
This PR adds API routes or modifies them
type/enhancement
An improvement of existing functionality
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
exposes IsBare as Empty
exposes Size