aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change markdown rendering from blackfriday to goldmark (#9533)zeripath2019-12-3183-6289/+13830
| | | | | | | | | | | | | | | | | | | * Move to goldmark Markdown rendering moved from blackfriday to the goldmark. Multiple subtle changes required to the goldmark extensions to keep current rendering and defaults. Can go further with goldmark linkify and have this work within markdown rendering making the link processor unnecessary. Need to think about how to go about allowing extensions - at present it seems that these would be hard to do without recompilation. * linter fixes Co-authored-by: Lauris BH <lauris@nix.lv>
* Provide Default messages for merges (#9393)zeripath2019-12-307-15/+276
| | | | Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-301-0/+1
|
* In SimpleMDE check if trigger exists before call (#9545)zeripath2019-12-301-1/+3
|
* [BugFix] use default avatar for ghost user (fix 500 error) (#9536)65432019-12-292-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | * remove since it is there for 3years * fix 500 error for ghost avatar * dont insert "-1" in any case to issue.poster_id * fix lint * Test: ghost avatar link * fix test * Revert "remove since it is there for 3years" This reverts commit fd9ad05159c84ba804b126d2a959963d82578b22. * Revert "dont insert "-1" in any case to issue.poster_id" This reverts commit 05469ab6d815a6cc6478a256018b9ed1a12749e0. Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-292-0/+58
|
* remove since it is there for 3years (#9538)65432019-12-291-18/+0
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-281-0/+126
|
* [Fix] Release attachment should use DownloadURL() not Name (#9529)65432019-12-283-8/+8
| | | | | | | * Handle if two or more attachments have the same name * previously only the first could be downloaded - now each is downloadable * dos also take care of #6506 (fix was: #6512) * use func DownloadURL() at issue attatchments too
* go-mssqldb UPDATE (#9522)65432019-12-287-14/+36
|
* Fix repository issues pagination bug when there are more than one label ↵Lunny Xiao2019-12-284-4/+13
| | | | filter (#9512)
* Delete conflicting file (#9526)techknowlogick2019-12-281-19/+0
| | | | | | Case collision with other jboss file Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Refactor webhooks to reduce code duplication (#9422)Cornel2019-12-2810-698/+534
| | | | | | | | | | | | | | | | | | | | | | | | * Start webhook refactoring to reduce code duplication * More webhook refactoring * Unify webhook release messages * Fix webhook release link * Remove sql import * More webhook refactoring * More webhook refactoring * Webhook tests extended * Fixed issue opened webhook Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <matti@mdranta.net>
* Resolve deprecated INI conversion (#9525)techknowlogick2019-12-271-1/+1
| | | Per https://github.com/go-ini/ini/blob/8fe474341f7eedd6804eda75896c8f3e4b5dc36a/deprecated.go#L24
* Stop various tests from adding to the source tree (#9515)zeripath2019-12-286-13/+91
| | | | | | | Instead of just adding test generated files to .gitignore prevent them from being produced in the first place. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add contrib/environment-to-ini (#9519)zeripath2019-12-282-0/+290
| | | | | | | | | | | | | | | | | | | | | | | | * Add contrib/environment-to-ini This contrib command provides a mechanism to allow arbitrary setting of ini values using the environment variable in a more docker standard fashion. Environment variable keys should be structured as: "GITEA__SECTION_NAME__KEY_NAME" Use of the command is explained in the README. Partial fix for #350 Closes #7287 * Update contrib/environment-to-ini/environment-to-ini.go Co-Authored-By: 6543 <6543@obermui.de> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de>
* [Fix] AllowedReaction code (#9518)65432019-12-278-10/+11
| | | | | | | | | * optimize * CI.restart() Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: zeripath <art27@cantab.net>
* Ignore empty avatars in v115.go (#9520)zeripath2019-12-281-1/+4
| | | | | | * Ignore empty avatars * fixup! Ignore empty avatars
* Properly enforce gitea environment for pushes (#9501)zeripath2019-12-276-8/+36
| | | #8982 attempted to enforce the gitea environment for pushes - unfortunately it tested the settings before they were actually read in - and therefore does not do that!
* [API] Extend times API (#9200)65432019-12-2719-192/+914
| | | | | Extensively extend the times API. close #8833; close #8513; close #8559
* Fix deleted branch isn't removed when push the branch again (#9516)Lunny Xiao2019-12-272-0/+12
|
* Fix user avatar name (#8547)Masudur Rahman2019-12-273-1/+119
| | | Migrate avatar names to include user ID and the md5 hash.
* Remove and recreate the hooks to set them executable with the umask (#9502)zeripath2019-12-271-0/+7
| | | Fix #9091
* Remove unnecessary loading of settings in update hook (#9496)zeripath2019-12-271-12/+1
| | | This PR simply makes update an empty command rather than needlessly load the settings for each reference.
* Fix SetExpr failed (#9506)Lunny Xiao2019-12-271-4/+4
|
* Correct a language error in reverse proxy doc (#9455)Erwan Colin2019-12-271-1/+1
| | | | | | | | | | * Correct a language error in reverse proxy doc * Apply suggestions from code review Co-Authored-By: zeripath <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
* alpine 3.11 (#9440)techknowlogick2019-12-262-3/+3
|
* Remove obsolete file private/push_update.go (#9503)David Svantesson2019-12-261-56/+0
|
* Push update after branch is restored (#9416)Mario Lubenka2019-12-261-0/+16
| | | | | | | | | | | | | * Push update after branch is restored Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Apply suggestions from code review Use name from deletedBranch Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Batch hook pre- and post-receive calls (#8602)zeripath2019-12-2610-400/+1023
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * make notifyWatchers work on multiple actions * more efficient multiple notifyWatchers * Make CommitRepoAction take advantage of multiple actions * Batch post and pre-receive results * Set batch to 30 * Auto adjust timeout & add logging * adjust processing message * Add some messages to pre-receive * Make any non-200 status code from pre-receive an error * Add missing hookPrintResults * Remove shortcut for single action * mistaken merge fix * oops * Move master branch to the front * If repo was empty and the master branch is pushed ensure that that is set as the default branch * fixup * fixup * Missed HookOptions in setdefaultbranch * Batch PushUpdateAddTag and PushUpdateDelTag Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [Docs] Clarify HTTPS Termination Proxy on Using Reverse Proxy to Enable ↵Bagas Sanjaya2019-12-261-2/+1
| | | | | | | | | | | | | | HTTPS (#9491) * Clarification note for HTTPS termination proxy method * Textual grammar edit * Mention ROOT_URL * Apply suggestion by mrsdizzie Co-authored-by: techknowlogick <matti@mdranta.net>
* Upgrade lato fonts to v16. (#9498)Lunny Xiao2019-12-2546-20/+72
| | | | | | | | * Upgrade lato fonts to v16 * Upgrade lato fonts to v16 * fix bug
* Add debug option to serv to help debug problems (#9492)zeripath2019-12-253-7/+15
| | | | | | * Add debug option to serv to help debug problems * fixup! Add debug option to serv to help debug problems
* fix datarace on issue indexer queue (#9490)Lunny Xiao2019-12-252-1/+6
|
* Trigger webhook when deleting a branch after merging a PR (#9424)Brad Albright2019-12-251-0/+16
| | | | | | | | | * fixed so when deleting a branch after merging a PR, a webhook is triggered * changed to use pr.HeadRepo instead of ctx.Repo when sending webhook for a deletion of branch after merging pr Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* adding calls to issue.LoadRepo() prior to calling issue.HTMLURL() (#9484)Brad Albright2019-12-251-0/+10
|
* Wrap the code indexer (#9476)zeripath2019-12-243-13/+132
| | | | | | | | | | | | | | | | | | | | * Wrap the code indexer In order to prevent a data race in the code indexer it must be wrapped with a holder otherwise it is possible to Search/Index on an incompletely initialised indexer, and search will fail with a nil pointer until the repository indexer is initialised. Further a completely initialised repository indexer should not be closed until Termination otherwise actions in Hammer/Shutdown phases could block or be lost. Finally, there is a complex dance of shutdown etiquette should the index initialisation fail. This PR restores that. * Always return err if closed whilst waiting Co-authored-by: techknowlogick <matti@mdranta.net>
* Update CONTRIBUTING.md to include building JS (#9454)sunboyy2019-12-241-4/+4
| | | | | | | | | | | | | | | * Update CONTRIBUTING.md to include building JS Signed-off-by: sunboyy <sura_sun@hotmail.com> * Edit minimum Node.js version in CONTRIBUTING.md Signed-off-by: sunboyy <sura_sun@hotmail.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net>
* Clean-up typo that made an app.ini.sample comment not a comment. (#9480)rektide2019-12-231-1/+1
|
* [API] Extend contents with dates (#9464)65432019-12-249-7/+114
| | | | | | | | | | | | | | | * extend CommitTree func * make sure Date NOT nil * spell corection Co-Authored-By: zeripath <art27@cantab.net> * add TEST Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Use Req.URL.RequestURI() to cope with FCGI urls (#9473)zeripath2019-12-248-15/+17
| | | | | * Use Req.URL.RequestURI() to cope with FCGI urls * Add debug logging statement when forbidden in internal API.
* Delete extra Matlab ignore file (#9479)John Olheiser2019-12-231-31/+0
|
* Prefix all user-generated IDs in markup (#9477)John Olheiser2019-12-235-24/+24
| | | | | | | | | | * Prefix all user-generated IDs in markup * Add user-content- to IDs in unit-tests * fixup markdown_test.go * update the hrefs for the wiki test * Add blackfriday extension regex Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update matlab gitignore? (#9478)John Olheiser2019-12-231-0/+3
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-232-1/+3
|
* Refactor code indexer (#9313)Lunny Xiao2019-12-2313-638/+649
| | | | | | | | | | | | | | | | | | | | * Refactor code indexer * fix test * fix test * refactor code indexer * fix import * improve code * fix typo * fix test and make code clean * fix lint
* Set default ssh.minimum_key_sizes (#9466)mrsdizzie2019-12-221-1/+1
| | | | | | | | The minimum key size defaults weren't set as suggested in app.ini.sample so if you enabled MINIMUM_KEY_SIZE_CHECK it would always fail since there would be no matching values to check against. This pr adds the default values that should have been there. Should fix #9465
* Add ActionCommentPull action (#9456)mrsdizzie2019-12-229-9/+18
| | | | | | | | | | | * Add ActionCommentPull action Adds ActionCommentPull action to distinguish between a comment on an issue and on a pull request * Update modules/notification/action/action.go Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* fixed bug in GitTreeBySHA where pulling items from a page other than page 1 ↵Brad Albright2019-12-221-5/+5
| | | | would fail because the wrong var was used to set the entries to return (#9459)
* Issue with Migration rule v111 (#9449)Marge Bouvier2019-12-211-0/+3
| | | | | | | | | | | | * Issue with Migration rule v111 I was facing some issues with migration rule v111 * Update v111.go Fix pgsql test cases Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>