Commit Graph

20 Commits (b48be1958c8334db77c641f574feca1b26d35a19)

Author SHA1 Message Date
mrsdizzie f2de5dc8c8 Replace linkRegex with xurls library ()
* Replace linkRegex with xurls library

Rather than maintaining a complicated regex to match URLs for
autolinking, gitea can use this existing go library that takes care of
the matching with very little code change to gitea itself. After
spending a while trying to find the perfect regex for all cases this library
still works better as it is more flexible than a single regex ever will be.

This will also fix the following issues:   

This passes all our current tests and I've added new ones mentioned in
those issues as well.

* Use xurls.StrictMatchingScheme instead of xurls.Strict

This is much faster and we only care about https? links to preserve
existing behavior.
zeripath 22770c324d
Move to ldap.v3 to fix ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao a380cfd8e0 Update bleve dependency to latest master revision ()
* update bleve to master b17287a86f6cac923a5d886e10618df994eeb54b6724eac2e3b8dde89cfbe3a2

* remove unused pkg from dep file

* change bleve from master to recent revision
Lunny Xiao 477a80f658 upgrade go-sql-driver/mysql to fix invalid connection error ()
should fix 
Zsombor c2dcb35148 Fixing : ()
* Format boolean values to true/false even when it is returned as byte-slice,
* Fix the sequence generation, the proper sequence name is used (instead of 'table_id_seq'), and fix the next value be max+1 always
Zsombor 31aa00fa4b Update xorm to fix issue and ()
Lunny Xiao fe55ab2a68 fix forgot removed records when deleting user ()
* fix forgot removed records when deleting user

* fix migration

* fix rewritekey lock on sqlite

* remove unused codes
kolaente 6db7dbd333 Added test environment for mssql ()
* Added test environment for m$sql

* Added template for test environment for m$sql

* Fix password

* Fix password (again)

* Fix password (again again)

* Fix db

* Ci trigger (Looking at you drone....)

* Ci trigger (Looking at you drone....)

* Ci trigger (Looking at you drone....)

* Ci trigger (Looking at you drone....)

* Create master database for mssql integration tests

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Create database only if master do not exist

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix mssql integration tests by using custom database "gitea"

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Moved defer

* bump xorm

* updated xorm

* Fixed build
Antoine GIRARD 4c1f1f9646 Remove x/net/context vendor by using std package ()
* Update dep github.com/markbates/goth

* Update dep github.com/blevesearch/bleve

* Update dep golang.org/x/oauth2

* Fix github.com/blevesearch/bleve to c74e08f039e56cef576e4336382b2a2d12d9e026

* Update dep golang.org/x/oauth2
Stanislav 078c404c3b Prometheus endpoint ()
* Add prometheus collector and route

* dep ensure -add github.com/prometheus/client_golang/prometheus

* dep ensure -update github.com/golang/protobuf

* add metrics to reserved usernames

* add comment head in metrics package

* fix style imports

* add metrics settings

* add bearer token check

* mapping metrics configs

* fix lint

* update config cheat sheet

* update conf sample, typo fix
Antonio Huete Jimenez 99c09dfbfa Update vendor/golang.org/x/sys ()
Antoine GIRARD 2af57c7820 Update x/net ()
Mura Li 317ddb7283 Update vendor/github.com/mattn/go-sqlite3 ()
To fix build failure on Windows/386
Mura Li 2ce72d4e00 Update vendor/go-sqlite3 ()
Lauris BH 0cd8cecdf8
Fix dep for actual goth version used in dep lock file ()
Fluf b82c14b3d2 add letsencrypt to Gitea ()
Lauris BH 0c59edaafa Update xorm to latest version and fix correct `user` table referencing in sql ()
Antoine GIRARD 74f9f98f78 Simply remove tidb and deps ()
techknowlogick 9d4c1ddfa1
Dep upgrade mysql lib ()
*  update gopkg file to add sql dep
Antoine GIRARD 3f3383dc0a Migrate to dep ()
* Update makefile to use dep

* Migrate to dep

* Fix some deps

* Try to find a better version for golang.org/x/net

* Try to find a better version for golang.org/x/oauth2