summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [API] Milestone endpoints accept names too (#12649)65432020-09-143-36/+60
| | | | | | | | | * API: Milestone endpoints accept names too * add test * rename Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-148-1/+454
|
* fix: use Base36 for all code indexers (#12830)Jui-Nan Lin2020-09-142-6/+5
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-131-0/+2
|
* Fix markdown meta parsing (#12817)John Olheiser2020-09-122-7/+72
| | | | | | | | | | | | | | | | | | | | | | | * Fix meta parsing and add minimal test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add license Signed-off-by: jolheiser <john.olheiser@gmail.com> * Require first separator and add more tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Go lets this work gracefully :pray: Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Don't replace underscores in auto-generated IDs in goldmark (#12805)zeripath2020-09-121-1/+1
| | | | | Fix #12196 Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-121-1/+25
|
* Fix bug on elastic search (#12811)Lunny Xiao2020-09-122-15/+42
| | | | | | | | | | | * Fix bug on elastic search * Add more comments for elastic search result startIndex and endIndex * refactor indexPos * refactor indexPos * Fix bug
* Translate two small lables on commit statuse list (#12821)赵智超2020-09-122-2/+4
| | | | | | * Requested * Details Signed-off-by: a1012112796 <1012112796@qq.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-113-16/+106
|
* Make SVG size argument optional (#12814)silverwind2020-09-1189-455/+458
| | | | | Now defaults to 16 on both frontend and backend. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Issue templates directory (#11450)John Olheiser2020-09-1118-17/+381
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Issue templates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add some comments, appease the linter Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add docs and re-use dir candidates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add default labels to issue templates Signed-off-by: jolheiser <john.olheiser@gmail.com> * Generate swagger Signed-off-by: jolheiser <john.olheiser@gmail.com> * Suggested changes Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update issue.go * Suggestions Signed-off-by: jolheiser <john.olheiser@gmail.com> * Extract metadata from legacy if possible Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Move all push update operations to a queue (#10133)Lunny Xiao2020-09-1116-585/+552
| | | | | | | | | | | | | | | | | | | | * Fix test * Add no queue for test only * improve code * Auto watch whatever branch operation * Fix lint * Rename noqueue to immediate * Remove old PushUpdate function * Fix tests Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-112-0/+18
|
* Show PR settings on empty repos (#12808)zeripath2020-09-111-1/+1
| | | | | | Fix #12788 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Disable watch and star if not signed in (#12807)zeripath2020-09-112-4/+6
| | | | | Fix #12070 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add postgres schema to the search_path on database connection (#12634)zeripath2020-09-112-10/+10
| | | | | | | | | | Rather than rely on the user running the gitea server and db setting the schema search_path correctly - if gitea is run with a schema we should simply set the search_path to have that schema first in the path. Fix #12505 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Whilst changing the character set to utf8mb4 we should set ↵zeripath2020-09-111-1/+5
| | | | | | | | ROW_FORMAT=dynamic too (#12804) Fix #12801 Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-09-111-0/+15
|
* Set opengraph attributes on org pages (#12803)zeripath2020-09-111-0/+2
| | | | | Fix #12778 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Remove double escape on labels addition in comments (#12809)zeripath2020-09-111-1/+1
| | | | | Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [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