summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [API] Migration: Change ServiceType String (#12672)65432020-09-1016-87/+230
| | | | | | | | | | | | | | | | | | | | | | | | | * use different structs for MigrateRepoOptions on UI and API * Fix TokenAuth and rename UID to an understandable Name * fix swagger doc * simplify & mk redable * R E F A C T O R: migration has now internal 3 structs to store its options: * the Options for WebUI: modules/auth/repo_form.go * the Options for API: modules/structs/repo.go * the option struct with after validation for internal prossessing: modules/migrations/base/options.go * Copyright Header * Deprecate UID - add RepoOwner * adopt repo.go -> migrate.go * add comment about each struct purpose * lint
* Update gitea.com/macaron/i18n (#12806)zeripath2020-09-1012-27/+80
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add Primary Key to Topic and RepoTopic (#12639)zeripath2020-09-103-3/+44
| | | | | | | | Add a primary key to Topic and RepoTopic tables Fix #8920 Signed-off-by: Andrew Thornton <art27@cantab.net>
* ui: change commentTag style (#11668)赵智超2020-09-104-5/+24
| | | | | | | | | | | | | | | | | | | * ui: change commentTag style * Add comment tag in first comment (issue content) * Show CommentTagPoster in other way Signed-off-by: a1012112796 <1012112796@qq.com> * Update routers/repo/issue.go Co-authored-by: Lauris BH <lauris@nix.lv> * fix lint * revert CommentTagPoster Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-101-0/+6
|
* fix readme format (#12797)Marshmallow2020-09-101-1/+1
| | | | | Originally, the tabbed content under 'If pre-built frontend files are present it is possible to only build the backend:‘ has tab within the tabbed content. This commit fixed it. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add check for LDAP group membership (#10869)John Olheiser2020-09-108-2/+173
| | | | | | | | | | | | | | This is a port of gogs/gogs#4398 The only changes made by myself are: Add locales Add some JS to the UI Otherwise all code credit goes to @aboron Resolves #10829 Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Add placeholder text for bio profile text form (#12792)Bagas Sanjaya2020-09-102-1/+2
| | | | | * Add placeholder text * Localize
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-101-5/+17
|
* GitLab DL: normalizeColor (#12793)65432020-09-101-1/+14
|
* return error when create gitlabdownloader (#12790)Lunny Xiao2020-09-102-25/+10
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-104-0/+27
|
* Update JS dependencies (#12782)silverwind2020-09-104-148/+192
| | | | | | | | | - Update all dependencies - Add explicit postcss dependency as dictated by postcss-loader - Adapt for new postcss-loader syntax - Move sourceMap options to top for consistency Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Set language via AJAX (#12785)techknowlogick2020-09-102-2/+10
| | | | | * Set language via AJAX * fix lint
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-098-8/+0
|
* Fix "only mail on mention" bug (#12775)赵智超2020-09-094-3/+30
| | | | | | | | | | | * fix mail mention bug fix #12774 Signed-off-by: a1012112796 <1012112796@qq.com> * fix test Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-091-6/+20
|
* Add a migrate service type switch page (#12697)Lunny Xiao2020-09-0921-209/+481
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a migrat service type switch page * Improve translations * remove images * Fix images * remove extra create repo button on dashboard * Follow reviewers' opinions * Fix frontend lint * Remove wrong submit file * Fix tests * Adjust the size of image * Apply suggestions from code review Co-authored-by: 赵智超 <1012112796@qq.com> * Remove username and password from migration of github/gitlab * Improve docs * Improve interface docs Co-authored-by: 赵智超 <1012112796@qq.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-091-3/+11
|
* Add MySQL FAQ section (#12780)zeripath2020-09-091-1/+29
| | | | | | | | | | | | | * Add MySQL FAQ section Signed-off-by: Andrew Thornton <art27@cantab.net> * Update docs/content/doc/help/faq.en-us.md * Update docs/content/doc/help/faq.en-us.md Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: mrsdizzie <info@mrsdizzie.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-094-0/+25
|
* Fix yet another bug with diff file names (#12771)zeripath2020-09-093-51/+247
| | | | | | | | | | Following further testing it has become apparent that the diff line cannot be used to determine filenames for diffs with any sort of predictability the answer therefore is to use the other lines that are provided with a diff Fix #12768 Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-081-0/+1
|
* Check passwords against HaveIBeenPwned (#12716)John Olheiser2020-09-0822-8/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement pwn Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update module Signed-off-by: jolheiser <john.olheiser@gmail.com> * Apply suggestions mrsdizzie Co-authored-by: mrsdizzie <info@mrsdizzie.com> * Add link to HIBP Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add more details to admin command Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add context to pwn Signed-off-by: jolheiser <john.olheiser@gmail.com> * Consistency and making some noise ;) Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: zeripath <art27@cantab.net>
* Upgrade xorm to v1.0.5 (#12765)Lunny Xiao2020-09-0810-26/+79
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* File header tweaks, add CSS helpers (#12635)silverwind2020-09-086-18/+126
| | | | | | | | | - replace two instances of fontawesome with octicons - add new "class" optional argument to "svg" helper - add many new CSS helpers and move their import to the end for increaseed precedence Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Change/remove a branch of an open issue (#9080)Vedran2020-09-0811-9/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add field with isIssueWriter to front end * Make branch field editable * Switch frontend to form and POST from javascript * Add /issue/id/ref endpoint to routes * Use UpdateIssueTitle model to change ref in backend * Removed crossreference check and adding comments on branch change * Use ref returned from POST to update the field * Prevent calling loadRepo from models/ * Branch/tag refreshed without page reload * Remove filter for empty branch name * Add clear option to tag list as well * Delete button translation and coloring * Fix for not showing selected branch name in new issue * Check that branch is not being changed on a PR * Change logic * Notification when changing issue ref * Fix for renamed permission parameter * Fix for failing build * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Gitea <gitea@fake.local> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-082-3/+20
|
* LFS support to be stored on minio (#12518)Lunny Xiao2020-09-0818-200/+420
| | | | | | | | | | | | | | | | | * LFS support to be stored on minio * Fix test * Fix lint * Fix lint * Fix check * Fix test * Update documents and add migration for LFS * Fix some bugs
* Removing k8s contrib file (#12761)techknowlogick2020-09-071-107/+0
| | | We now have a helm chart that users should use instead
* Compare SSH_DOMAIN when parsing submodule URLs (#12753)mrsdizzie2020-09-074-23/+27
| | | | | Right now we only compare the hostname from a submodule with the prefixURL it is viewed from to check if the submodule is hosted on the same Gitea instance. This adds an additional check to compare it against SSH_DOMAIN as well since the same Gitea instance might have a different hostname for SSH and if the submodule uses that hostname we should also detect that and link to the proper DOMAIN value. Fixes #12747, #9756
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-071-7/+57
|
* gitea dump: include version & Check InstallLock (#12760)65432020-09-073-0/+21
| | | | | | | | | * gitea dump: include version * Check InstallLock (close #12759) * fix test * fix lint
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-072-12/+15
|
* Add queue for code indexer (#10332)Lunny Xiao2020-09-0710-171/+233
| | | | | | | | | | | | | | | | | | | | | * Add queue for code indexer * Fix lint * Fix test * Fix lint * Fix bug * Fix bug * Fix lint * Add noqueue * Fix tests * Rename noqueue to immediate
* Set setting.AppURL as GITEA_ROOT_URL environment variable during pushes (#12752)zeripath2020-09-063-0/+6
| | | | | | | * Set setting.AppURL as GITEA_ROOT_URL environment variable during pushes Fix #11738 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Upgrade bleve to v1.0.10 (#12737)Lunny Xiao2020-09-0690-433/+12116
| | | | | | | | * Fix bug on migration 111 * Upgrade bleve to 1.0.10 Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add command to recreate tables (#12407)zeripath2020-09-065-0/+365
| | | | | | | | | | | | | | Provides new command: `gitea doctor recreate-table` which will recreate db tables and copy the old data in to the new table. This function can be used to remove the old warning of struct defaults being out of date. Fix #8868 Fix #3265 Fix #8894 Signed-off-by: Andrew Thornton <art27@cantab.net>
* RepoInit Respect AlternateDefaultBranch (#12746)65432020-09-061-0/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-0615-15/+3
|
* Fix Avatar Resize (resize algo NearestNeighbor -> Bilinear) (#12745)65432020-09-068-124/+292
| | | | | | * Update Vendor github.com/nfnt/resize * switch resize algo NearestNeighbor -> Bilinear
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-061-1/+2
|
* Fix editor.commit_empty_file_text locale string (#12744)zeripath2020-09-061-1/+1
| | | | | | | | editor.commit_empty_file_text should read `about to commit` not `about commit` Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add better Swagger description and a example for GetArchive (#12743)65432020-09-062-2/+2
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-061-0/+1
|
* [Vendor] Update xanzy/go-gitlab v0.31.0 => v0.37.0 (#12701)65432020-09-0644-776/+2436
| | | | | | | | | * update github.com/xanzy/go-gitlab v0.31.0 => v0.37.0 * vendor * adapt changes Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-061-5/+19
|
* ui: Show git-pull-request icon for closed pull request (#12742)赵智超2020-09-062-3/+3
| | | | | As title, I think it's more reasonable, and it's the same as GH. Signed-off-by: a1012112796 <1012112796@qq.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-062-23/+48
|
* Fix bug of migraition v111 (#12738)Lunny Xiao2020-09-061-3/+3
|