zeripath
722a7c902d
Add Close() method to gogitRepository (#8901)
In investigating #7947 it has become clear that the storage component of go-git repositories needs closing.
This PR adds this Close function and adds the Close functions as necessary.
In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files.
Fixes #7947
пре 4 година
Antoine GIRARD
c748deef33
don't ignore error message (#8550)
пре 4 година
Colin Arnott
66e99d722a
upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 (#8501)
editorconfig-core-go made breaking api changes and has recently released
v2.1.1. This change consumes the new api and fixes up any breaking
references.
пре 4 година
Richard Mahn
cd96dee982
Fixes #7292 - API File Contents bug (#7301)
пре 5 година
Richard Mahn
002b597c1f
Fixes #7152 - Allow create/update/delete message to be empty, use default message (#7324)
* Fixes #7152 - Allow create/update/delete message to be empty, use default message
* Linting fix
* Fix to delete integration tests
пре 5 година
Richard Mahn
43cf2f3b55
Fixes #7023 - API Org Visibility (#7028)
пре 5 година
Lunny Xiao
34eee25bd4
Move sdk structs to modules/structs (#6905)
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
пре 5 година
Richard Mahn
2262811e40
Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314)
пре 5 година
Lunny Xiao
d578b71d61
move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364)
* move code.gitea.io/git to code.gitea.io/gitea/modules/git
* fix imports
* fix fmt
* fix misspell
* remove wrong tests data
* fix unit tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* enable Debug to trace the failure tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* comment commit count tests since git clone depth is 50
* fix tests
* update from code.gitea.io/git
* revert change to makefile
пре 5 година
John Olheiser
cac9e6e760
Updates to API 404 responses (#6077)
пре 5 година
zeripath
07802a2bc5
Refactor repo.isBare to repo.isEmpty #5629 (#5714)
* Refactor repo.isBare to repo.isEmpty #5629
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Remove Sync call
пре 5 година
Lunny Xiao
eabbddcd98
Restrict permission check on repositories and fix some problems (#5314)
* fix units permission problems
* fix some bugs and merge LoadUnits to repoAssignment
* refactor permission struct and add some copyright heads
* remove unused codes
* fix routes units check
* improve permission check
* add unit tests for permission
* fix typo
* fix tests
* fix some routes
* fix api permission check
* improve permission check
* fix some permission check
* fix tests
* fix tests
* improve some permission check
* fix some permission check
* refactor AccessLevel
* fix bug
* fix tests
* fix tests
* fix tests
* fix AccessLevel
* rename CanAccess
* fix tests
* fix comment
* fix bug
* add missing unit for test repos
* fix bug
* rename some functions
* fix routes check
пре 5 година
Antoine GIRARD
908e8942cc
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 .
пре 6 година
stevegt
39f2aa7c12
add simple descriptions for file API responses (#4089)
* Partial fix for #4010
Swagger needs a description field in each swagger:operation response. Adding
minimal text for now on the way to getting swagger validate to pass. Many
standard swagger client libraries will not work with gitea until validate
passes, so prioritizing that over better descriptions for now.
Signed-off-by: Steve Traugott <stevegt@t7a.org>
пре 6 година
Bo-Yi Wu
1c5cbc390b
refactor: import order. (#3736)
пре 6 година
Ethan Koenig
f26f4a7e01
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
пре 6 година
Dennis Keitzel
96b4780727
Gracefully handle bare repositories on API operations. (#1932)
Signed-off-by: Dennis Keitzel <github@pinshot.net>
пре 7 година
Lunny Xiao
3917ed45de
golint fixed for routers (#208)
пре 7 година
Sandro Santilli
4247304f5a
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
пре 7 година
Sandro Santilli
6e4252dad4
Replace gogits/git-module dependency with go-gitea/git (#94)
* Replace gogits/git-module dependency with go-gitea/git
Fixes #92
* Remove git alias for git module import (not needed)
пре 7 година
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs (#37)
пре 7 година
Andrey Nering
9ac46fb983
Support Editorconfig on web editor
пре 7 година
Unknwon
f8a48ffaad
Web editor: improve code quality
пре 7 година
Unknwon
dd6faf7f9b
Convert all API handers to use *context.APIContext
пре 8 година
Unknwon
514382e2eb
Rename module: middleware -> context
пре 8 година
Unknwon
19423957b1
rename import path
пре 8 година
Unknwon
9a2e43bff2
move out git module and #1573 send push hook
пре 8 година
Unknwon
56dd430a10
refactor API routes and some work for #976
пре 8 година
Unknwon
cc8f5add6e
fix #976
пре 8 година
Unknwon
aff49b1c9e
unified API error response
пре 8 година
Unknwon
d951824ff9
able to download archive by API
пре 8 година
Peter Smit
ed89b39984
Updating context and fixing permission issues
The boolean flags in the repo context have been replaced with mode and two methods
Also, the permissions have been brought more in line with https://help.github.com/articles/permission-levels-for-an-organization-repository/ , Admin Team members are able to change settings of their repositories.
пре 9 година
Unknwon
a0f9197b45
GetFile api
пре 9 година
Unknwon
340a4595dd
support duoshuo mirror of gravatar
пре 9 година
Unknown
9d983f27d6
go vet
пре 10 година
Unknown
23bba7633b
Mirror fix on sqlite3 tag
пре 10 година
Michael Crosby
25fd495b2e
Add sqlite build tag
This adds a sqlite build tag so that you don't have to have the sqlite
import commented out in code and users can run:
go build -tags sqlite
if they want to have sqlite support enabled. It is disabled by default
so nothing changes with the default go get or build commands.
пре 10 година
zhsso
a4cbe79567
fix
пре 10 година
zhsso
f3ed11d177
mistakes
пре 10 година
Unknown
e51afe4621
Add postgres support, clean code, code review
пре 10 година
slene
fa5ad1e465
move templateFuncs to one file, add middleware context.
пре 10 година
Unknown
c6f2c23b05
Add binding form for register user
пре 10 година