summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Fix SHA1 hash linking (#2143)Roy Marples2017-07-122-6/+15
| | | | | | | | | | | | | | | | This changes the regex to look for a hash from 7 to 40 characters, to match the use of abbreviated hash lookups in both git and github. The restriction of not being a pure number is also removed because 1234567 is now considered a valid abbreviated hash, as is deadbeef. A note has been added to the top of the code to state that the literal regex match is fine, but no extra validation is currently performed so some false positives are expected. A future change could ensure that the hash exists in the repository before rendering it as a link, although this might incur a slight performance penalty. Reverts part of commit 4a46613 and fixes #2053.
* Fix import orderEthan Koenig2017-07-061-4/+4
|
* Relative URL testsEthan Koenig2017-07-061-0/+4
|
* Fix wiki preview linksEthan Koenig2017-07-062-40/+43
|
* Fix missing-return bug (#2109)Ethan Koenig2017-07-041-0/+1
|
* Check for valid renamed usernames (#2077)Ethan Koenig2017-07-011-1/+1
| | | | | | | | | | * Check for valid renamed usernames * Integration test * Test for username with space * Make name field required
* Absolute path for setting.CustomConf (#2085)Ethan Koenig2017-07-011-0/+2
|
* lintEthan Koenig2017-06-291-0/+1
|
* Use default avatar on errorEthan Koenig2017-06-291-1/+6
|
* Don't ignore gravatar errorEthan Koenig2017-06-291-2/+4
|
* Make time diff translatable (#2057)Lauris BH2017-06-282-72/+37
|
* Setting to disable authorized_keys backup (#1856)Dan Magnus Lindvall2017-06-281-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add setting to disable authorized_keys backup when rewriting public keys Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Update default value to comply with documentation Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Use tmp-file instead of bak-file for saving manually added keys. Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change casing Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change casing and build bakpath with sprintf only Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Only close file once Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Do not modify calcFingerprint Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Fix casing Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change style from disable to enable Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change name, just SSH_BACKUP_AUTHORIZED_KEYS Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Do not check for directory existence if backup is disabled Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Always return valid go-get meta, even if unauthorized (#2010)Kim "BKC" Carlbäcker2017-06-261-3/+41
| | | | | | * Always return valid go-get meta, even if unauthorized * don't leak information
* remove deprecated code for Gogs compitable (#2041)Lunny Xiao2017-06-231-9/+1
|
* ROOT_URL setting use the default as shown in conf/app.ini (#1823)Mike Fellows2017-06-221-12/+18
| | | | | | | | | | | | | | | | | | The well commented conf/app.ini file that comes with the code shows the ROOT_URL (i.e. setting.AppURL) as: ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ However the installed custom/conf/app.ini file does not include this setting as shown, and the default in the setting module was hard coded to http://localhost:3000/ instead of what is shown above. With this change the ROOT_URL will default to what is shown above if it is not set in the custom/conf/app.ini. Of course it is still possible to override the default by adding the ROOT_URL setting to your custom/conf/app.ini file as usual. Signed-off-by: Mike Fellows <mike.fellows@shaw.ca>
* fix misspell (#1996)Bo-Yi Wu2017-06-181-1/+1
| | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Merge pull request #1829 from ethantkoenig/no_branchesAndrey Nering2017-06-121-0/+4
|\ | | | | Commitless repos should be bare
| * Commitless repos should be bareEthan Koenig2017-05-281-0/+4
| |
* | No highlighting for .txt files (#1922)Ethan Koenig2017-06-091-1/+3
| |
* | Send mails as HTML as default. Setting for send as plain text. (#1648)Jonas Östanbäck2017-06-072-21/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Include formatting check to the `make test` (and thus also `check`) rule (#1366)Sandro Santilli2017-06-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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`
* | Make `LocalCopyPath` a setting instead of a hard-coded path (#1881)Phil Hopper2017-06-061-0/+14
| |
* | Fix status table race condition (#1835)Ethan Koenig2017-05-312-0/+21
| |
* | Fix PR template error (#1834)Ethan Koenig2017-05-301-7/+5
| |
* | xxx_active_code_live setting in printed in hours and minutes instead … (#1814)Jonas Östanbäck2017-05-292-0/+21
| | | | | | | | | | | | * xxx_active_code_live setting in printed in hours and minutes instead of just hours * Update app.ini description of xxx_code_lives settings
* | Add Gitea Webhook (#1755)Rémy Boulanouar2017-05-292-1/+16
|/ | | | | | | | * Replace Gogs by Gitea * Fix missing changes * Create Gitea webhook and put Gogs webhook apart.
* fix: #1757 fix set MAX_CREATION_LIMIT as zero. (#1762)Bo-Yi Wu2017-05-211-0/+1
| | | | | | * fix: #1757 fix set MAX_CREATION_LIMIT as zero. * fix: missing default value
* Update HighlightJS and fix YAML files highlighting (#1764)Andrey Nering2017-05-201-34/+36
| | | | | | * Update HighlightJS to 9.11.0 * Fix YAML files highlighting
* fix admin lost permission caused by #947Lunny Xiao2017-05-191-1/+6
|
* Add units to team (#947)Lunny Xiao2017-05-182-0/+34
| | | | | | | | | | | | | | | | | | * 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
* Correct grammar in APIEmpty documentation (#1748)Jonas Östanbäck2017-05-181-1/+1
| | | | | | * Correct grammar in APIEmpty doc * Generate swagger.v1.json
* gofmt (#1710)Ethan Koenig2017-05-122-9/+8
|
* Fix rendering of issue checkboxes (#1709)Ethan Koenig2017-05-121-2/+2
|
* LDAP user synchronization (#1478)Lauris BH2017-05-104-28/+126
|
* markup: microoptimise for many short filenames in directory (#1534)mappu2017-05-092-2/+6
| | | | | | | | * 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()
* Add configuration option for default permission to create Organizations (#1686)Lauris BH2017-05-082-0/+3
|
* Fix commit sha1 URL rendering in markdown (#1677)Lauris BH2017-05-052-5/+6
| | | | | | | | * 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
* Drop db operations from hook commands (#1514)Lunny Xiao2017-05-043-0/+90
| | | | | | | | | | * 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
* Generate swagger json (#1402)Antoine GIRARD2017-05-021-3/+31
| | | | | | | - 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
* fix multiple readme file rendering and fix #1657 (#1658)Lunny Xiao2017-05-021-0/+9
| | | | | | * fix multiple readme file rendering and fix #1657 * remove unnecessary loop
* Do not allow commiting to protected branch from online editor (#1502)Lauris BH2017-05-021-0/+10
| | | | | | * 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
* make openid support default false for compitable with v1.1 (#1650)Lunny Xiao2017-05-021-2/+2
|
* Additional OAuth2 providers (#1010)Willem van Dreumel2017-05-012-36/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Rework SSH key management UI to add GPG (#1293)Antoine GIRARD2017-04-261-3/+4
| | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix markdown rendering (#1530)Morlinest2017-04-241-9/+10
|
* Add markup package to prepare for org markup format (#1493)Lunny Xiao2017-04-214-37/+141
|
* fix go get sub package and add domain on installation to let go get work ↵Lunny Xiao2017-04-211-1/+1
| | | | | | | | | | defaultly (#1518) * fix go get sub package and add domain on installation to let go get work defaultly * fix import sequence * fix .git problem
* fix #1501 ssh hangs caused by #1461 (#1513)Lunny Xiao2017-04-191-10/+2
|
* Add internal routes for ssh hook comands (#1471)Lunny Xiao2017-04-193-9/+105
| | | | | | | | | | | | | | | | * 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
* Better URL validation (#1507)Lauris BH2017-04-199-9/+429
| | | | | | | | | | | | | | | | | | | | * 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