summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Fix wrong notification on merge (#9450)guillep2k2019-12-201-1/+1
|
* Apache configuration for Let's Encrypt webroot validation (#9438)NZTim2019-12-201-0/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-201-0/+14
|
* Swagger info corrections (#9441)65432019-12-2052-648/+1262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use numbers and not http.Status___ enum * fix test * add many missing swagger responses * code format * Deletion Sould return 204 ... * error handling improvements * if special error type ... then add it to swagger too * one smal nit * invalidTopicsError is []string * valid swagger specification 2.0 - if you add responses swagger can tell you if you do it right :+1: * use ctx.InternalServerError * Revert "use numbers and not http.Status___ enum" This reverts commit b1ff386e2418ed6a7f183e756b13277d701278ef. * use http.Status* enum everywhere
* Response for context on retry database connection (#9444)Lunny Xiao2019-12-201-0/+6
|
* chore: update license list (#9436)Antoine GIRARD2019-12-2041-0/+4325
| | | | | | go run scripts/generate-licenses.go Co-authored-by: zeripath <art27@cantab.net>
* chore: update gitignore list (#9437)Antoine GIRARD2019-12-1985-288/+1572
| | | Updated the gitignore list with the command : `go run scripts/generate-gitignores.go`
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-191-0/+8
|
* Fix NewCommitStatus (#9434)John Olheiser2019-12-192-4/+4
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add migration to sanitize repository original_url (#9423)mrsdizzie2019-12-192-0/+54
| | | | | | | | | | | | | | | | | | | | * Add migration to sanitize repository original_url During a large code move in #6200 the OriginalURL field was accidentially changed to be populated with the CloneAddr field which will contain the username and/or password provided during a migration. This behavior was fixed in previous PR #9097 and this migration will remove any authentication details that were stored in the database between those two. * use net/url to rebuild URL instead of strings.Replace * Update models/migrations/migrations.go * changes per lunny * make fmt
* Fix background reactions in the arc-green theme (#9421)Alexey 〒erentyev2019-12-183-6/+8
| | | | | | | | | | * Fixed arc-green theme reactions background Signed-off-by: Alexey Terentyev <axifnx@gmail.com> * Added MD5 AppVer Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* chore: update github.com/couchbase/gomemcached and ↵Antoine GIRARD2019-12-1812-207/+1562
| | | | github.com/couchbase/go-couchbase (#9419)
* Add .ignore file for search tools (#9417)silverwind2019-12-191-0/+5
| | | | | | | | | | | | | | | | | * Add .ignore file for search tools Tools like `rg` [1] and `ag` [2] support a `.ignore` file which defines files that are ignored during a recursive search. This adds the file which makes recursive file searches in the code base ignore files that are generally not desirable to search in like bindata, vendored files and compiled frontend assets. [1] https://github.com/BurntSushi/ripgrep/ [2] https://github.com/ggreer/the_silver_searcher * add leading slash * remove files already in .gitignore
* Use OriginalURL insead of CloneAddr in migration logging (#9418)mrsdizzie2019-12-181-2/+2
| | | | | CloneAddr will contain username and password credentials and they will get stored in system notices about failed migrations (and logs if trace is set). Replace with OriginalURL that doesn't have those.
* Change PR commits and diffs to use base repo rather than forked (#3648)Keith Rutkowski2019-12-181-70/+35
| | | | | | Change the repository referenced when displaying commits or diffs in pull request to the base repository. The forked repository may not be readable by users who can read the base repository. See discussion for (#3356).
* Address minor portability issues (#9414)dankm2019-12-181-1/+4
| | | | | | | | | * Add os specific sed for FreeBSD. * Replace hardcoded "make" with $(MAKE) Some systems don't use GNU make by default, and use something like gnumake or gmake. Respect that when determining the make version.
* Add warning to docs in order to avoid template mismatches (#9411)pseudocoder2019-12-181-1/+1
| | | | | | | | | | * DOCS: add mention of swagger api reference It's(swagger api link) mentioned vaguely in the FAQ but IMHO missing from API usage page. * Add warning to avoid template mismatches Related to https://github.com/go-gitea/gitea/issues/9320
* [Vendor Update] go-swagger v0.20.1 -> v0.21.0 (#9410)65432019-12-1815-65/+77
| | | | | | * Update go-swagger v0.20.1 -> v0.21.0 * go mod tidy
* Hide not allowed Reactions (#9387)65432019-12-1810-472/+150
| | | | | | | | | | | | * Hide not allowed Reactions * filter in query :D * use ` Co-Authored-By: Alexey 〒erentyev <axifnx@gmail.com> * update xorm v0.8.0 -> v0.8.1
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-181-0/+14
|
* Remove unsued struct (#9405)Lauris BH2019-12-181-6/+0
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-181-0/+147
|
* Fix Slack webhook payload title generation to work with Mattermost (#9378)Cornel2019-12-181-73/+86
| | | | | | * Fix Slack webhook payload title generation to work with Mattermost by using a markdown link instead of html * Fix Slack webhook attachment title and title link handling
* [skip ci] Updated translations via CrowdinGiteaBot2019-12-182-0/+10
|
* Fix some SimpleMDE (#9400)John Olheiser2019-12-172-0/+3
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* switch to fomantic-ui (#9374)techknowlogick2019-12-1768-3541/+105598
|
* Add description to labels on create issue (#9392)zeripath2019-12-171-1/+2
|
* Fixed errors logging in dump.go (#9218)Rychu2019-12-171-26/+32
| | | | | | | | | | | | * Fixed errors logging in dump.go * Replaced overlooked log.Fatal() with fatal() * Run make fmt on dump.go * Added missing new line to the fatal log * Run make fmt on dump.go
* 登陆 to 登录 (#9382)ZHOU Cheng2019-12-172-2/+2
|