Commit Graph

49 Commits (be825aaa88c1c3fd2e4f0f79a4de0ae699eee39e)

Author SHA1 Message Date
Lauris BH ca306985d3
Change how merged PR commit info are prepared ()
* Change how merged PR commits and diff are made

* Update code.gitea.io/git dependency

* Fix typo

* Remove unneeded local variable
Sandro Santilli 44053532bb Serve .patch for pull requests ()
* Serve .patch for pull requests

Closes 
Updates "git" module, for GetFormatPatch

* Handle io.Copy error
Vlad Temian e78786ef39 Writable deploy keys (closes ) ()
* Add is_writable checkbox to deploy keys interface

* Add writable key option to deploy key form

* Add support for writable ssh keys in the interface

* Rename IsWritable to ReadOnly

* Test: create read-only and read-write deploy keys via api

* Add DeployKey access mode migration

* Update gitea sdk via govendor

* Fix deploykey migration

* Add unittests for writable deploy keys

* Move template text to locale

* Remove implicit column update

* Remove duplicate locales

* Replace ReadOnly field with IsReadOnly method

* Fix deploy_keys related integration test

* Rename v54 migration with v55

* Fix migration hell
Ethan Koenig 156aa42ba0 Update code.gitea.io/git ()
Bo-Yi Wu 456648adac chore: upgrade gitea/git version ()
ref: https://github.com/go-gitea/gitea/pull/3190
Ethan Koenig 58a7de2aea Update code.gitea.io/git ()
Duncan Ogilvie 551f3cbe42 Memory usage improvements ()
* govendor update code.gitea.io/git

Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>

* Greatly improve memory usage

Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
Vlad Temian 6ad4990a65 Add fingerprint to ssh key endpoints. ()
* Add fingerprint to ssh key endpoints.

* Update gitea sdk vendor
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
Lauris BH 9ba7898911 Update vendor git ()
Lauris BH 23645fe05f Sort repository tree entries in natural way ()
* Sort repository tree entries in natural way

* Fix sort for different length strings with first parts equal

* Improve test case

* Refactor return statements

* Update gitea/git dependency
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
Lauris BH a4ca54425f update code.gitea.io/git in vendor to fix ()
Lauris BH 7d61834dc9 Update code.gitea.io/git dependency ()
Bo-Yi Wu 678fec3f6a upgrade git source code. ()
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Jonas Östanbäck 1f4d84b7b2 Update git module ()
Lauris BH c259c436d7 update git module ()
Ethan Koenig 75f166b6b9 Update code.gitea.io/git ()
Ethan Koenig 6e452c4da7 Update code.gitea.io/git ()
Antoine GIRARD 0cf89a83c1
Update code.gitea.io/git
Ethan Koenig abb19eff39 Update code.gitea.io/git ()
Ethan Koenig 474d636794 Update code.gitea.io/git ()
* Update code.gitea.io/git

* Update function calls

* govendor fetch
guyzmo 397474ecb1 Added Parent property to the repo API ()
Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
guyzmo 98460a8d9d Exposes in API the Repo entity's Size and IsBare property ()
* Exposes in API the Repo entity's IsBare property as IsEmpty

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

* Exposes in API the Repo entity's Size property

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
Bo-Yi Wu 75f1afd1fd fix: tag contain character ) will http 500 on release page ()
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 91d64656a4 update git which fixes ()
Jonas Östanbäck e4a0a04829 Add create_at and updated_at in PR json ()
* Move new fields to object creation (use reference)
 * Vendor: Update SDK
Antoine GIRARD cf91cfb993 Migrate WatchInfo struct to api ()
* Remove WatchInfo and link to api struct

* Add vendor temporary update

* Return to gitea vendor source
Mura Li edbb9eefd6 Fix race when running commands with timeout ()
Update vendored module code.gitea.io/git
Antoine GIRARD 14fe9010ae GPG commit validation ()
* GPG commit validation

* Add translation

+ some little fix

* Move hash calc after retrieving of potential key + missing translation

* Add some little test
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
Andrey Nering d7af8f96d7 Update vendor of code.gitea.io/sdk/gitea
Andrew Boyarshin 0602a44b27 Fix URL handling in the whole markdown module, improve test coverage ()
Amended with string to bool change in API SDK.

Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
Lunny Xiao 0e6b9ea786 Take back control of hooks ()
* git: delegate all server-side Git hooks ()

* create hooks directories

* take control hooks back

* fix lint

* bug fixed and minor changes

* fix imports style

* fix migration scripts
Zsombor e388db311b Add checkbox to search for all the branches by commit message ()
and updating the vendor directory
Lunny Xiao 7209917fd7 bug fix release
Lunny Xiao 61306fa737 Make releases faster than before and resolved ()
* make releases faster than before and resolved 

* fix comment
Ethan Koenig 0c301f7b5c Release API endpoints
Ethan Koenig b75450ad36 API endpoints for forks ()
Sl@ny c22f9114c7 Implementation of Folder Jumping
Ethan Koenig 8de8ec027d Update sdk
Lunny Xiao 47a7529d96 update code.gitea.io/git ()
Martin Hebnes Pedersen b11843b8dc Update gitea/sdk vendor ()
Kim "BKC" Carlbäcker 57dc9efaae Update gitea/sdk vendor
Thibault Meyer 871c964ef7 Upgrade vendor "git" ()
Thibault Meyer 54e6ed3431 Upgrade vendor "git" ()
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