summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update the provided gitea.service to mention socket activation (#8531)zeripath2019-10-161-2/+33
| | | | | | | | * Update the provided gitea.service since we have graceful restarting again * Update contrib/systemd/gitea.service Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add missed close in ServeBlobLFS (#8527)zeripath2019-10-161-0/+5
|
* Fix password complexity regex for special characters (on master) (#8525)guillep2k2019-10-169-72/+140
| | | | | | | | | | | | | | | | | | | | * Fix extra space * Fix regular expression * Fix error template name * Simplify check code, fix default values, add test * Fix router tests * Fix fmt * Fix setting and lint * Move cleaning up code to test, improve comments * Tidy up variable declaration
* upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 (#8501)Colin Arnott2019-10-1523-121/+394
| | | | | editorconfig-core-go made breaking api changes and has recently released v2.1.1. This change consumes the new api and fixes up any breaking references.
* upgrade gopkg.in/ini.v1 (#8500)Colin Arnott2019-10-1512-99/+195
| | | | ini released v1.48.0 and deprecated the ini.AllCapsUnderscore symbol, as such, during the upgrade we migrated to using ini.SnackCase.
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-151-0/+6
|
* Restore Graceful Restarting & Socket Activation (#7274)zeripath2019-10-1545-2006/+1199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent deadlock in indexer initialisation during graceful restart * Move from gracehttp to our own service to add graceful ssh * Add timeout for start of indexers and make hammer time configurable * Fix issue with re-initialization in indexer during tests * move the code to detect use of closed to graceful * Handle logs gracefully - add a pid suffix just before restart * Move to using a cond and a holder for indexers * use time.Since * Add some comments and attribution * update modules.txt * Use zero to disable timeout * Move RestartProcess to its own file * Add cleanup routine
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-1524-24/+7
|
* Enable Uploading/Removing Attachments When Editing an Issue/Comment (#8426)blueworrybear2019-10-1510-39/+316
|
* [UI] Pull Request Download diff Button (#8470)65432019-10-154-3/+16
| | | | | | | | | | | | | | | | | | * Add Diff Download to Compare List * Add&Change Text for Diff Options * move button to seperate template * add drop down menue with options * Update: Compare update Gogs, BitBucket, RhodeCode and remove gitea issue link Co-Authored-By: Lauris BH <lauris@nix.lv> * remove last things from TESTing
* Update CodeMirror to version 5.49.0 (#8381)oscar.lofwenhamn2019-10-15352-2422/+14596
| | | | | | * Update CodeMirror to version 5.49.0 * Update CodeMirror versions in librejs and VERSIONS
* Update app.ini.sample (#8498)Benson Muite2019-10-151-3/+4
| | | | | | | | | | | | | | | | | | * Update app.ini.sample Give further information on hyperlink rendering in Markdown * Update app.ini.sample Follow feedback from @guillep2k for CUSTOM_URL in markdown to indicate http and https are always rendered as links. * Update custom/conf/app.ini.sample Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update custom/conf/app.ini.sample Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* Move clearlabels from models to issue service (#8326)Lunny Xiao2019-10-156-36/+94
| | | | | | | | | | * move clearlabels from models to issue service * improve code * Apply suggestions from code review Co-Authored-By: zeripath <art27@cantab.net>
* Move AddTestPullRequestTask to pull service package from models (#8324)Lunny Xiao2019-10-155-90/+92
| | | | | | * move AddTestPullRequestTask to pull service package from models * fix fmt
* Update config-cheat-sheet.en-us.md (#8497)Benson Muite2019-10-151-0/+3
| | | | | | | | | | | | | | * Update config-cheat-sheet.en-us.md Add more information on configuring URI hyperlink rendering for Markdown. * Update config-cheat-sheet.en-us.md Update description as suggested by @guillep2k * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Support inline rendering of CUSTOM_URL_SCHEMES (#8496)guillep2k2019-10-154-11/+66
| | | | | | | | | | * Support inline rendering of CUSTOM_URL_SCHEMES * Fix lint * Add tests * Fix lint
* Recalculate repository access only for specific user (#8481)David Svantesson2019-10-153-8/+64
| | | | | | | | | | * Recalculate repository access only for specific user Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Handle user repositories as well, and only add access if minimum mode * Need to get repo owner to check if organization
* [Branch View] Add Included TAG (#8449)65432019-10-143-1/+11
| | | | | | | | * included message * add property IsIncluded * Add Orange Lable
* Make static resouces web browser cache time customized on app.ini (#8442)Lunny Xiao2019-10-145-4/+10
| | | | | | | | | | | | | | * make static resouces web browser cache time customized on app.ini * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: zeripath <art27@cantab.net> * Update custom/conf/app.ini.sample Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * fix docs
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-141-0/+7
|
* Add pagination to commit graph page (#8360)jaqra2019-10-144-4/+8
| | | Fixes #8308
* Starting v1.11.0 developmentv1.11.0-devLauris BH2019-10-150-0/+0
|
* Changelog for 1.10.0-RC1 (#8510)v1.10.0-rc165432019-10-141-7/+266
| | | | | | | | * Changelog for 1.10.0 * clean up | remove TESTING and DOCS sction | short BUILD section Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com> Co-Authored-By: zeripath <art27@cantab.net>
* Fix errors in create org UI regarding team access permission. (#8506)David Svantesson2019-10-143-8/+10
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-141-4/+23
|
* Add nofollow to sign in links (#8509)guillep2k2019-10-143-4/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-143-1/+5
|
* Password Complexity Checks (#6230)Maxim Tkachenko2019-10-1411-37/+207
| | | | | | | | | Add password complexity checks. The default settings require a lowercase, uppercase, number and a special character within passwords. Co-Authored-By: T-M-A <maxim.tkachenko@gmail.com> Co-Authored-By: Lanre Adelowo <adelowomailbox@gmail.com> Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-Authored-By: Lauris BH <lauris@nix.lv>
* fix bug on FindExternalUsersByProvider (#8504)Lunny Xiao2019-10-141-1/+1
|
* Update migrated repositories' issues/comments/prs poster id if user has a ↵Lunny Xiao2019-10-1421-156/+737
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | github external user saved (#7751) * update migrated issues/comments when login as github * add get userid when migrating or login with github oauth2 * fix lint * add migrations for repository service type * fix build * remove unnecessary dependencies on migrations * add cron task to update migrations poster ids and fix posterid when migrating * fix lint * fix lint * improve code * fix lint * improve code * replace releases publish id to actual author id * fix import * fix bug * fix lint * fix rawdata definition * fix some bugs * fix error message
* vendor: update mvdan.cc/xurls/v2 to v2.1.0 (#8495)Antoine GIRARD2019-10-149-46/+51
|
* Rewrite reference processing code in preparation for opening/closing from ↵guillep2k2019-10-1316-431/+1116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | comment references (#8261) * Add a markdown stripper for mentions and xrefs * Improve comments * Small code simplification * Move reference code to modules/references * Fix typo * Make MarkdownStripper return [][]byte * Implement preliminary keywords parsing * Add FIXME comment * Fix comment * make fmt * Fix permissions check * Fix text assumptions * Fix imports * Fix lint, fmt * Fix unused import * Add missing export comment * Bypass revive on implemented interface * Move mdstripper into its own package * Support alphanumeric patterns * Refactor FindAllMentions * Move mentions test to references * Parse mentions from reference package * Refactor code to implement renderizable references * Fix typo * Move patterns and tests to the references package * Fix nil reference * Preliminary rendering attempt of closing keywords * Normalize names, comments, general tidy-up * Add CSS style for action keywords * Fix permission for admin and owner * Fix golangci-lint * Fix golangci-lint
* Update seek-help.zh-cn.md (#8488)Benson Muite2019-10-131-1/+1
| | | Update link to Mandarin help forum
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-131-0/+1
|
* Update seek-help.en-us.md (#8487)Benson Muite2019-10-131-1/+1
| | | Update link to Mandarin help
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-132-0/+14
|
* IsBranchExist: return false if provided name is empty (#8485)zeripath2019-10-131-2/+8
| | | | | | * IsBranchExist: return false if provided name is empty * Ensure that the reference returned is actually of a valid type
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-131-0/+2
|
* Fixes #8369: Create .ssh dir as necessary (#8486)zeripath2019-10-131-0/+24
| | | | | | | | | | * Ensure .ssh dir exists before rewriting public keys * Ensure .ssh dir exists before appending to authorized_keys * Log the error because it would be useful to know where it is trying to MkdirAll * Only try to create RootPath if it's not empty
* Move migrating repository from frontend to backend (#6200)Lunny Xiao2019-10-1337-210/+1180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move migrating to backend * add loading image when migrating and fix tests * fix format * fix lint * add redis task queue support and improve docs * add redis vendor * fix vet * add database migrations and fix app.ini sample * add comments for task section on app.ini.sample * Update models/migrations/v84.go Co-Authored-By: lunny <xiaolunwen@gmail.com> * Update models/repo.go Co-Authored-By: lunny <xiaolunwen@gmail.com> * move migrating to backend * add loading image when migrating and fix tests * fix fmt * add redis task queue support and improve docs * fix fixtures * fix fixtures * fix duplicate function on index.js * fix tests * rename repository statuses * check if repository is being create when SSH request * fix lint * fix template * some improvements * fix template * unified migrate options * fix lint * fix loading page * refactor * When gitea restart, don't restart the running tasks because we may have servel gitea instances, that may break the migration * fix js * Update models/repo.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * fix tests * rename ErrTaskIsNotExist to ErrTaskDoesNotExist * delete release after add one on tests to make it run happy * fix tests * fix tests * improve codes * fix lint * fix lint * fix migrations
* Fix #8453 by making openssh listen on SSH_LISTEN_PORT not SSH_PORT (#8477)zeripath2019-10-122-2/+3
|
* Add check for empty set when dropping indexes during migration (#8471)guillep2k2019-10-121-3/+5
| | | * Add check for empty set when dropping indexes during migration
* Restore functionality for early gits (#7775)zeripath2019-10-1212-66/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | * Change tests to make it possible to run TestGit with 1.7.2 * Make merge run on 1.7.2 * Fix tracking and staging branch name problem * Ensure that git 1.7.2 works on tests * ensure that there is no chance for conflicts * Fix-up missing merge issues * Final rm * Ensure LFS filters run on the tests * Do not sign commits from temp repo * Restore tracking fetch change * Apply suggestions from code review * Update modules/repofiles/temp_repo.go
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-111-0/+33
|
* Latvian translation for home page (#8468)Lauris BH2019-10-111-0/+40
|
* Add home template italian translation (#8352)spaeps2019-10-111-0/+40
| | | It was just missing
* Move change issue title from models to issue service package (#8456)Lunny Xiao2019-10-116-61/+71
| | | | | | | | * move change issue title from models to issue service package * make the change less * fix typo
* Ensure that LFS files are relative to the LFS content path (#8455)zeripath2019-10-101-2/+1
|
* Ensure Request Body Readers are closed in LFS server (#8454)zeripath2019-10-102-5/+15
|
* Ignore mentions for users with no access (#8395)guillep2k2019-10-105-40/+175
| | | | | | | | | | | | | | | | | | | | | | * Draft for ResolveMentionsByVisibility() * Correct typo * Resolve teams instead of orgs for mentions * Create test for ResolveMentionsByVisibility * Fix check for individual users and doer * Test and fix team mentions * Run all mentions through visibility filter * Fix error check * Simplify code, fix doer included in teams * Simplify team id list build