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

Exposes in API the Repo entity's Size and IsBare property #1668

Merged
merged 2 commits into from
May 5, 2017

Conversation

guyzmo
Copy link
Contributor

@guyzmo guyzmo commented May 4, 2017

exposes IsBare as Empty
exposes Size

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
@bkcsoft
Copy link
Member

bkcsoft commented May 4, 2017

LG-TM depends on go-gitea/go-sdk#56

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label 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,
Copy link
Member

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

@lunny lunny added this to the 1.2.0 milestone May 4, 2017
@lunny lunny added modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality labels May 4, 2017
@guyzmo guyzmo force-pushed the feature/api_exposes_extra_properties branch from 27a70ff to 6f6167b Compare May 4, 2017 14:46
guyzmo added a commit to guyzmo/git-repo that referenced this pull request May 4, 2017
@bkcsoft
Copy link
Member

bkcsoft commented May 4, 2017

@guyzmo You need to update the vendoring :) govendor fetch code.gitea.io/sdk/gitea

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
@guyzmo guyzmo force-pushed the feature/api_exposes_extra_properties branch from 6f6167b to 69f0ad4 Compare May 4, 2017 21:18
@guyzmo
Copy link
Contributor Author

guyzmo commented May 4, 2017

done

@lafriks
Copy link
Member

lafriks commented May 4, 2017

LGTM

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 4, 2017
@sapk
Copy link
Member

sapk commented May 4, 2017

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 4, 2017
@lunny lunny merged commit 98460a8 into go-gitea:master May 5, 2017
sapk added a commit to sapk-fork/gitea that referenced this pull request May 14, 2017
@sapk sapk mentioned this pull request May 14, 2017
appleboy pushed a commit that referenced this pull request May 14, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants