Commit Graph

51 Commits (e5b8b4b5ec076b100b86845d2b4a8ff7ff71a87a)

Author SHA1 Message Date
Morgan Bazalgette 65861900cd Handle refactor ()
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound

* Change Handle(403) to NotFound, avoid using macaron's NotFound
Ethan Koenig 515cdaa85d Fix ignored errors when checking if organization, team member ()
Ethan Koenig 3c1b1ca78e Fix error message sanitiziation ()
Ethan Koenig d22a8dc022 Page parameter for repo search API ()
Ethan Koenig f26f4a7e01 Update swagger documentation ()
* Update swagger documentation

Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation

* Restore delete comments
Morlinest ddb7f59ef4 Add search mode option to /api/repo/search ()
* 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
Morlinest ccd3577970 Fix repository search function ()
* Fix and remove FIXME

* Respect membership visibility

* Fix/rewrite searchRepositoryByName function

* Add unit tests

* Add integration tests

* Remove Searcher completely

* Remove trailing space
Ethan Koenig b689bb6180 Webhooks for repo creation/deletion ()
* Webhooks for repo creation/deletion

* add createHookTask

* Add handles for GetSlackPayload and GetDiscordPayload
Bwko 1a5fe4326f Add collaborative repositories to the dashboard ()
* Add collaborative repositories to the dashboard

Remove some unused code from the Dashboard func

* fix some bug and some refactor

* fix tests
Antoine GIRARD fd8e8a421a Improve swagger doc ()
* 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
Morlinest 951fb572a7 Fix and improve dashboard repo UI ()
* 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
Ethan Koenig 49df677c47 Check for access in /repositories/:id ()
* Check for access in /repositories/:id

* Integration test
Ethan Koenig 93a1de4842 Fix repo API bug ()
Don't require token when not necessary
Antoine GIRARD 30787e48f2 Improve org error handling ()
* Improve ErrOrgNotExist type
Return new error type
Use good error check
Use new method to check error
Update tests

* Fix unchanged method name report
Andrey Nering e67ece26f0 Merge pull request from andreynering/dashboard-search-org-repos
More fixes for dashboard search
Jonas Östanbäck 0161e46b5a Add swagger comment for MirrorSync ()
* Add swagger comment for MirrorSync

* Generate swagger.v1.json
Andrey Nering 8906b2891b Fix test
There was a panic when there's no logged in user
Andrey Nering dc2b28ed76 Show repos acording to user/organization
Andrey Nering 8917f47347 Fix org repos not showing on dashboard search
Antoine GIRARD 3edb0c5894 Generate swagger json ()
- 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
Lunny Xiao 0308d44a16 fix and improve integration test ()
Jonas f995bcc87a Add repo mirror sync API endpoint ()
* API: Add repo mirror sync

* Correct error message

* Change http status to 200
Ethan Koenig ec0ae5d50c Refactor and fix incorrect comment ()
awwalker c0f99e8229 API: support /users/:username/repos
clean up

fix arguments

remove repeated token

give admins listing rights
Bo-Yi Wu 3576e1ee73 fix: trim the whitespaces for the search keyword ()
Ethan Koenig 2f13d31ff0 Fix bug in repos search ()
Bo-Yi Wu a90a215662 feat: Add search bar on user profile page. ()
Ethan Koenig 6f4ba6884c Repo permission bug fixes ()
Ethan Koenig 04b9a7e7a2 Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
Kim "BKC" Carlbäcker e6cfccdd40 GitHub API Compliance (& linting)
Kim "BKC" Carlbäcker 71bb6df75a Add undocumented endpoint for /repositories/:id
Lunny Xiao ec87a75c00 golint fixed for modules/auth
Lunny Xiao 3917ed45de golint fixed for routers ()
Ethan Koenig 0834e492c0 API endpoints for stars
Sandro Santilli a1c5f02444 Fix import path of go-sdk ()
From code.gitea.io/go-sdk/gitea
  To code.gitea.io/sdk/gitea
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io ()
- 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
Sandro Santilli f388661bda ACCESS_MODE_* -> AccessMode*
Thomas Boerger 4c6c16f358
Replaced go-gogs-client with go-sdk imports
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Unknwon dccb0c15b9 Replace convert.To with APIFormat calls
Unknwon e74630ae3b add pagination for repositories
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon 4b25bdfbc4 support correct page size and link header
Unknwon 9bd9ad4205 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to 
Unknwon dd6faf7f9b Convert all API handers to use *context.APIContext
Unknwon 2bf8494332 finish user and repository search
Both are possible on explore and admin panel
Unknwon 514382e2eb Rename module: middleware -> context
Unknwon 1c9dd11ba7 API: admin create repo
Unknwon 9cd16c5b12 add organization APIs
Unknwon 120cd4e471 Better mirror repo management