summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* trim whitespace of MilestoneName at creation/rename (#10017)65432020-01-272-2/+7
|
* On merge of already closed PR redirect back to the pulls page (#10010)zeripath2020-01-271-4/+18
| | | | | | | | | * On merge of already closed PR redirect back to the pulls page * More redirects * As per @6543 Co-Authored-By: 6543 <6543@obermui.de>
* add apple-touch-icon (#10006)silverwind2020-01-271-1/+2
| | | | | | | fixes: https://github.com/go-gitea/gitea/issues/10003 Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Generate Bindata iff TAGS="bindata" and not up-to-date (#10004)zeripath2020-01-2711-76/+113
| | | | | | | | | | | | | | | | | | | | | | * Only generate bindata if necessary * Only generate bindata if they are not up-to-date * generate a hash of the fileinfo and use that to keep up-to-date * Newer test is redundant * handle missing bindata and clean * Only update hash after successful write * switch to sha1 hash * Apply suggestions from code review Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Sign: Handle ErrTwoFactorNotEnrolled correctly (#10008)zeripath2020-01-262-4/+4
|
* Enforce tests do not change files in source tree (#9625)zeripath2020-01-262-1/+13
|
* enable fomantic api module (#9994)silverwind2020-01-261-0/+1
| | | Fixes: #9992
* add explicit dimensions to navbar avatar (#9986)silverwind2020-01-262-4/+4
| | | | | | | | | | | * add explicit dimensions to navbar avatar this prevents a temporary layout change when navigating between pages with cache disabled. * also add dimensions on frontpage Co-authored-by: Lauris BH <lauris@nix.lv>
* avoid useless fomantic rebuilds (#9999)silverwind2020-01-261-0/+3
| | | | | | the `fomantic` target for some reason does sometimes not update the timestamp on the directory, leading to useless rebuild. Manually update the timestamp at the end of the build to avoid this and also added the same to js/css targets.
* fix commit view JS features, reimplement folding (#9968)silverwind2020-01-265-13/+36
| | | | | | | | | | | | | | | * fix commit view JS features, reimplement folding File content folding was not working so I reimplemented it in a saner way. Then I noticed the issue was actually because of missing JS libraries (seen on the console of every commit with error 'SimpleMDE is not defined'). Fixed the libraries. I think the reimplementation is worth to keep. * add .closest polyfill Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix wrong paging on org members (#9990)Lunny Xiao2020-01-262-2/+2
|
* Change font to Roboto to support more charsets (#9803)Lauris BH2020-01-2533-1848/+50
|
* fix browser warnings related to crossorigin preload (#9984)silverwind2020-01-251-3/+3
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-251-1/+1
|
* remove loadCSS and preload woff2 icon fonts (#9976)silverwind2020-01-257-50/+4
| | | | | | | | | | loadCSS was used as a polyfill for rel=preload but it seems we only used it on a single CSS file which did not help much. Changed the icon CSS to a blocking load and preload the woff2 variants which does work in modern browsers (Firefox currently needs the network.preload about:config setting but should gain proper support soon). Co-authored-by: zeripath <art27@cantab.net>
* combine make calls on drone (#9979)silverwind2020-01-251-21/+8
| | | | | | | | | | * combine make calls on drone combine most make calls on drone into one command. this should give a speedup of about 5-15 seconds per make invocation because make only needs to resolve file globs once. * combine timeout calls as well
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-2525-1758/+1760
|
* Fix regexp ranges (#9977)guillep2k2020-01-251-2/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-259-0/+20
|
* chore: update default version (#9916)Antoine GIRARD2020-01-251-1/+1
| | | | | | | | | | | | | | | * chore: update default version * use develop Co-Authored-By: 6543 <6543@obermui.de> * Update main.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* make node_modules a order-only prerequisite (#9923)silverwind2020-01-251-4/+4
| | | | | | | | | | | | | | | * make node_modules a order-only prerequisite Package installations and our fomantic step results in changes inside node_modules which lead to make triggering that target unnecessarily. Moved all node_modules prerequisites to order-only which will make skip the timestamp check on in and eliminate useless npm calls. Changes in package-lock.json will still result in reinstallation so node_modules should stay consistent. * revert change to clean-all
* Sanitize credentials in mirror form (#9975)Lunny Xiao2020-01-254-1/+37
|
* add css extraction and minification to webpack (#9944)silverwind2020-01-256-54/+687
| | | | | | | | | | | | | | This changes the CSS output of webpack to output to the public/css directory instead of inling CSS in JS. This enables CSS minification and autoprefixer based on browserslist which would otherwise not be possible. The result of this change is two new output files currently: - public/css/swagger.css - public/css/gitgraph.css Co-authored-by: techknowlogick <matti@mdranta.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-2525-1765/+1765
|
* Fix crowdin update script (#9969)guillep2k2020-01-251-2/+7
| | | | | | | | * Fix crowdin update script * Refine the script to be specific about what it should change Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-251-1/+1
|
* Fix pull view when head repository or head branch missed and close related ↵Lunny Xiao2020-01-256-19/+173
| | | | | | | | | | | | | | | | | | pull requests when delete head repository or head branch (#9927) * fix pull view when head repository or head branch missed and close related pull requests when delete branch * fix pull view broken when head repository deleted * close pull requests when head repositories deleted * Add tests for broken pull request head repository or branch * fix typo * ignore special error when close pull request Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix file rename/copy not supported by indexer (#9965)guillep2k2020-01-241-2/+27
| | | | Co-authored-by: zeripath <art27@cantab.net>
* Switch to use -f instead of -F for sendmail (#9961)zeripath2020-01-241-1/+1
| | | Fix #9385
* Fix image (#9962)John Olheiser2020-01-241-2/+2
| | | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* API add/generalize pagination (#9452)SpaWn2KiLl2020-01-24113-563/+1884
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * paginate results * fixed deadlock * prevented breaking change * updated swagger * go fmt * fixed find topic * go mod tidy * go mod vendor with go1.13.5 * fixed repo find topics * fixed unit test * added Limit method to Engine struct; use engine variable when provided; fixed gitignore * use ItemsPerPage for default pagesize; fix GetWatchers, getOrgUsersByOrgID and GetStargazers; fix GetAllCommits headers; reverted some changed behaviors * set Page value on Home route * improved memory allocations * fixed response headers * removed logfiles * fixed import order * import order * improved swagger * added function to get models.ListOptions from context * removed pagesize diff on unit test * fixed imports * removed unnecessary struct field * fixed go fmt * scoped PR * code improvements * code improvements * go mod tidy * fixed import order * fixed commit statuses session * fixed files headers * fixed headers; added pagination for notifications * go mod tidy * go fmt * removed Private from user search options; added setting.UI.IssuePagingNum as default valeu on repo's issues list * Apply suggestions from code review Co-Authored-By: 6543 <6543@obermui.de> Co-Authored-By: zeripath <art27@cantab.net> * fixed build error * CI.restart() * fixed merge conflicts resolve * fixed conflicts resolve * improved FindTrackedTimesOptions.ToOptions() method * added backwards compatibility on ListReleases request; fixed issue tracked time ToSession * fixed build error; fixed swagger template * fixed swagger template * fixed ListReleases backwards compatibility * added page to user search route Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-241-0/+30
|
* Fix repo indexer not updating upon push (#9957)guillep2k2020-01-241-1/+2
| | | | | | | | * Fix check for push on default branch * restart CI Co-authored-by: zeripath <art27@cantab.net>
* Update migration instructions (#9955)John Olheiser2020-01-241-1/+3
| | | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix activity count in TestRepoActivity (#9959)guillep2k2020-01-241-2/+2
| | | | | | * Fix activity count * Fix comment
* Migrate reviews when migrating repository from github (#9463)Lunny Xiao2020-01-2318-32/+567
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix typo * Migrate reviews when migrating repository from github * fix lint * Added test and migration when external user login * fix test * fix commented state * Some improvements * fix bug when get pull request and ref original author on code comments * Fix migrated line; Added comment for review * Don't load all pull requests attributes * Fix typo * wrong change copy head * fix tests * fix reactions * Fix test * fix fmt * fix review comment reactions
* move fomantic target, update 'make help' (#9945)silverwind2020-01-231-5/+6
| | | | | | | I'd like to run webpack without fomantic in the prereqs so move it to the `generate` target. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Make archive prefixing configurable with a global setting (#9943)zeripath2020-01-225-10/+45
| | | | | | | | * Allow archive prefix setting * Update copyright * Update copyright
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-221-2/+49
|
* Frontport: Fix regression with tag test running (#9941) (#9942)techknowlogick2020-01-221-0/+6
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-222-1/+24
|
* Changelog 1.11.0-rc2 (#9853) (#9940)John Olheiser2020-01-221-2/+58
| | | | | | | | Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Don't convert ellipsis in markdown (#9905)John Olheiser2020-01-221-2/+3
| | | | | | | | | | | | | | * Don't convert ellipsis Signed-off-by: jolheiser <john.olheiser@gmail.com> * Formatting Co-Authored-By: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net>
* Remove statements not supported by SQLExpress from migration te… (#9929)guillep2k2020-01-223-0/+0
| | | | | Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Improve stale message (#9920)Antoine GIRARD2020-01-221-4/+5
| | | | | | | | * Improve stale nessage * Update .github/stale.yml Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Check if diff actually contains sections when rendering (#9926)Lauris BH2020-01-221-1/+1
|
* misc webpack tweaks (#9924)silverwind2020-01-222-23/+30
| | | | | | | | | | - reduce verbosity during build - use array form `use` to allow easier extension - disable uninteresting source maps - disable symlink resolution for a speedup Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <matti@mdranta.net>
* Fix wrong hint when status checking is running on pull request view (#9886)Lunny Xiao2020-01-229-84/+159
| | | | | | | | | | | | | | | | * Fix wrong hint when status checking is running on pull request view * fix lint * fix test * fix test * fix wrong tmpl * fix import * rename function name
* add remote ip to the invalid credentials error message (#9918)bobemoe2020-01-211-3/+3
|
* Fix RocketChat (#9908)John Olheiser2020-01-211-10/+5
| | | | | | | | | | | | | | | | * Fix RocketChat?? Signed-off-by: jolheiser <john.olheiser@gmail.com> * Don't send attachment for repo create/delete Signed-off-by: jolheiser <john.olheiser@gmail.com> * Make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>