summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add Matrix webhook (#10831)S7evinK2020-03-2814-1/+645
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Matrix webhook Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Add template and related translations for Matrix hook Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Add actual webhook routes and form Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Add missing file Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Update modules/webhook/matrix_test.go * Use stricter regex to replace URLs Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Escape url and text Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Remove unnecessary whitespace * Fix copy and paste mistake Co-Authored-By: Tulir Asokan <tulir@maunium.net> * Fix indention inconsistency * Use Authorization header instead of url parameter * Add raw commit information to webhook Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Tulir Asokan <tulir@maunium.net>
* Handle push rejection in branch and upload (#10854)zeripath2020-03-2812-120/+197
| | | | | | | | | | | | | * Handle push rejections and push out-of-date in branch creation and file upload. * Remove the duplicated sanitize from services/pull/merge * Move the errors Err(Merge)PushOutOfDate and ErrPushRejected to modules/git * Handle errors better in the upload file dialogs Fix #10460 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [Docs] Config Cheat Sheet: SSL_MODE Value Description (#10834)Bagas Sanjaya2020-03-281-1/+12
| | | | | | | | | | | * Add description of SSL_MODE values * Apply suggestions from @guillep2k Rewording suggestions Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-03-271-0/+35
|
* make `gitea admin auth list` formatting configurable (#10844)zeripath2020-03-271-1/+37
| | | | | | | | | * make admin auth list formatting configurable Signed-off-by: Andrew Thornton <art27@cantab.net> * As per @guillep2k Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix typo of MSSQL (#10850)Success Go2020-03-271-1/+1
|
* make avatar lookup occur at image request (#10540)zeripath2020-03-2713-21/+154
| | | | | | | | | | | | | speed up page generation by making avatar lookup occur at the browser not at page generation * Protect against evil email address ".." * hash the complete email address Signed-off-by: Andrew Thornton <art27@cantab.net> Co-Authored-By: Lauris BH <lauris@nix.lv>
* Set MySQL rowtype to dynamic for new tables (#10833)Lauris BH2020-03-271-0/+3
| | | | | * Set mysql rowtype to dynamic for new tables * Update models.go
* In authorized_keys use double-quote for windows compatibility (#10841)zeripath2020-03-272-3/+5
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix internal server error on checkboxes (#10845)zeripath2020-03-261-1/+1
| | | | | | | Annoyingly goldmarks SetAttributeString requires that the value of the attribute is still a []byte but does not make it clear in the documentation. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Allow to set protected file patterns that can not be changed under no ↵Lauris BH2020-03-2715-23/+202
| | | | | conditions (#10806) Co-Authored-By: zeripath <art27@cantab.net>
* Option to set default branch at repository creation (#10803)zeripath2020-03-2610-33/+57
| | | | | | | | | | * Option to set default branch at repository creation * Handle template repos with non-default master branch * Add DefaultBranch handling on creation to API Fix #9542 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix repo summary height (#10825)silverwind2020-03-251-3/+6
| | | | | | | | Extracted the style that keeps the animation of the language bar in check. Fixes: https://github.com/go-gitea/gitea/issues/10754 Co-authored-by: Lauris BH <lauris@nix.lv>
* Simplify grep regexp to be more compatible (#10765)Stefan Bethke2020-03-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Simplify grep regexp to be more compatible The new expression also works with the BSD implementation of grep. Also, I believe the expression did not work consistently for all possible version numers, for example a two digit patch version would not have been matched. * Fix quote * Allow for two and three part version numbers * Select one, two and three part version numbers, reject amd64 * Also allow one to three parts for node version * Use JS code to print node verion in correct format * Avoid grep altogether * Handle go1.14beta1 as well. Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Fix milestone template (#10824)John Olheiser2020-03-251-1/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Upgrade xorm to v1.0.1 and fix start fail with potgres (#10819)Lunny Xiao2020-03-2525-149/+226
| | | | | | | * upgrade xorm to v1.0.1 * fix start fail with postgres Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-03-251-14/+14
|
* Fix tab indentation in code view (#10671)Alexander Scheel2020-03-251-5/+2
| | | | | | | Resolves: #5596 Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* log.Fatal on failure to listen to SSH port (#10795)zeripath2020-03-231-1/+6
| | | Fix #10792
* Completely fix task-list checkbox styling (#10798)zeripath2020-03-221-0/+6
| | | Continuing on from #10668 this PR makes goldmark apply the task-list styling to task-lists.
* Upgrade xorm to v1.0.0 (#10646)Lunny Xiao2020-03-22154-5942/+7175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Upgrade xorm to v1.0.0 * small nit * Fix tests * Update xorm * Update xorm * fix go.sum * fix test * Fix bug when dump * Fix bug * update xorm to latest * Fix migration test * update xorm to latest * Fix import order * Use xorm tag
* Fix branch api canPush and canMerge (#10776)Lunny Xiao2020-03-203-25/+45
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* account for empty lines in receive-hook message (#10773)zeripath2020-03-201-1/+1
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* go 1.14 (#10467)techknowlogick2020-03-2012-34/+177
|
* Add nowrap to language bar items (#10755)Lauris BH2020-03-201-0/+4
|
* Update Gitea version in docs (#10772)John Olheiser2020-03-191-1/+1
|
* Fix bug on branch API (#10767)Lunny Xiao2020-03-191-3/+7
|
* Move JS build dependencies to 'dependencies' (#10763)silverwind2020-03-192-2422/+1892
| | | | | | | | | | | | | | - move all JS build dependencies to 'dependencies' - update all JS dependencies Reason for this is that npm will only install 'dependencies' when under the effect of NODE_ENV=production which may be present on some build systems. Linters currently need to be depdendencies because we run linting as part of the build step, but I plan to move them to a separate 'lint' target which means they can move to devDependencies then. Fixes: https://github.com/go-gitea/gitea/pull/10761
* doc(authentication.en-us): remove superflous line (#10758)Simon Legner2020-03-181-4/+0
|
* disable webpack's size warnings (#10746)silverwind2020-03-171-8/+1
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* move jquery-datetimepicker to npm/webpack (#10713)silverwind2020-03-1714-2665/+70
| | | | | | | | | - update to latest version and move to npm - adapt for api changes and css class rename - add specificity to arc-green rules as dependency css now loads later - use imports-loader to make it load correctly - fix some wrong paths in librejs Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Migrate to go-git/go-git v5.0.0 (#10735)Lauris BH2020-03-17315-92419/+15238
|
* hide gear icon for user who can't use them on sidebar (#10750)赵智超2020-03-171-3/+9
| | | | | | | | | reason: If user can't choose the Assignees labels and Milestone It's not usefull to show a gear label , and it It will mislead the user into thinking that it's a BUG rather than thy don't have permission to chosse them. Signed-off-by: a1012112796 <1012112796@qq.com>
* FIx hiding of fields in authorization source page (#10734)Lauris BH2020-03-171-13/+6
|
* Change PACKAGES to GO_PACKAGES for FreeBSD compatibility (#10747)guillep2k2020-03-171-8/+8
| | | Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
* Prevent default for linkAction (#10742)John Olheiser2020-03-161-1/+2
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* misc: change the "taskName" to "label" in vscode tasks.json (#10739)赵智超2020-03-161-2/+2
| | | | | | because of vscode suggest ref ISSUE: Microsoft/vscode-docs#1181 Signed-off-by: a1012112796 <1012112796@qq.com>
* Fix queue log param (#10733)Lunny Xiao2020-03-161-3/+3
|
* Update JS dependencies (#10726)silverwind2020-03-142-907/+473
| | | | | Result of `make npm-update`. Only notable change is that `updates` now requires Node 10 and has been changed to a bundle, so its dependencies are now no longer installed.
* Bump acorn from 6.4.0 to 6.4.1 (#10724)dependabot[bot]2020-03-131-6/+6
| | | | | | | | | Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update border-color of language bar icon (#10723)Alex2020-03-141-1/+1
| | | | | | | | | | * Update color of border of color-icon * Update web_src/less/_base.less Co-Authored-By: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de>
* Documentation - updated email setup (#10695)8ctopus2020-03-131-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Updated email setup documentation to include sendmail option * Update docs/content/doc/usage/email-setup.en-us.md full path to sendmail Co-Authored-By: mrsdizzie <info@mrsdizzie.com> * Update docs/content/doc/usage/email-setup.en-us.md docker image does not have sendmail Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * Update docs/content/doc/usage/email-setup.en-us.md Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * Update docs/content/doc/usage/email-setup.en-us.md Co-Authored-By: James Lakin <jamesorlakin@users.noreply.github.com> * Update docs/content/doc/usage/email-setup.en-us.md Co-Authored-By: James Lakin <jamesorlakin@users.noreply.github.com> Co-authored-by: 8ctopus <hello@octopuslabs.io> Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: James Lakin <jamesorlakin@users.noreply.github.com>
* fix miss spelling (#10721)Success Go2020-03-121-1/+1
|
* Misc JS linting and naming tweaks (#10652)silverwind2020-03-1111-96/+89
| | | | | | | | - lowercase all js filenames except Vue components - enable new lint rules, mostly focused on shorter code - autofix new lint violations - apply misc transformations indexOf -> includes and onevent-> addEventListener Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Remove old vendored dropzone from serviceworker (#10703)John Olheiser2020-03-111-2/+0
| | | | | | | * Remove dropzone from serviceworker * Remove CSS as well Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add changelog for v1.11.3 (#10700) (#10708)Lunny Xiao2020-03-111-0/+7
| | | | | | | | | | | * Add changelog for v1.11.3 * Apply suggestions from code review * Update CHANGELOG.md Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Changelog for v1.10.6 (#10699) (#10710)Lunny Xiao2020-03-111-0/+6
| | | | | | | | | | | | | * Changelog for v1.10.6 * Add warnning * Apply suggestions from code review Co-Authored-By: John Olheiser <john.olheiser@gmail.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Use better wording for release pipeline and steps (#10701)Antoine GIRARD2020-03-111-5/+5
|
* cross compile using go 1.13.x (#10684) (#10697)Lunny Xiao2020-03-101-2/+2
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-03-091-0/+4
|