Lauris BH
29dac507f0
Rewrite markdown rendering to blackfriday v2 and rewrite orgmode rendering to go-org ( #8560 )
* Rewrite markdown rendering to blackfriday v2.0
* Fix style
* Fix go mod with golang 1.13
* Fix blackfriday v2 import
* Inital orgmode renderer migration to go-org
* Vendor go-org dependency
* Ignore errors :/
* Update go-org to latest version
* Update test
* Fix go-org test
* Remove unneeded code
* Fix comments
* Fix markdown test
* Fix blackfriday regression rendering HTML block
5 years ago
Lunny Xiao
edf0647db9
Upgrade xorm to v0.8.0 ( #8536 )
5 years ago
Colin Arnott
a046a60c1e
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.
5 years ago
Colin Arnott
38453a8415
upgrade gopkg.in/ini.v1 ( #8500 )
ini released v1.48.0 and deprecated the ini.AllCapsUnderscore symbol, as
such, during the upgrade we migrated to using ini.SnackCase.
5 years ago
zeripath
97f2ba3163
Restore Graceful Restarting & Socket Activation ( #7274 )
* Prevent deadlock in indexer initialisation during graceful restart
* Move from gracehttp to our own service to add graceful ssh
* Add timeout for start of indexers and make hammer time configurable
* Fix issue with re-initialization in indexer during tests
* move the code to detect use of closed to graceful
* Handle logs gracefully - add a pid suffix just before restart
* Move to using a cond and a holder for indexers
* use time.Since
* Add some comments and attribution
* update modules.txt
* Use zero to disable timeout
* Move RestartProcess to its own file
* Add cleanup routine
5 years ago
Antoine GIRARD
0397c3df65
vendor: update mvdan.cc/xurls/v2 to v2.1.0 ( #8495 )
5 years ago
guillep2k
35d96397e1
Update strk.kbt.io/projects/go/libravatar to latest; closes #7860 ( #8429 )
5 years ago
Lunny Xiao
659771f8dd
Upgrade xorm to v0.7.9 to fix some bugs ( #8354 )
* upgrade xorm to v0.7.9 to fix some bugs
* upgrade xormstore to v1.3.1
5 years ago
Antoine GIRARD
54706a53ad
Update to github.com/lafriks/xormstore@v1.3.0 ( #8317 )
5 years ago
Lunny Xiao
668f344efb
Move mirror to a standalone package from models ( #7486 )
* move mirror to a standalone package
* fix mirror address in template
* fix tests
* fix lint
* fix comment
* fix tests
* fix tests
* fix vendor
* fix fmt
* fix lint
* remove wrong file submitted
* fix conflict
* remove unrelated changes
* fix go mod
* fix tests
* clean go mod
* make vendor work
* make vendor work
* fix tests
* remove duplicated test
5 years ago
Lunny Xiao
bdefe2a81e
Upgrade xorm to latest to fix insert issue bug ( #8309 )
* upgrade xorm to latest to fix insert issue bug
* add newissue unit tests
* update xorm version
* fix tests
5 years ago
John Olheiser
94cdec8339
Update xorm ( #8286 )
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
Lunny Xiao
0335afce67
Fix label count ( #8267 )
* fix label count
* fix vendor
* fix import order
* update xorm to fix bug
* fix tests
* fix mssql bug
5 years ago
techknowlogick
fbb544d095
oauth2 with remote Gitea - Fix #8093 ( #8149 )
5 years ago
techknowlogick
f89493b9e3
use go 1.13 ( #8088 )
* use go 1.13
* use go 1.13 in gomod file
* Update Makefile
* update swagger deps
5 years ago
WGH
016de7972b
Implement webhook branch filter ( #7791 )
* Fix validate() function to handle errors in embedded anon structs
* Implement webhook branch filter
See #2025 , #3998 .
5 years ago
Antoine GIRARD
a0123b2e9c
Use vendored go-swagger ( #8087 )
* Use vendored go-swagger
* vendor go-swagger
* revert un wanteed change
* remove un-needed GO111MODULE
* Update Makefile
Co-Authored-By: techknowlogick <matti@mdranta.net>
5 years ago
guillep2k
07587e34a4
Strict name matching for Repository.GetTagID() ( #8074 )
* Strict name matching for Repository.GetTagID()
* Perform make swagger-check swagger-validate vendor
* Add test for GetTagID()
5 years ago
guillep2k
fc0fc34478
Make CI work ( #8057 )
* Use export GOPROXY=https://goproxy.cn before build
* Add go version to generate command
* Reproduced the entire build procedure - see notes
I've used:
sudo go clean -i -r -cache -testcache -modcache
make clean
make generate
make golangci-lint
make revive
make swagger-check
make swagger-validate
make test-vendor <--- this now fails
make vendor <--- this now produced changes
git commit -a <--- this commit
* Add fix from #8059 to complete CI tests
5 years ago
Antoine GIRARD
a9ab3c819c
Update to mod enabled version goquery ( #8021 )
* update to mod enabled version goquery
* manually set appengine new release
5 years ago
guillep2k
969b2da2e9
Update github.com/lafriks/xormstore and tidy up mod.go ( #8020 )
5 years ago
Antoine GIRARD
2c9cb15755
Update swagger to 0.20.1 ( #8010 )
* update swagger to 0.20.1
* fiw swagger version for validate
5 years ago
guillep2k
117bbcc354
Retry create issue to cope with duplicate keys ( #7898 )
* Retry create issue to cope with duplicate keys
* Use .SetExpr().Where().Insert()
5 years ago
Tamal Saha
033fe113c1
Use gitea forked macaron ( #7933 )
Signed-off-by: Tamal Saha <tamal@appscode.com>
5 years ago
Antoine GIRARD
92cf243031
deps: Upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 ( #7749 )
* deps: Upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 from 1.2.0 to 1.3.0
* deps: vendor updates
5 years ago
Antoine GIRARD
a5fee1c0c1
update gopkg.in/src-d/go-git.v4 to v4.13.1 ( #7705 )
5 years ago
Antoine GIRARD
8dd043d5db
Update src-d/go-git to v4.13.0 ( #7688 )
* update gopkg.in/src-d/go-git.v4 v4.13.0
* mod tidy
* vendor
5 years ago
zeripath
cfb86e94ee
Update to latest mssqldriver ( #7613 )
* New driver does not tolerate USE - handle this by closing db and reopening db in the new dbname
6 years ago
Tamal Saha
450c1a0b1b
Update to xorm@v0.7.4 ( #7596 )
Signed-off-by: Tamal Saha <tamal@appscode.com>
6 years ago
Lunny Xiao
0b798129d2
Move status table to cron package ( #7370 )
6 years ago
Tamal Saha
695ea2f40e
Support setting cookie domain ( #6288 )
Signed-off-by: Tamal Saha <tamal@appscode.com>
6 years ago
Lunny Xiao
b0c0637a8d
upgrade macaron/captcha to fix random error problem ( #7407 )
6 years ago
Lunny Xiao
f89e77f36d
fix vendor ( #7394 )
6 years ago
techknowlogick
f37107e6bc
switch to use gliderlabs/ssh for builtin server ( #7250 )
resolves git conflicts from #3896 (credit to @belak , in case github doesn't keep original author during squash)
Co-Authored-By: Matti Ranta <techknowlogick@gitea.io>
6 years ago
Cherrg
2907eb5a2f
workaround broken drone build ( #7362 )
* workaround broken swagger
only master brach is not working, latest release seems to work
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* make vendor
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* Don't export GO111MODULE
* set go-swagger to fixed release version
mentioned here: https://github.com/go-gitea/gitea/pull/7362#discussion_r300831537
Signed-off-by: Michael Gnehr <michael@gnehr.de>
6 years ago
Antoine GIRARD
5971a9ee92
update mssql drive to last working version 20180314172330-6a30f4e59a44 ( #7306 )
6 years ago
Lunny Xiao
1d4cf7b213
Fix error log when loading issues caused by a xorm bug ( #7271 )
* fix error log when loading issues caused by a xorm bug
* upgrade packages
* fix fmt
* fix Consistency
* fix tests
6 years ago
techknowlogick
99f593acb0
update go-git to v4.12.0 - fixes #7248 ( #7249 )
6 years ago
Lunny Xiao
097250130f
Use vfsgen instead of go-bindata ( #7080 )
* use vfsgen instead of go-bindata
* fix templates
* fix fmt
* vendor vsfgen
6 years ago
Lunny Xiao
8bff3e327b
update go git from v4.10.0 to v4.11.0 ( #7096 )
6 years ago
Rob Watson
7288c069d3
Improve handling of non-square avatars ( #7025 )
* Crop avatar before resizing (#1268 )
Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
* Fix spelling error
Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
6 years ago
Tamal Saha
96c6253b9b
Handle CORS requests ( #6289 )
6 years ago
Lunny Xiao
45d0e05e14
Move sdk structs to modules/structs ( #6905 )
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
6 years ago
techknowlogick
65f3bce363
update sdk to latest ( #6903 )
6 years ago
Lunny Xiao
b22b06dc27
Improve migrations to support migrating milestones/labels/issues/comments/pullrequests ( #6290 )
* add migrations
* fix package dependency
* fix lints
* implements migrations except pull requests
* add releases
* migrating releases
* fix bug
* fix lint
* fix migrate releases
* fix tests
* add rollback
* pull request migtations
* fix import
* fix go module vendor
* add tests for upload to gitea
* more migrate options
* fix swagger-check
* fix misspell
* add options on migration UI
* fix log error
* improve UI options on migrating
* add support for username password when migrating from github
* fix tests
* remove comments and fix migrate limitation
* improve error handles
* migrate API will also support migrate milestones/labels/issues/pulls/releases
* fix tests and remove unused codes
* add DownloaderFactory and docs about how to create a new Downloader
* fix misspell
* fix migration docs
* Add hints about migrate options on migration page
* fix tests
6 years ago
techknowlogick
1115700cd0
Hash App token ( #6724 )
6 years ago
Antoine GIRARD
bd9b232845
Update https://github.com/urfave/cli to version 1.2.0 ( #6838 )
From un-tagged pervious version : https://github.com/urfave/cli/compare/d86a009f5e13...master
6 years ago
Lunny Xiao
751aa86347
update github.com/mcuadros/go-version to v0.0.0-20190308113854-92cdf37c5b75 ( #6815 )
6 years ago
Segev Finer
9dcb34aee6
Add API for manipulating Git hooks ( #6436 )
* Add API for manipulating Git hooks
Signed-off-by: Segev Finer <segev@codeocean.com>
* Replace code.gitea.io/sdk with PR branch temporarily for CI
* Switch back to code.gitea.io/sdk@master
* Return 403 instead of 404 on no permission to edit hooks in API
* Add tests for Git hooks API
* Update models/repo_list_test.go
Co-Authored-By: segevfiner <segev208@gmail.com>
* Update models/repo_list_test.go
Co-Authored-By: segevfiner <segev208@gmail.com>
* empty line
6 years ago
Antoine GIRARD
520ce93607
Bump github.com/stretchr/testify from 1.2.2 to 1.3.0 ( #6663 )
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.2.2...v1.3.0 )
6 years ago