summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Hide given credentials for migrated repos. (#9097)Jordan2019-11-202-1/+2
| | | | | | CloneAddr was being saved as OriginalURL. Now passing OriginalURL through from the form and saving it in it's place
* Refactor Issues Subscription (#8738)65432019-11-206-52/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * FIX: getIssueWatchers() get only aktive suscriber * save query to work later with it or not ... * fix test + add new case * corect tests + GetIssueWatch * API issue_subscripton: Put/Delete require tocken * remove redundant code * swagger specify return value * remove unused binding * remove note because I'll implement this in a different way and in another PR * ID should be unique! * use xorm session * Revert "use xorm session" This reverts commit c1de540147199f2f1a8dd0d008f54af3603e2229. * better test code * more acurate comments * use assert.False/True instead of Equal * use more assert methodes
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-201-0/+10
|
* Team permission to create repository in organization (#8312)David Svantesson2019-11-2027-63/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add team permission setting to allow creating repo in organization. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test case for creating repo when have team creation access. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * build error: should omit comparison to bool constant Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add comment on exported functions * Fix fixture consistency, fix existing unit tests * Fix boolean comparison in xorm query. * addCollaborator and changeCollaborationAccessMode separate steps More clear to use different if-cases. * Create and commit xorm session * fix * Add information of create repo permission in team sidebar * Add migration step * Clarify that repository creator will be administrator. * Fix some things after merge * Fix language text that use html * migrations file * Create repository permission -> Create repositories * fix merge * fix review comments
* Explore page: Add topic param to pagination (#9077) (#9078)David Svantesson2019-11-201-0/+2
|
* Fix doc example for asciidoc (#9072)guillep2k2019-11-201-2/+2
| | | | | | | | | | * Fix doc example for asciidoc * Update config-cheat-sheet.en-us.md * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-201-0/+16
|
* update golang.org/x/crypto vendor to use acme v2 (#9056)techknowlogick2019-11-2052-2942/+3429
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-208-8/+0
|
* Fix password checks on admin create/edit user (#9076)guillep2k2019-11-201-3/+14
| | | | | | * Fix password checks on admin create/edit user * Remove incorrect trimspace
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-193-3/+2
|
* Add password requirement info on error (#9074)guillep2k2019-11-199-24/+72
| | | | | | | | | | | | | | * Add password requirement info on error * Move BuildComplexityError to the password pkg * Unexport complexity type * Fix extra line * Update modules/password/password.go Co-Authored-By: Lauris BH <lauris@nix.lv>
* Context menus for comments (#9043)John Olheiser2019-11-1910-63/+110
| | | | | * Add quote replies Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-191-0/+1
|
* fix placeholders in the error message (#9060)Iwasa Kazmi2019-11-191-1/+1
|
* [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
|