401 Commits (main)

Author SHA1 Message Date
Lunny Xiao 8a421b1fd7 Add units concept for modulable functions of a repository ()
* Add units concept for modulable functions of a repository

* remove unused comment codes & fix lints and tests

* remove unused comment codes

* use struct config instead of map

* fix lint

* rm wrong files

* fix tests
Gabriel Jackson bf6f61cc69 Cleanup log messaging
This change corrects a few logging issues:

 * Standardized formatting errors with '%v'.
 * Standardized failure warning word usage.
 * Corrected an instance of using the standard log library when
   the gitea log library should be used instead.
Schwobaland c0904f1942 Restrict creating organisations by user ()
* restrict creating organizations based on right on user

* revert bindata.go

* reverse vendor lib

* revert goimports change

* set AllowCreateOrganization default value to true

* revert locale

* added default value for AllowCreateOrganization

* fix typo in migration-comment

* fix comment

* add coments in migration
Bwko 331316894e Replace Gogs with Gitea ()
btrepp 25b5ffb6af Enables mssql support ()
* Enables mssql support

Port of dlobs work in gogs.
Enables options in index.js
Enables MSSQL as a database option in go.
Sets ID to 0 on initial migration. Required for
MSSQL insert statements.

Signed-off-by: Beau Trepp <beautrepp@gmail.com>

* Vendors in denisenkom/go-mssqldb

Includes golang.org/x/crypto/md4
as this is required by go-msssqldb

Signed-off-by: Beau Trepp <beautrepp@gmail.com>
Denis Denisov 380e32e129 Fix random string generator ()
* Remove unused custom-alphabet feature of random string generator

Fix random string generator

Random string generator should return error if it fails to read random data via crypto/rand

* Fixes variable (un)initialization mixed assign
Update test GetRandomString
Lunny Xiao 27d66855eb golint fixed for models/migrations ()
Andrey Nering 739f07c98e Remember diff view style ()
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
Lunny Xiao 7dcc3bc3d7 use x.SQL instead of x.Sql
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Unknwon c2afdf2192 Minor code fix [CI SKIP]
Unknwon 37305a59ca migrations: sync table first
Unknwon bb359a74f1 migrations: set comment updated as created
Unknwon 250be011c7 Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
Unknwon 52322ef624 models/user_mail: refactor EmailAddress
Unknwon 401bf944ef Use SecurityProtocol to replace UseSSL in LDAP config
Initially proposed by  and fixes  as well.
Unknwon ad513a20e9 Replace time.Time with Unix Timestamp (int64)
Unknwon ac78bae7b5 Replace uuid module with original package
Unknwon 3362b3a44f fix possible disclosure
Unknwon 7a3eccc709 Drop 0.5.x support
Unknwon eb30cbab81 add unsupported migration prompt
Unknwon b55499d039 go vet and fix
Unknwon 67ced4aaca safe check
Unknwon cb100c7781 work
Unknwon fc7959d3bc New/reopen PR checks if there is any unmerged and open PR
Unknwon 1453e91f41 minor fix on API response
Unknwon 34f6cbfc2a finish attachments when create issue
Unknwon 887bc1b594 Merge branch 'develop' of github.com:gogits/gogs into feature/pull_request2
# Conflicts:
#	modules/bindata/bindata.go
#	public/css/gogs.min.css
Unknwon 2aea247208 minor fix on
Unknwon 17de3ab0a3 add migrate from issue.label_ids to issue_label
Unknwon 39a3b768bc : Add Deployment Key Support
Unknwon 686dd59916 fix with migration and update locale
Unknwon 99b774e741 auto fix locale file name change
Unknwon 2bb982dada : Remove footer ads/branding from default template
Unknwon 6b70a0c0d9 : legacy code can have duplicated IDs for same repository
Unknwon 63a73b43b4 models/migrations: fix update error
Unknwon ee68a826a5 v4 migration, merge 'dev', clean code and mirror fix
Peter Smit ddf7014b9b Rewrite of access migration
The old migration had a few issues:
 - It left old column names around
 - It did not give the right access levels for owners and admins

Also, this includes a migration that fixes the authorization of owner teams, which was previously ORG_ADMIN (instead of ORG_OWNER)
Unknwon b99c4baab2 models/migrations: finish accessRefactor
无闻 7fda0cdb93 Merge pull request from phsmit/access_refactor
Access refactor
Unknwon 0b3722c359 models/migrations: fix little logic error
Peter Smit 0a4cda0dd4 Refactoring of the Access Table
This commit does a lot of the work of refactoring the access table in a table with id's instead of strings.

The result does compile, but has not been tested. It may eat your kittens.
Peter Smit 2804784df9 Some comments and improvements for migrations
Unknwon 876a856759 models/migartions: make Migration as interface and use session
Unknwon 7e7160eefd first pass work on migration
Peter Smit bef38d9d3f Fix collaboration migration code
Peter Smit 76f8904718 Introducing Collaboration Struct
Peter Smit 4ef3245413 Migration code: errors are not to be forgotten
Peter Smit 2a70d6b723 Clean up migrations code
Peter Smit bb103e8723 Create db migrations framework