Commit Graph

1448 Commits (884c60480dcce1901051354bb2a9a03ebab56b7c)

Author SHA1 Message Date
Ethan Koenig 6d613fb28e No highlighting for .txt files ()
Jonas Östanbäck d9a8eff2de Send mails as HTML as default. Setting for send as plain text. ()
* Send mails as HTML as default. Setting for send as plain text.
 * Add new option SendAsPlainText. remove EnableHTMLAlternative
 * Send HTML mails as default
 * Add html check if html2text should be performed

* Send only multipart or plain. Add deprication warning for ENABLE_HTML_ALTERNATIVE

* Still use ENABLE_HTML_ALTERNATIVE for backward compatibility

* Changed to not ignore html2text errors
Sandro Santilli f6b58964d7 Include formatting check to the `make test` (and thus also `check`) rule ()
* Include formatting check to the `make check` rule

... and give it its own standalone target too (make fmt-check)

Show diff on fmt-check failure
Do not allow running "fmt-check" with incompatible go version
Also simplify the `fmt` rule

* Forbid running "make fmt" with Go version != 1.7 or 1.8

* Ignore bindata.go for spelling and formatting checks

also remove duplicated variable assignment for GOFILES

* Run `make fmt`
Phil Hopper 6ec07a6bd7 Make `LocalCopyPath` a setting instead of a hard-coded path ()
Ethan Koenig bfb44f8854 Fix status table race condition ()
Ethan Koenig 642f844735 Fix PR template error ()
Jonas Östanbäck b93568cce4 xxx_active_code_live setting in printed in hours and minutes instead … ()
* xxx_active_code_live setting in printed in hours and minutes instead of just hours

* Update app.ini description of xxx_code_lives settings
Rémy Boulanouar e0c6ab2d44 Add Gitea Webhook ()
* Replace Gogs by Gitea

* Fix missing changes

* Create Gitea webhook and put Gogs webhook apart.
Bo-Yi Wu 1e40c2e579 fix: fix set MAX_CREATION_LIMIT as zero. ()
* fix:  fix set MAX_CREATION_LIMIT as zero.

* fix: missing default value
Andrey Nering be5323a05f Update HighlightJS and fix YAML files highlighting ()
* Update HighlightJS to 9.11.0

* Fix YAML files highlighting
Lunny Xiao 6362462da8
fix admin lost permission caused by
Lunny Xiao fd6034aaf2 Add units to team ()
* add units to team

* fix lint

* finish team setting backend

* finished permission controll on routes

* fix import blank line

* add unit check on ssh/http pull and push and fix test failed

* fix fixtures data

* remove unused code
Jonas Östanbäck 5db5e16ab6 Correct grammar in APIEmpty documentation ()
* Correct grammar in APIEmpty doc

* Generate swagger.v1.json
Ethan Koenig 9e627af9a4 gofmt ()
Ethan Koenig 5ca3046da6 Fix rendering of issue checkboxes ()
Lauris BH 524885dd65 LDAP user synchronization ()
mappu fd76f090a2 markup: microoptimise for many short filenames in directory ()
* markup: microoptimise for many short filenames in directory

Move strings.ToLower() after the early-return length check. This is a safe operation in all cases and should slightly improve directory listing performance when a directory contains many thousands of files with short filenames.

* markup: expand test cases for IsReadmeFile()
Lauris BH 51d0becb42 Add configuration option for default permission to create Organizations ()
Lauris BH 9a0b0da1fe Fix commit sha1 URL rendering in markdown ()
* Fix commit sha1 URL rendering in markdown

* Add unit test for commit sha1 markdown rendering when sha1 has space before it

* Change to better variable name
Lunny Xiao 1773e88643 Drop db operations from hook commands ()
* move all database operations from hook command to web command and instead of internal routes

* bug fixed

* adjust the import path sequences

* remove unused return value on hookSetup
Antoine GIRARD 3edb0c5894 Generate swagger json ()
- Generate swagger.json into public/
- Add swagger-ui auto-installation
- Add footer link to local swagger-ui
- Add /swagger url for using app url.
- Fix Swagger-UI version via git tag
Lunny Xiao 0d1e001b9c fix multiple readme file rendering and fix ()
* fix multiple readme file rendering and fix 

* remove unnecessary loop
Lauris BH 0144817971 Do not allow commiting to protected branch from online editor ()
* Do not allow commiting to protected branch from online editor

* Add editor integration tests for adding new file and not allowing to add new file to protected branch
Lunny Xiao 3ebbdfaa75 make openid support default false for compitable with v1.1 ()
Willem van Dreumel 950f2e2074 Additional OAuth2 providers ()
* add google+

* sort signin oauth2 providers based on the name so order is always the same

* update auth tip for google+

* add gitlab provider

* add bitbucket provider (and some go fmt)

* add twitter provider

* add facebook provider

* add dropbox provider

* add openid connect provider incl. new format of tips section in "Add New Source"

* lower the amount of disk storage for each session to prevent issues while building cross platform (and disk overflow)

* imports according to goimport and code style

* make it possible to set custom urls to gitlab and github provider (only these could have a different host)

* split up oauth2 into multiple files

* small typo in comment

* fix indention

* fix indentation

* fix new line before external import

* fix layout of signin part

* update "broken" dependency
Antoine GIRARD 8371f94d06 Rework SSH key management UI to add GPG ()
* Rework SSH key management UI to add GPG

* Add more detail to gpg key display

* Update CHANGELOG.md

* Implement deletion UI

* Implement adding gpg UI

* Various fixes

- Fix duplicate entry in locale
- Re-generate hash before verification since they are consumed

* Add missing translation

* Split template

* Catch not found/verified email error
Morlinest fcc7cdab11 Fix markdown rendering ()
Lunny Xiao 52627032bc Add markup package to prepare for org markup format ()
Lunny Xiao f0db3da713 fix go get sub package and add domain on installation to let go get work defaultly ()
* fix go get sub package and add domain on installation to let go get work defaultly

* fix import sequence

* fix .git problem
Lunny Xiao a2d365c81f fix ssh hangs caused by ()
Lunny Xiao 2eeae84cbd Add internal routes for ssh hook comands ()
* add internal routes for ssh hook comands

* fix lint

* add comment on why package named private not internal but the route name is internal

* add comment above package private why package named private not internal but the route name is internal

* remove exp time on internal access

* move routes from /internal to /api/internal

* add comment and defer on UpdatePublicKeyUpdated
Lauris BH f42ec6120e Better URL validation ()
* Add correct git branch name validation

* Change git refname validation error constant name

* Implement URL validation based on GoLang url.Parse method

* Backward compatibility with older Go compiler

* Add git reference name validation unit tests

* Remove unused variable in unit test

* Implement URL validation based on GoLang url.Parse method

* Backward compatibility with older Go compiler

* Add url validation unit tests
Kim "BKC" Carlbäcker d409d3ab57 Sanitation fix from Gogs ()
* Santiation fix from Gogs

* Linting

* Fix build-errors

* still not working

* Fix all the things!

* gofmt

* Add code-injection checks
Jonas be6edaddcb Repo size in admin panel ()
* Implementation of the feature to view repository size in admin panel
 * Move GetRepoSize to git module
 * Repository.RepoSize -> Repository.Size
 * RepoSize -> Size in template
 * Redo a few bits and pieces
 * Update size when syncing mirror or forking
 * Remove GetRepoSize
 * Changed fatal errors to error message

* Copy migration code from Gogs

* make fmt
Jonas 54f0293f0a Mirror sync interval specified as duration string ()
* Sync interval specifed as duration string

* Changed mirror interval text

* make fmt

* Add MinInterval for mirror sync

* Use duration internally

* Changed min default to 10m

* make fmt

* Incorrect default

* Removed defaults in MustDuration()

* Add Mirror interval migration

* Default values corrected

* Use transaction during migration

* Change http 500 to page with error message

* Cleanup session.commit()
Mura Li b746757209 Remove unused mutex field ()
Mura Li 93c25c9a35 Fix races in the log module by using syncmap ()
Jonas 095e1f5155 Support for custom html meta ()
* Support for custom html meta

* Changed html meta description default
Sandro Santilli 129b0d6a4b Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION ()
* Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION

Omit the configuration variable (the default) to be dependent.
Fixes 

* Move OpenID settings under Service object

* Show OpenID SignUp and SignIn status in admin panel / configuration
Bo-Yi Wu 08f7fded3c refactor: remove workaround after the golang 1.7 release. ()
* refactor: remove workaround after the golang 1.7 release.

* remove unused import.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* refactor: Add remove function.

* refactor: rename

* refactor: update build flag
Sandro Santilli f73e734411 Run "make fmt" with go-1.6 ()
caiwp dbabc35e71 Delete the useless code ()
Lunny Xiao 8bcb643a03 remove empty file ()
Bo-Yi Wu 1c3bd436cc feat: Only use issue and wiki on repo. ()
Sandro Santilli 71d16f69ff Login via OpenID-2.0 ()
Lunny Xiao 3cf0e513e6 fix wrong log when push to a new branch ()
Ethan Koenig 17f403fbcd Fix nil-dereference bug
Ethan Koenig 021904e4e6 Fix typos in models/ and modules/ ()
Ethan Koenig ec0ae5d50c Refactor and fix incorrect comment ()
Andrey Nering d2b2881306 Fix Git hooks not being executed on Windows when running as a service ()
Closes