summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-171-0/+7
|
* Allow externalID to be UUID (#8551)Wenxuan Zhao2019-10-176-16/+6
| | | Signed-off-by: Wenxuan Zhao <viz@linux.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-172-0/+7
|
* don't ignore error message (#8550)Antoine GIRARD2019-10-171-1/+1
|
* Allow committing / adding empty files using the web ui (#8420) (#8532)Lukas2019-10-164-4/+39
| | | | | | | | | | * Allow committing / adding empty files from the web ui (#8420) Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Add a modal to confirm the commit of an empty file Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
* Restrict modules/graceful to non-windows build and shim the IsChild marker ↵zeripath2019-10-168-0/+25
| | | | (#8537)
* Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631)zeripath2019-10-1640-121/+1627
| | | | | | | | | | | | | | | | | | | This PR fixes #7598 by providing a configurable way of signing commits across the Gitea instance. Per repository configurability and import/generation of trusted secure keys is not provided by this PR - from a security PoV that's probably impossible to do properly. Similarly web-signing, that is asking the user to sign something, is not implemented - this could be done at a later stage however. ## Features - [x] If commit.gpgsign is set in .gitconfig sign commits and files created through repofiles. (merges should already have been signed.) - [x] Verify commits signed with the default gpg as valid - [x] Signer, Committer and Author can all be different - [x] Allow signer to be arbitrarily different - We still require the key to have an activated email on Gitea. A more complete implementation would be to use a keyserver and mark external-or-unactivated with an "unknown" trust level icon. - [x] Add a signing-key.gpg endpoint to get the default gpg pub key if available - Rather than add a fake web-flow user I've added this as an endpoint on /api/v1/signing-key.gpg - [x] Try to match the default key with a user on gitea - this is done at verification time - [x] Make things configurable? - app.ini configuration done - [x] when checking commits are signed need to check if they're actually verifiable too - [x] Add documentation I have decided that adjusting the docker to create a default gpg key is not the correct thing to do and therefore have not implemented this.
* Ensure that GitRepo is set on Empty repositories (#8539)zeripath2019-10-161-2/+8
| | | | | | Both issues/new and settings/hooks/git expect `ctx.Repo.GitRepo` to be set. This PR changes the context code to open the GitRepo. Fixes #8538
* Doc added how to setup email (#8520)8ctopus2019-10-161-0/+33
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-161-0/+7
|
* Move sync mirror actions to mirror service package (#8518)Lunny Xiao2019-10-163-80/+93
| | | | | | | | | | * move sync mirror actions to mirror service * fix go.mod * fix lint * fix lint
* Fix migrate mirror 500 bug (#8526)Lunny Xiao2019-10-161-0/+1
|
* 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
|