Commit Graph

213 Commits (e417cca777ae4ad3bbf96cecce9d0b43f7604d28)

Author SHA1 Message Date
Antoine GIRARD ca1c3f1926 Implement GPG api ()
* Implement GPG API

* Better handle error

* Apply review recommendation + simplify database operations

* Remove useless comments
Ethan Koenig ec0ae5d50c Refactor and fix incorrect comment ()
Mura Li 848293671b Add basic integration test infrastructure (and new endpoint `/api/v1/version` for testing it) ()
* Implement '/api/v1/version'

* Cleanup and various fixes

* Enhance run.sh

* Add install_test.go

* Add parameter utils.Config for testing handlers

* Re-organize TestVersion.go

* Rename functions

* handling process cleanup properly

* Fix missing function renaming

* Cleanup the 'retry' logic

* Cleanup

* Remove unneeded logging code

* Logging messages tweaking

* Logging message tweaking

* Fix logging messages

* Use 'const' instead of hardwired numbers

* We don't really need retries anymore

* Move constant ServerHttpPort to install_test.go

* Restore mistakenly removed constant

* Add required comments to make the linter happy.

* Fix comments and naming to address linter's complaints

* Detect Gitea executale version automatically

* Remove tests/run.sh, `go test` suffices.

* Make `make build` a prerequisite of `make test`

* Do not sleep before trying

* Speedup the server pinging loop

* Use defined const instead of hardwired numbers

* Remove redundant error handling

* Use a dedicated target for running code.gitea.io/tests

* Do not make 'test' depend on 'build' target

* Rectify the excluded package list

* Remove redundant 'exit 1'

* Change the API to allow passing test.T to test handlers

* Make testing.T an embedded field

* Use assert.Equal to comparing results

* Add copyright info

* Parametrized logging output

* Use tmpdir instead

* Eliminate redundant casting

* Remove unneeded variable

* Fix last commit

* Add missing copyright info

* Replace fmt.Fprintf with fmt.Fprint

* rename the xtest to integration-test

* Use Symlink instead of hard-link for cross-device linking

* Turn debugging logs on

* Follow the existing framework for APIs

* Output logs only if test.v is true

* Re-order import statements

* Enhance the error message

* Fix comment which breaks the linter's rule

* Rename 'integration-test' to 'e2e-test' for saving keystrokes

* Add comment to avoid possible confusion

* Rename tests -> integration-tests

Also change back the Makefile to use `make integration-test`.

* Use tests/integration for now

* tests/integration -> integrations

Slightly flattened directory hierarchy is better.

* Update Makefile accordingly

* Fix a missing change in Makefile

* govendor update code.gitea.io/sdk/gitea

* Fix comment of struct fields

* Fix conditional nonsense

* Fix missing updates regarding version string changes

* Make variable naming more consistent

* Check http status code

* Rectify error messages
awwalker c0f99e8229 API: support /users/:username/repos
clean up

fix arguments

remove repeated token

give admins listing rights
Ethan Koenig 027591a3a5 Redirects for renamed repos ()
* Redirects for renamed repos

* Remove unused phrase from locales
Lunny Xiao 8a421b1fd7 Add units concept for modulable functions of a repository ()
* Add units concept for modulable functions of a repository

* remove unused comment codes & fix lints and tests

* remove unused comment codes

* use struct config instead of map

* fix lint

* rm wrong files

* fix tests
Ethan Koenig 73d05a51e3 Remove unneeded database loads ()
Remove unnecessary calls to repo.GetOwner() in context handlers
Ethan Koenig d1b5498cc0 Use handlers for API authorization ()
Bwko 7e401b9e39 Fix crash caused by ()
Ethan Koenig 74bbec3bf9 Fix permission bugs in team API ()
Ethan Koenig fcf02e4961 API Endpoints for organization members ()
Ethan Koenig 27fcf8d30a Bug fixes for webhook API ()
Ethan Koenig 8422ab542c API endpoint for subscribers ()
Ethan Koenig 1a7fc53c98 API endpoint for stargazers ()
Ethan Koenig 0c301f7b5c Release API endpoints
Ethan Koenig b75450ad36 API endpoints for forks ()
Ethan Koenig 6f4ba6884c Repo permission bug fixes ()
Ethan Koenig 35d9378e4e Permissions bug fix for webhooks
Ethan Koenig f686a32eac API endpoints for organization teams ()
Ethan Koenig 2342df183b API Endpoints for collaborators ()
Ethan Koenig 9847b38518 Organization webhook API endpoints
Ethan Koenig 8a4161c723 API Endpoint for watching ()
Kim "BKC" Carlbäcker df7fa4e995 issue comment api fix ()
* ListAllInRepo & Delete Issue-Comments

* Moar data in issue-comments
Kim "BKC" Carlbäcker 0f05470cb8 [API] Pull Requests ()
Kim "BKC" Carlbäcker 71bb6df75a Add undocumented endpoint for /repositories/:id
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 ()
Andrey Nering 9ac46fb983 Support Editorconfig on web editor
Iwan Budi Kusnanto 8dca9f95fa issues comment API : list, create, edit ()
add `since` query string support to list issue comment
Unknwon 0b273ac4d5 code cleanup
lstahlman 84b56c3c53 Additional API support for milestones ()
Unknwon 2cb04db526 Fix
Robin Lambertz b6c14f8b21 Add AddCollaborator API Endpoint ()
* Add AddCollaborator API Endpoint

* Add optional Permission to AddCollaborator endpoint

* Use APIContext
Unknwon db3d393576 routers/api: rename handlers to be unexported
Unknwon 2f105f3979 completely disable builtin issue tracker when enable external tracker
Unknwon e7fd65f0cf better code structure and batch minor improvements
lstahlman 2eeb0ec9b0 Additional API support for labels ()
* Add API support for labels.

* Error handling for adding/replacing multiple issue labels

* Revisions to function names and error handling. Use issue.ClearLabels in replace/clear functions

* Additional code cleanup
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon e63b2881b1 api: fix panic if anonymous user request admin API
Add sign in check before check user account level
Unknwon 5aa2bf86f4 Update locales and .gopmfile
Dennis Chen 5ff2dfb23e api: delete repository webhooks ()
Allows the deletion of a webhook from a repository at the
/:user/:repo/hooks/:id endpoint.

Solves drone/drone issue .

Signed-off-by: Dennis Chen <barracks510@gmail.com>
Unknwon d27ca649c7 api/admin: add/remove organization team repository
Unknwon b1d41cfa60 add admin APIs to add/remove a user from teams
Unknwon 90e93b1f3a Change list teams API to non-admin specific
Unknwon e6f927f61a api: admin list and create team under organization
Unknwon 9bd9ad4205 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to 
Unknwon dd6faf7f9b Convert all API handers to use *context.APIContext
Unknwon 514382e2eb Rename module: middleware -> context
Antoine GIRARD b7b30cd85e Corrections following recommendations
Antoine GIRARD c11c3b6c11 Near ready
Unknwon 4331d1d2a0 require token for list my orgs
Unknwon 03427fb005 fix
Unknwon a49af93faf APIs: Users Followers
- User profile un/follow
- List user's followers/following
Unknwon 1c9dd11ba7 API: admin create repo
Unknwon 9cd16c5b12 add organization APIs
Unknwon b117befc2b add user email APIs
Unknwon 978dc00305 APIs: admin users
Unknwon 942fd6be53 fix panic for
Unknwon 56dd430a10 refactor API routes and some work for