Allen Wild
658090b956
api: repos/search: add parameters to control the sort order ( #3964 )
The backend SearchRepositoryByName function supports several sort order
options, hook these up to the /repos/search API.
New parameters for /repos/search:
'sort': alpha, created, updated, size, or id
'order': asc or desc
'sort' defaults to alpha.
'order' defaults to ascending, and is ignored if 'sort' is not specified.
The overall default behavior is unchanged (alphabetically ascending).
This partially implements issue #3963
Signed-off-by: Allen Wild <allenwild93@gmail.com>
7 years ago
Lauris BH
ab0cf69397
Allow administrator to create repository for any organization ( #4368 )
7 years ago
Lauris BH
9a28403e94
Check that repositories can only be migrated to own user or organizations ( #4366 )
* Repositories can only migrated to own user or organizations
* Add check for organization that user does not belong to
* Allow admin to migrate repositories for other users
7 years ago
Antoine GIRARD
00ff25393c
Fix swagger errors ( #4220 )
Fix all the resting errors to have a valid swagger file.
They are still some warnings but nothing blocking.
Doing so I found that some request still misses son parameters for some POST/PUT/PATCH request. This means the a client generated from the swagger file will not work completely.
Fix #4088 by activating validation in drone
Should fix #4010 .
7 years ago
Lunny Xiao
c5c1406d2c
Add topic support ( #3711 )
* add topic models and unit tests
* fix comments
* fix comment
* add the UI to show or add topics for a repo
* show topics on repositories list
* fix test
* don't show manage topics link when no permission
* use green basic as topic label
* fix topic label color
* remove trace content
* remove debug function
8 years ago
Bo-Yi Wu
3bed594722
refactor: import order. ( #3736 )
8 years ago
Morgan Bazalgette
8c916631f0
Handle refactor ( #3339 )
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound
* Change Handle(403) to NotFound, avoid using macaron's NotFound
8 years ago
Ethan Koenig
a8af5abc02
Fix ignored errors when checking if organization, team member ( #3177 )
8 years ago
Ethan Koenig
8c0ba9b0e6
Fix error message sanitiziation ( #3082 )
8 years ago
Ethan Koenig
e9ffa5207d
Page parameter for repo search API ( #2915 )
8 years ago
Ethan Koenig
1df45ea8b0
Update swagger documentation ( #2899 )
* Update swagger documentation
Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation
* Restore delete comments
8 years ago
Morlinest
ba440a47e1
Add search mode option to /api/repo/search ( #2756 )
* Add repo type option to /api/repo/search
* Add tests and fix result of collaborative filter in specific condition
* Fix/optimize search & tests
* Improve integration tests
* Fix lint errors
* Fix unit tests
* Change and improve internal implementation of repo search
* Use NonexistentID
* Make search api more general
* Change mirror and fork search behaviour
* Fix tests & typo in comment
8 years ago
Morlinest
4cc3379e63
Fix repository search function ( #2689 )
* Fix and remove FIXME
* Respect membership visibility
* Fix/rewrite searchRepositoryByName function
* Add unit tests
* Add integration tests
* Remove Searcher completely
* Remove trailing space
8 years ago
Ethan Koenig
e4e41c4830
Webhooks for repo creation/deletion ( #1663 )
* Webhooks for repo creation/deletion
* add createHookTask
* Add handles for GetSlackPayload and GetDiscordPayload
8 years ago
Bwko
b26bcf9b11
Add collaborative repositories to the dashboard ( #2205 )
* Add collaborative repositories to the dashboard
Remove some unused code from the Dashboard func
* fix some bug and some refactor
* fix tests
8 years ago
Antoine GIRARD
8b81ff17f5
Improve swagger doc ( #2274 )
* Add swagger comment for adminCreateOrg
* Add swagger comment for admin route
* add hook swagger doc
* Add tags
* Add auth
* Fix name of responses
* Edit name method
* Update vendor
* make generate-swagger
8 years ago
Morlinest
0e6f1cbe92
Fix and improve dashboard repo UI ( #2285 )
* Fix and improve dashboard repo UI
* Change order of scripts loading
* Remove "mirror" tab
* Remove single tab panel for "org user"
* Add localization strings
* Create vue component and change event for search
* Add "mirrors" filter
8 years ago
Ethan Koenig
914195d73a
Check for access in /repositories/:id ( #2227 )
* Check for access in /repositories/:id
* Integration test
8 years ago
Ethan Koenig
a15346a9bd
Fix repo API bug ( #2133 )
Don't require token when not necessary
8 years ago
Antoine GIRARD
8d81576b4b
Improve org error handling ( #2117 )
* Improve ErrOrgNotExist type
Return new error type
Use good error check
Use new method to check error
Update tests
* Fix unchanged method name report
8 years ago
Andrey Nering
8f19037ce2
Merge pull request #1750 from andreynering/dashboard-search-org-repos
More fixes for dashboard search
9 years ago
Jonas Östanbäck
04c86d9c50
Add swagger comment for MirrorSync ( #1747 )
* Add swagger comment for MirrorSync
* Generate swagger.v1.json
9 years ago
Andrey Nering
6a58cede38
Fix test
There was a panic when there's no logged in user
9 years ago
Andrey Nering
495a342a51
Show repos acording to user/organization
9 years ago
Andrey Nering
b722359b49
Fix org repos not showing on dashboard search
9 years ago
Antoine GIRARD
9a699d3712
Generate swagger json ( #1402 )
- Generate swagger.json into public/
- Add swagger-ui auto-installation
- Add footer link to local swagger-ui
- Add /swagger url for using app url.
- Fix Swagger-UI version via git tag
9 years ago
Lunny Xiao
40417fa8ff
fix #1643 and improve integration test ( #1645 )
9 years ago
Jonas
034e19f4e4
Add repo mirror sync API endpoint ( #1508 )
* API: Add repo mirror sync
* Correct error message
* Change http status to 200
9 years ago
Ethan Koenig
c2ba9ca97b
Refactor and fix incorrect comment ( #1247 )
9 years ago
awwalker
92595a6f05
API: support /users/:username/repos
clean up
fix arguments
remove repeated token
give admins listing rights
9 years ago
Bo-Yi Wu
110750bf29
fix: trim the whitespaces for the search keyword ( #893 )
9 years ago
Ethan Koenig
f0cede202c
Fix bug in repos search ( #884 )
9 years ago
Bo-Yi Wu
23df659f10
feat: Add search bar on user profile page. ( #787 )
9 years ago
Ethan Koenig
9015c12eb8
Repo permission bug fixes ( #513 )
9 years ago
Ethan Koenig
2872b66e89
Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
9 years ago
Kim "BKC" Carlbäcker
185fa7b753
GitHub API Compliance (& linting)
9 years ago
Kim "BKC" Carlbäcker
5f466ee446
Add undocumented endpoint for /repositories/:id
9 years ago
Lunny Xiao
e685609ea2
golint fixed for modules/auth
9 years ago
Lunny Xiao
e134836804
golint fixed for routers ( #208 )
9 years ago
Ethan Koenig
4503176480
API endpoints for stars
9 years ago
Sandro Santilli
827c85ad85
Fix import path of go-sdk ( #141 )
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
9 years ago
Sandro Santilli
cb1b3cc148
Update import paths from github.com/go-gitea to code.gitea.io ( #135 )
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
9 years ago
Sandro Santilli
58cc4e56fa
ACCESS_MODE_* -> AccessMode*
9 years ago
Thomas Boerger
a2f2fa9326
Replaced go-gogs-client with go-sdk imports
9 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
9 years ago
Unknwon
6e37e3f3d7
Replace convert.To with APIFormat calls
9 years ago
Unknwon
027aebc72c
#1384 add pagination for repositories
9 years ago
Unknwon
3b42ab0e57
Refactor User.Id to User.ID
9 years ago
Unknwon
abc82c3f25
#3058 #3059 support correct page size and link header
9 years ago
Unknwon
5b25440502
#1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
10 years ago