summaryrefslogtreecommitdiffstats
path: root/vendor/github.com
Commit message (Collapse)AuthorAgeFilesLines
* Improve handling of non-square avatars (#7025)Rob Watson2019-05-255-0/+347
| | | | | | | | | | * 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>
* Handle CORS requests (#6289)Tamal Saha2019-05-1314-12/+457
|
* Improve migrations to support migrating ↵Lunny Xiao2019-05-0794-0/+31065
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update https://github.com/urfave/cli to version 1.2.0 (#6838)Antoine GIRARD2019-05-0313-160/+576
| | | From un-tagged pervious version : https://github.com/urfave/cli/compare/d86a009f5e13...master
* update github.com/mcuadros/go-version to v0.0.0-20190308113854-92cdf37c5b75 ↵Lunny Xiao2019-05-012-11/+44
| | | | (#6815)
* Bump github.com/stretchr/testify from 1.2.2 to 1.3.0 (#6663)Antoine GIRARD2019-04-163-24/+45
| | | | | 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)
* upgrade version of lib/pq to v1.1.0 (#6640)techknowlogick2019-04-1511-159/+521
| | | Adds SCRAM-SHA-256 authentication
* Issue indexer queue redis support (#6218)Lunny Xiao2019-04-0839-0/+11198
| | | | | | | | | | | | | | | | | | * add redis queue * finished indexer redis queue * add redis vendor * fix vet * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: lunny <xiaolunwen@gmail.com> * switch to go mod * Update required changes for new logging func signatures
* Better logging (#6038) (#6095)zeripath2019-04-0212-0/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
* Use Go1.11 module (#5743)Mura Li2019-03-27376-4551/+29222
| | | | | | | | | | | | | | | | | | * Migrate to go modules * make vendor * Update mvdan.cc/xurls * make vendor * Update code.gitea.io/git * make fmt-check * Update github.com/go-sql-driver/mysql * make vendor
* move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364)Lunny Xiao2019-03-275-0/+1607
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Replace linkRegex with xurls library (#6261)mrsdizzie2019-03-075-0/+2014
| | | | | | | | | | | | | | | | | | | | * 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: #5844 #3095 #3381 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.
* Refactor issue indexer (#5363)Lunny Xiao2019-02-193-0/+245
|
* Update bleve dependency to latest master revision (#6100)Lunny Xiao2019-02-17159-4125/+9816
| | | | | | | | * update bleve to master b17287a86f6cac923a5d886e10618df994eeb54b6724eac2e3b8dde89cfbe3a2 * remove unused pkg from dep file * change bleve from master to recent revision
* add other session providers (#5963)techknowlogick2019-02-05157-61/+37527
|
* Fix new release creation API to allow empty target (#5870)Lauris BH2019-01-302-312/+0
| | | | | | | | * Fix new release creation API to allow empty target * Add more test cases * Update swagger
* upgrade go-sql-driver/mysql to fix invalid connection error (#5748)Lunny Xiao2019-01-1711-519/+463
| | | should fix #5736
* Fixing #5728: (#5747)Zsombor2019-01-161-2/+6
| | | | * 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
* Discord Oauth2 support (#4476)techknowlogick2019-01-134-23/+296
| | | | | | | | | | | | | | * add discord auth * add vendor for discord * fix syntax error * make fmt * update version of goth in use * update markbates/goth
* Update xorm to fix issue #5659 and #5651 (#5680)Zsombor2019-01-092-3/+8
|
* fix forgot removed records when deleting user (#5429)Lunny Xiao2018-12-1813-111/+698
| | | | | | | | | | * fix forgot removed records when deleting user * fix migration * fix rewritekey lock on sqlite * remove unused codes
* Added test environment for mssql (#4282)kolaente2018-12-1219-56/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Implement git refs API for listing references (branches, tags and other) (#5354)Lauris BH2018-11-2751-0/+5651
| | | | | | | | | | | | | | | | * Inital routes to git refs api * Git refs API implementation * Update swagger * Fix copyright * Make swagger happy add basic test * Fix test * Fix test again :)
* Remove x/net/context vendor by using std package (#5202)Antoine GIRARD2018-11-1026-482/+1083
| | | | | | | | | | | | * 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
* Prometheus endpoint (#5256)Stanislav2018-11-04103-2971/+24223
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Update go-macaron/session to latest mast to fix RCE-bug (#5177)Kim "BKC" Carlbäcker2018-10-252-12/+20
|
* Update vendor/github.com/mattn/go-sqlite3 (#5162)Mura Li2018-10-241-1/+2
| | | To fix build failure on Windows/386
* Update vendor/go-sqlite3 (#5133)Mura Li2018-10-2333-14459/+35764
|
* Disable debug routes unless PPROF is enabled in configuration (#4995)Lauris BH2018-09-291-13/+17
|
* Fix #4877 to follow the OpenID Connect Audiences spec (#4878)OvermindDL12018-09-201-1/+29
| | | | | Signed-off-by: Gabriel Robertson <overminddl1@gmail.com>
* Update xorm to latest version and fix correct `user` table referencing in ↵Lauris BH2018-07-2040-1060/+1674
| | | | sql (#4473)
* Simply remove tidb and deps (#3993)Antoine GIRARD2018-07-04394-166195/+0
|
* Dep upgrade mysql lib (#4161)techknowlogick2018-07-0320-605/+1800
| | | | * update gopkg file to add sql dep
* LDAP Public SSH Keys synchronization (#1844)Magnus Lindvall2018-05-2410-348/+284
| | | | | | | | | | | | | | | | | | | * Add LDAP Key Synchronization feature Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Add migration: add login source id column for public_key table * Only update keys if needed * Add function to only list pubkey synchronized from ldap * Only list pub ssh keys synchronized from ldap. Do not sort strings as ExistsInSlice does it. * Only get keys belonging to current login source id * Set default login source id to 0 * Some minor cleanup. Add integration tests (updete dep testify)
* Support secure cookie for csrf-token (#3839)Aleksandr Bulyshchenko2018-05-221-7/+18
| | | | | | | | | | | | | | | | | * dep: Update github.com/go-macaron/csrf Update github.com/go-macaron/csrf with dep to revision 503617c6b372 to fix issue of csrf-token security. This update includes following commits: - Add support for the Cookie HttpOnly flag - Support secure mode for csrf cookie Signed-off-by: Aleksandr Bulyshchenko <A.Bulyshchenko@globallogic.com> * routers: set csrf-token security depending on COOKIE_SECURE Signed-off-by: Aleksandr Bulyshchenko <A.Bulyshchenko@globallogic.com>
* Migrate to dep (#3972)Antoine GIRARD2018-05-21199-26168/+1337
| | | | | | | | | | | | * 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
* Fetch missing file in github.com/davecgh/go-spew/spew (#3995)Antoine GIRARD2018-05-201-0/+38
|
* Add support for FIDO U2F (#3971)Jonas Franz2018-05-197-0/+785
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for U2F Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add vendor library Add missing translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add U2F support for Firefox, Chrome (Android) by introducing a custom JS library Add U2F error handling Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add U2F login page to OAuth Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move U2F user settings to a separate file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for u2f model Renamed u2f table name Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by refactoring Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add U2F documentation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove not needed console.log-s Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add default values to app.ini.sample Add FIDO U2F to comparison Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Update to last common bleve (#3986)Antoine GIRARD2018-05-19183-43/+39402
|
* Update xormstore dependency to fix OAuth2 support for MySQL (#3955)Lauris BH2018-05-131-1/+1
|
* Switch back to upstream goth repository and update govendor to latest goth ↵Lauris BH2018-04-302-7/+6
| | | | version (#3863)
* Store OAuth2 session data in database (#3660)Lauris BH2018-04-297-0/+573
| | | | | | * Store OAuth2 session data in database * Rename table to `oauth2_session` and do not skip xormstorage initialization error
* Update blackfriday dependency per #2994 (#3857)PJ Eby2018-04-298-107/+289
| | | Signed-off-by: PJ Eby <pje@telecommunity.com>
* Update markbates/goth libary to fix OAuth2 support (#3661)Lauris BH2018-03-132-18/+42
|
* Update markbates/goth library (#3533)Lauris BH2018-02-1910-128/+252
| | | Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
* Reduce repo indexer disk usage (#3452)Ethan Koenig2018-02-058-0/+575
|
* fix MSSQL bug on org (#3405)Lunny Xiao2018-01-2727-152/+999
|
* Remove unused vendor github.com/stretchr/testify/require (#3273)Antoine GIRARD2017-12-317-1721/+0
|
* Update code.gitea.io/git (#3137)Ethan Koenig2017-12-1125-220/+2897
|
* Various wiki bug fixes (#2996)Ethan Koenig2017-11-282-21/+41
| | | | | | * Update macaron * Various wiki bug fixes