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

API: Return primary language and repository language stats API URL #18396

Merged
merged 3 commits into from
Jan 25, 2022

Conversation

lafriks
Copy link
Member

@lafriks lafriks commented Jan 24, 2022

Adds two new properties for Repository structure langauge and languages_url (named same as in GitHub API)

Fixes #18395

@lafriks lafriks added type/enhancement An improvement of existing functionality modifies/api This PR adds API routes or modifies them labels Jan 24, 2022
@lafriks lafriks added this to the 1.17.0 milestone Jan 24, 2022
models/repo/repo.go Show resolved Hide resolved
models/repo/repo.go Show resolved Hide resolved
models/repo/repo.go Show resolved Hide resolved
@GiteaBot GiteaBot added lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 24, 2022
@GiteaBot GiteaBot 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 Jan 24, 2022
@GiteaBot GiteaBot 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 Jan 25, 2022
@lafriks
Copy link
Member Author

lafriks commented Jan 25, 2022

🚀

@lafriks lafriks merged commit 6392f46 into go-gitea:main Jan 25, 2022
@lafriks lafriks deleted the feat/api_repo_language branch January 25, 2022 06:33
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jan 25, 2022
* giteaoffical/main:
  Place inline diff comment dialogs on split diff in 4th and 8th columns (go-gitea#18403)
  API: Return primary language and repository language stats API URL (go-gitea#18396)
  Update to work with latest VS Code go debugger (go-gitea#18397)
  Fix restore without topic failure (go-gitea#18387)
  [skip ci] Updated translations via Crowdin
  Make WrappedQueues and PersistableChannelUniqueQueues Pausable (go-gitea#18393)
  Fix commit's time (go-gitea#18375)
  Prevent showing webauthn error for every time visiting `/user/settings/security` (go-gitea#18385)
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
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.

Add a top language(s) field to Repository
4 participants