summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-191-0/+5
|
* Avoid re-issuing redundant cross-references. (#8734)guillep2k2019-11-194-31/+56
| | | | | | | | | | * Avoid re-issuing redundant cross-references. * Remove unused func; fix lint * Simplify code as suggested by @laftriks * Update test
* fix: add search to reserved usernames (#9063)Antoine GIRARD2019-11-182-0/+2
| | | | | | | | * fix: add search to reserved usernames * Update integrations/user_test.go Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-1810-38/+9
|
* Allow authors to use act keywords in PR content (#9059)guillep2k2019-11-181-1/+6
|
* Close/reopen issues by keywords in titles and comments (#8866)guillep2k2019-11-187-46/+300
| | | | | | | | | | | | | | | | | | | | | | | | * Add close/reopen from comment functionality * Fix comment * Rewrite closing/reopening template * Check xref permissions, move action to services/pull * Fix RefIsPull field * Add xref tests * Fix xref unique filter * Only highlight keywords for actionable xrefs * Fix xref neuter filter * Fix check return status * Restart CI
* Rewrite delivery of issue and comment mails (#9009)guillep2k2019-11-1810-144/+250
| | | | | | | | | | | | | | | | * Mail issue subscribers, rework the function * Simplify a little more * Fix unused variable * Refactor mail delivery to avoid heavy load on server * Avoid splitting into too many goroutines * Fix comments and optimize GetMaileableUsersByIDs() * Fix return on errors
* Move modules/gzip to gitea.com/macaron/gzip (#9058)Lunny Xiao2019-11-1854-5154/+2963
| | | | | | * Move modules/gzip to gitea.com/macaron/gzip * Fix vendor
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-182-2/+1
|
* Fix double scroll in branch dropdown (#9048)Vedran2019-11-182-2/+1
| | | | | | | | | | * Fix double scroll in branch dropdown * Revert of 425ae38aa9ea3e9a25dee235aa9176762fe4bc5b * Changes in .less, generated new .css * Revert unnecessary commented line
* enable lazy-loading of gitgraph.js (#9036)silverwind2019-11-1723-655/+1313
| | | | | | | | | | | | | | | | | - moved gitgraph.js to web_src and made it importable and es6-compatible - created new webpack chunk for gitgraph - enabled CSS loader in webpack - enabled async/await syntax via regenerator-runtime - added script to ensure webpack chunks are loaded correctly - disable terser's comment extraction to prevent .LICENCE files gitgraph.js has many issues: 1. it is incompatible with ES6 because of strict-mode violations 1. it does not export anything 1. it's css has weird styles like for `body` 1. it is not available on npm I fixed points 1-3 in our version so it's now loadable in webpack. We should eventually consider alternatives.
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-171-0/+4
|
* wiki - add 'write' 'preview' buttons to wiki edit like in issues (#7241)Cherrg2019-11-178-2/+72
| | | | | | | | | | | | | | | | | | | | * Add add 'write' 'preview' buttons to wiki edit like in issues affects #6975 Signed-off-by: Michael Gnehr <michael@gnehr.de> * update dark theme Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix css lint warnings - missing spaces Signed-off-by: Michael Gnehr <michael@gnehr.de> * hide preview button on no fullscreen toolbar Signed-off-by: Michael Gnehr <michael@gnehr.de>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-171-0/+40
|
* Add first issue comment hashtag (#9052)jaqra2019-11-171-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-172-0/+11
|
* Handle setting default branch via API (#9030)David Svantesson2019-11-172-1/+13
|
* Update branch API endpoint to show effective branch protection. (#9031)David Svantesson2019-11-165-9/+77
| | | | | | * Add API endpoint for displaying effective branch protection. * Add status checks.
* integrations: fix dropped errors in ↵Lars Lehtonen2019-11-162-0/+8
| | | | | TestCreateOrUpdateRepoFileForUpdateWithFileMove() (#9040) integrations: fix dropped error in lfsCommitAndPushTest()
* Only return JSON for add/remove all (#9028)John Olheiser2019-11-161-4/+8
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Check compiled files during build (#9042)Gary Kim2019-11-162-7/+1
| | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Button tooltip formatting under Branches (#9034)Vedran2019-11-161-4/+4
| | | | | | * Fixes button tooltip formatting under Branches * Formatting on download button for default branch
* Add retry for migration http/https requests (#9019)Lunny Xiao2019-11-167-1/+195
| | | | | | | | | | * Add retry for migration http/https requests * give the more suitable name for retry configuraion items * fix docs and lint * Only use retryDownloader when setting > 1
* wiki - editor - enable side-by-side button (#7242)Cherrg2019-11-165-17/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wiki - enable side-by-side button in editor and add some delay so side-by-side live preview is updated * every 10th keypress * if keypress < 10 -> apter no input for 1 sec affects #5436 Signed-off-by: Michael Gnehr <michael@gnehr.de> * decrease timeinterval user need to stop before rendering is triggered Signed-off-by: Michael Gnehr <michael@gnehr.de> * removed not needed code with simpleMDE placeholder Signed-off-by: Michael Gnehr <michael@gnehr.de> * run highlight.js on markdown preview Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix white border around side-by-side preview Signed-off-by: Michael Gnehr <michael@gnehr.de>
* Move git graph from models to modules/graph (#9027)Lunny Xiao2019-11-163-3/+4
|
* Update display of reactions to issues and comments (#9038)mrsdizzie2019-11-152-6/+24
| | | | Modify display of reactions to issues to remove spaces and make them feel more apart of the reactions bar rather than separate items within.
* extract some inline functions related with create comment (#8931)Lunny Xiao2019-11-155-88/+65
|
* Fix permission checks for close/reopen from commit (#8875)guillep2k2019-11-152-18/+31
| | | | | * Fix checks for close/reopen from commit * Fix permission order
* Ensure Written is set in GZIP ProxyResponseWriter (#9018)zeripath2019-11-151-10/+43
| | | | | | | | Fix #9001 The GZIP ProxyReponseWriter doesn't currently respond correctly to requests about its Written status - leading to #9001. This PR properly reimplements these methods.
* Add review comments to mail notifications (#8996)guillep2k2019-11-156-35/+73
|
* Fix broken link to branch from issue list (#9003)Vedran2019-11-151-1/+1
| | | | | | | | | | * Fix broken link to branch from issue list * Update templates/repo/issue/list.tmpl Co-Authored-By: mrsdizzie <info@mrsdizzie.com> * apply @mrsdizzie's review
* fix wrong system notice when repository is empty (#9010)Lunny Xiao2019-11-151-0/+5
|
* Move transfer repository and rename repository on a service package and ↵Lunny Xiao2019-11-1516-253/+216
| | | | | | | | | | | | | | | | | | | | | | start action notification (#8573) * move transfer repository and rename repository on a service package and start action notification * remove unused codes * fix lint * fix bugs * fix test * fix test * fix test * fix lint * update go mod and sum
* Githook highlighter (#8932)Konctantin2019-11-152-0/+13
| | | | | | | | | | | | | | | | | | | | | | * Add code highlighter to GitHook edit Signed-off-by: Konctantin <gawrilyako@gmail.com> * Fix indentation Signed-off-by: Konctantin <gawrilyako@gmail.com> * Resolve merge conflict Signed-off-by: gawrilyako@gmail.com <Konctantin> * Resolve merge conflict Signed-off-by: gawrilyako@gmail.com <Konctantin> * Fix pre-build drone event Signed-off-by: Konctantin <gawrilyako@gmail.com>
* services/mirror: fix dropped test errors (#9007)Lars Lehtonen2019-11-151-0/+2
|
* Expand/Collapse Files and Blob Excerpt while Reviewing/Comparing code (#8924)Benno2019-11-1516-36/+460
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update #8659 fold/unfold code diffs * add fold button style * update #8659 implement expand up/down codes (blob excerpt) * fix golint errors * fix expand direction * remove debug message * update css style for blob exceprt * fix typo in comment * update style sheet with less * update expect diff (add SectionInfo) * update #8942 accept suggested change (fix typo) * close reader and check file type before get tail section * adjust button position and check file type before insert fold button * move index js to web_src * merge index.js with master * generate index.js * update js coding style
* Pack web_src/js/draw.js to public/js/index.js (#8975)Lunny Xiao2019-11-148-27/+20
| | | | | | * pack web_src/js/draw.js to public/js/index.js * fix eslint
* Update dashboard context for PR reviews (#8995)John Olheiser2019-11-155-26/+50
| | | | | | | | | | | | | | | | | | * Update dashboard context for PR reviews Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update options/locale/locale_en-US.ini Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Only append head action if it has content or is approval/rejection Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update options/locale/locale_en-US.ini Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Enforce Gitea environment for pushes (#8982)zeripath2019-11-144-18/+42
| | | | | | | | * Enforce Gitea environment for pushes * Update custom/conf/app.ini.sample Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* modernize js and use babel (#8973)silverwind2019-11-1410-3740/+5226
| | | | | | | | | | | | | | * modernize js and use babel - add babel toolchain to transform modern JS to ES5 - extend eslint config for modern rules - fixes linting issues via `eslint --fix` and manual fixes * run 'make css' to satisfy CI * code style tweaks and set js indendation to 2 in .editorconfig * regenerate js
* New review approvals shouldn't require a message (#8991)John Olheiser2019-11-141-2/+2
| | | | | | | | | | * New approvals don't require content Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix edge-bug Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Shadow password correctly for session config (#8984)zeripath2019-11-141-9/+17
| | | | | | | Fix #8718 This PR shadows passwords in session config correctly by detecting the VirtualProvider, unmarshalling the original config and then shadowing config within that.
* Drop Admin attribute based on LDAP when login (continue #1743) (#8849)65432019-11-141-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update User information in Gitea based on LDAP when login * Update Admin Flag only if exist in settings * Fix affectation * Update models/login_source.go Co-Authored-By: JustKiddingCode <JustKiddingCode@users.noreply.github.com> * Better ident * Apply suggestions from code review Update user information Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com> * Make fmt * add err handling * if user exist but login is Prohibit return return nil, and Prohibit err * keep login speed * User sync is implemented at #1478 - so only make sure that admin acces is drpoed if changed * handle error and still use async task * no async * only update admin if Sync is enabled * update two comments * add lafriks suggestions Co-Authored-By: Lauris BH <lauris@nix.lv> * if adminFilter is set - use it Co-Authored-By: Lauris BH <lauris@nix.lv> * Update models/login_source.go well - I should look more detaild at suggestions :D Co-Authored-By: Lauris BH <lauris@nix.lv> * make it work again * set is_admin value to user * look nicer
* fix bug when pack js (#8992)Lunny Xiao2019-11-144-6/+6
|
* Add ALLOW_ONLY_EXTERNAL_REGISTRATION to config cheat sheet (#8986)zeripath2019-11-141-0/+1
| | | | | ALLOW_ONLY_EXTERNAL_REGISTRATION was missed off the cheat sheet. This PR adds it. Fix #8180
* Changelog for 1.10.0 (#8978) (#8987)John Olheiser2019-11-141-22/+34
| | | | | | | | | | * Changelog for 1.10.0 (#8978) Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update security Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [Feature] Add Gitea Emoji (#8950)65432019-11-147-8/+5
| | | | | | | | | | | | | | * add gitea emoji * alphabetic order * Update emojify.js to 1.1.0 * mv to custom * add gitea emoji * minify
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-141-0/+39
|
* fix(docs): Fixed creating Windows service commands (#8979)Wars2019-11-144-4/+4
| | | escaping " to \"
* docs reference latest stable version (1.10.0)techknowlogick2019-11-141-1/+1
|