Commit Graph

222 Commits (90577853ceae7d9a72b43722102a8826771dd6f8)

Author SHA1 Message Date
Kim "BKC" Carlbäcker 4bea219128 Status-API ()
Andrey Nering a0d0de7233 Create issue_watch table
Sandro Santilli 71d16f69ff Login via OpenID-2.0 ()
Antoine GIRARD ca1c3f1926 Implement GPG api ()
* Implement GPG API

* Better handle error

* Apply review recommendation + simplify database operations

* Remove useless comments
Lunny Xiao 7b64b2ddab fix install submit crash caused by xorm log ()
Lunny Xiao cd1821a7e2 Move push update to post-receive and protected branch check to pre-receive ()
* move all push update to git hook post-receive and protected branch check to git hook pre-receive

* add SSH_ORIGINAL_COMMAND check back

* remove all unused codes

* fix the import
Lunny Xiao d077fd084a added missing new struct sync ()
Lunny Xiao 04fdeb9d8d Make Xorm log configurable ()
* make xorm log configable

* bug fixed for other sub commands except web

* rebase and fix xorm log

* bug fix for TrimSpace
Lunny Xiao 55ae78208e Small optimization for getTeamIDs ()
* small optimization for getTeamIDs

* rename getOrgTeamIDs to getUserTeamIDs and remove orderby
Lunny Xiao d76f34ef51 small optimization for get issue labels
Ethan Koenig ceae143e78 Consistency checks for unit tests ()
Ethan Koenig 027591a3a5 Redirects for renamed repos ()
* Redirects for renamed repos

* Remove unused phrase from locales
Ethan Koenig f82ea42679 Fix bug in removeOrgRepo
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.
Ethan Koenig 833f8b94c2 Search bar for issues/pulls ()
Andrew 6dd096b7f0 Two factor authentication support ()
* Initial commit for 2FA support

Signed-off-by: Andrew <write@imaginarycode.com>

* Add vendored files

* Add missing depends

* A few clean ups

* Added improvements, proper encryption

* Better encryption key

* Simplify "key" generation

* Make 2FA enrollment page more robust

* Fix typo

* Rename twofa/2FA to TwoFactor

* UNIQUE INDEX -> UNIQUE
Lunny Xiao 980dd0bf51 Update xorm and dependencies vendor for feature to dump to other database ()
* update xorm and dependencies vendor for feature to dump to other database

* fix golint
Bo-Yi Wu 6510e57758 fix gofmt error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Andrey Nering 42904cb98a Notification - Step 1 ()
* Notification - Step 1

* Add copyright headers

* Cache issue and repository on notification model
Fabian Zaremba 2e7ccecfe6 Git LFS support v2 ()
* Import github.com/git-lfs/lfs-test-server as lfs module base

Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198

Removed:

Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go
.dockerignore .gitignore README.md

* Remove config, add JWT support from github.com/mgit-at/lfs-test-server

Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83

* Add LFS settings

* Add LFS meta object model

* Add LFS routes and initialization

* Import github.com/dgrijalva/jwt-go into vendor/

* Adapt LFS module: handlers, routing, meta store

* Move LFS routes to /user/repo/info/lfs/*

* Add request header checks to LFS BatchHandler / PostHandler

* Implement LFS basic authentication

* Rework JWT secret generation / load

* Implement LFS SSH token authentication with JWT

Specification: https://github.com/github/git-lfs/tree/master/docs/api

* Integrate LFS settings into install process

* Remove LFS objects when repository is deleted

Only removes objects from content store when deleted repo is the only
referencing repository

* Make LFS module stateless

Fixes bug where LFS would not work after installation without
restarting Gitea

* Change 500 'Internal Server Error' to 400 'Bad Request'

* Change sql query to xorm call

* Remove unneeded type from LFS module

* Change internal imports to code.gitea.io/gitea/

* Add Gitea authors copyright

* Change basic auth realm to "gitea-lfs"

* Add unique indexes to LFS model

* Use xorm count function in LFS check on repository delete

* Return io.ReadCloser from content store and close after usage

* Add LFS info to runWeb()

* Export LFS content store base path

* LFS file download from UI

* Work around git-lfs client issue with unauthenticated requests

Returning a dummy Authorization header for unauthenticated requests
lets git-lfs client skip asking for auth credentials
See: https://github.com/github/git-lfs/issues/1088

* Fix unauthenticated UI downloads from public repositories

* Authentication check order, Finish LFS file view logic

* Ignore LFS hooks if installed for current OS user

Fixes Gitea UI actions for repositories tracking LFS files.
Checks for minimum needed git version by parsing the semantic version
string.

* Hide LFS metafile diff from commit view, marking as binary

* Show LFS notice if file in commit view is tracked

* Add notbefore/nbf JWT claim

* Correct lint suggestions - comments for structs and functions

- Add comments to LFS model
- Function comment for GetRandomBytesAsBase64
- LFS server function comments and lint variable suggestion

* Move secret generation code out of conditional

Ensures no LFS code may run with an empty secret

* Do not hand out JWT tokens if LFS server support is disabled
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>
Bwko 4ff0db0246 Catch os... errors
Lunny Xiao bf8d90c5cc golint fixed for models/models.go ()
Bwko 0b9cf10340 Lint models/org.go & models.go
Lunny Xiao 450969c158 test database is connect OK after db config initialized ()
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
Joubert RedRat 28bee28102 Replace Gogs to Gitea in installation options
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
LefsFlare 2bec8a4f1e Changed interface ()
Unknwon 643142acab Web editor: support upload files
Unknwon 4042d1f0c3 models/issue: improve quality and performance of NewIssue function
Unknwon f59d2dd034 Code clean up
Unknwon 5be881756b add test suites
Thibault Meyer 4296427214 Fix : Cannot connect to PostgreSQL via IPv6 address ()
* Change PostgreSQL connstring parsing to handle IPv6

* Fix used variable

* Remove redundant code + use variable
Unknwon 70fbcd2f27 models: rename EnableTidb to EnableTiDB
Unknwon 5850308a37 support connect PostgreSQL via unix socket
Unknwon 2d76de2574 fix x.Iterate returns nothing inside session scope with SQLite3
Unknwon e74630ae3b add pagination for repositories
Tom 528682a294 getEngine() not handles DB parameters () ()
Unknwon ad513a20e9 Replace time.Time with Unix Timestamp (int64)
Lunny Xiao 779b71eda4 fix dependency broken because xorm's API changed
Unknwon 676d774d88 fix
Unknwon 932dbccb67 fix import path, fix
Unknwon 570ddefc32 print log every time regulater timezone
Unknwon f1c2276c8d add log when cannot regulate time
Unknwon 3fb1b6a608 drop oauth2 feature support
Unknwon e75fd2f783 simplify names
Unknwon e2d6b0116e only regulateTimeZone for MySQL
Unknwon aff773f1b9 add tidb support
Unknwon 373ef5d15e timezone minutes offset
Unknwon fa728d8dff more minor fix on 1581
Unknwon 52ec80fa18 finish all new user settings UI
Unknwon 85f34ba538 new user profile settings UI
Signed-off-by: Unknwon <u@gogs.io>
Unknwon b1f0f85789 force InnoDB for MySQL
Unknwon 1abfe4e05f PR: nothing to commit and has pull request check
Unknwon 8c046073a8 work on PR conversation
Unknwon 398569f6f8 Forked repo unavailable after deleting original repo
Unknwon 63799b3c18 URL escape for username and password
Unknwon 23f42d92c9 add webhook recent deliveries
Unknwon 87152f89ba fix release created timezone issue
Unknwon f114f78743 fix timezone!
Unknwon 17de3ab0a3 add migrate from issue.label_ids to issue_label
Unknwon 39a3b768bc : Add Deployment Key Support
Unknwon 81d01aa308 fix mysql parsetime arg
Unknwon cbb78b6a63 better wording
Unknwon 42a2c5ca54 use new connstr format for postgres
Tomcat 2bfe2ddb6d Add mysql unix socket support.
If the host setting looks like a unix socket (leading by char '/'), will use unix(host) as connection string
Unknwon ee68a826a5 v4 migration, merge 'dev', clean code and mirror fix
Unknwon 7ccab9cd09 Merge branch 'dev' of github.com:gogits/gogs into access
Conflicts:
	gogs.go
	models/models.go
	models/user.go
	templates/.VERSION
	templates/org/home.tmpl
Unknwon 685ed1f807 models: fix XORM API break
cmd/web.go: check version after load config
Unknwon 6d0f3a07d4 code fix caution: undertest
Unknwon 67a9416ae5 templates/user/auth/signin.tmpl: hide sign up prompt when registration is disabled
Unknwon 7e7160eefd first pass work on migration
Unknwon c5c467a9cd Merge branch 'dev' of github.com:gogits/gogs into access
Unknwon 485ea6f14f models: make code change for session issue with SQLite3
Peter Smit 03af37554e Merge branch 'dev' into newcollaboration
Unknwon b293b6eaa6 cmd: CMD option for port number of `gogs web` to prevent first time run conflict
- routers: use new binding convention to simplify code
- templates: able to set HTTP port number in install page
Peter Smit 76f8904718 Introducing Collaboration Struct
Peter Smit bb103e8723 Create db migrations framework
Unknwon bd555551ce fix
Peter Smit 99599c099f Add alternative email addresses to the model
A new struct is created named EmailAddress that contains alternative
email addresses for users. Also the email related methods; IsEmailUsed
and GetUserByEmail are updated.

DeleteUser deletes the extra email addresses and DeleteInactivateUsers
also deletes inactive accounts. This could be factored out, but should
do it for now.
Joseph Crail 39c068400e Fix spelling errors in comments.
Unknwon 8c9338a537 add personal access token panel
luto bff1e157d5 force the use of InnoDB as db engine for all tables, fixes
Unknwon a342d58d7e Able to fork repo to individuals
evolvedlight 8d2a6fc484 Merge remote-tracking branch 'upstream/dev'
Conflicts:
	models/repo.go
Unknwon 1aa76bd279 Fix , add system notice
evolvedlight c9e5e38fcf Initial cut of git fork
evolvedlight b7b0ee7df9 Fix minor typo
Unknwon 1b7adf57e9 fix https://github.com/go-xorm/xorm/issues/161
lunnyxiao d84d6dfdae add showinfo for xorm
Tristan Storch bdfdf3cacb Code dedoublication in models/models.go
Just some code dedoublication in models/models.go
lunnyxiao a6ec6def8d Merge branch 'dev' of github.com:gogits/gogs into dev
lunnyxiao c40e815763 add migrate api
Unknwon 1aec1a2dda Finish new admin dashboard
Unknwon 5fbf8531e6 Finish new home page of organization
Unknwon a8e05fdf1b Use toolbox
Justin Nuß 4617bef895 WIP: Allow attachments for comments