summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Repository avatars (#6986)Sergey Dryabzhinsky2019-05-2919-20/+354
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Repository avatars - first variant of code from old work for gogs - add migration 87 - add new option in app.ini - add en-US locale string - add new class in repository.less * Add changed index.css, remove unused template name * Update en-us doc about configuration options * Add comments to new functions, add new option to docker app.ini * Add comment for lint * Remove variable, not needed * Fix formatting * Update swagger api template * Check if avatar exists * Fix avatar link/path checks * Typo * TEXT column can't have a default value * Fixes: - remove old avatar file on upload - use ID in name of avatar file - users may upload same files - add simple tests * Fix fmt check * Generate PNG instead of "static" GIF * More informative comment * Fix error message * Update avatar upload checks: - add file size check - add new option - update config docs - add new string to en-us locale * Fixes: - use FileHEader field for check file size - add new test - upload big image * Fix formatting * Update comments * Update log message * Removed wrong style - not needed * Use Sync2 to migrate * Update repos list view - bigger avatar - fix html blocks alignment * A little adjust avatar size * Use small icons for explore/repo list * Use new cool avatar preparation func by @lafriks * Missing changes for new function * Remove unused import, move imports * Missed new option definition in app.ini Add file size check in user/profile avatar upload * Use smaller field length for Avatar * Use session to update repo DB data, update DeleteAvatar - use session too * Fix err variable definition * As suggested @lafriks - return as soon as possible, code readability
* bug fix: add single comment in split diff mode (#4745) (#7052)Rob Watson2019-05-291-0/+4
| | | Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
* Handle early git version's lack of get-url (#7065)zeripath2019-05-291-1/+12
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-05-281-1/+10
|
* refactor: append, build variable and type switch (#4940)Bo-Yi Wu2019-05-288-46/+42
| | | | | | * refactor: append, build variable and type switch * fix: remove redundant space.
* Fix LFS Locks over SSH (#6999)zeripath2019-05-283-68/+149
| | | | | * Fix LFS Locks over SSH * Mark test as skipped
* [skip ci] Updated translations via CrowdinGiteaBot2019-05-281-0/+4
|
* chore: change issue mail title. (#7064)Bo-Yi Wu2019-05-281-1/+1
| | | | | | | | | | * chore: change issue mail title. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * change to fullname method Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Install page - Handle invalid administrator username better (#7060)zeripath2019-05-282-12/+40
| | | | | | * Install page - detect invalid admin username before installing * Also fix #6954
* Handle insecure and ports in go get (#7041)zeripath2019-05-274-4/+16
| | | | | | * Handle insecure and ports in go get * Fix IsExternalURL for non-standard ports
* "It's all in GitHub" isn't true anymore, update the home template (#7059)Sandro Santilli2019-05-271-1/+4
| | | NOTE: this commit only updates the english section
* fix issuer of OTP URI should be URI-encoded. (#6634)Hui Hui2019-05-271-1/+3
| | | | | | | | | | * fix: Issuer of OTP URI should be URI-encoded. follow this link https://github.com/google/google-authenticator/wiki/Key-Uri-Format . * filter unsafe character ':' in issuer * Use Replace rather than ReplaceAll
* Add FHS-compliant-script (#6923)zeripath2019-05-261-0/+42
|
* fix charset was not saved after installation finished (#7048)Lunny Xiao2019-05-261-0/+2
|
* Revert "Bugfix: Align comment label and actions to the right (#7024)" (#7055)Lunny Xiao2019-05-263-5/+5
| | | This reverts commit 0c432d26fe20d3e50da566cf75fa483376ed8bef.
* fix possbile mysql invalid connnection error (#7051)Lunny Xiao2019-05-261-0/+6
|
* when git version >= 2.18, git command could run with git wire protocol ↵Lunny Xiao2019-05-264-13/+28
| | | | version 2 param if enabled (#7047)
* Update config-cheat-sheet.en-us.md (#7046)Tekaoh2019-05-261-2/+2
|
* Timeout test commands without complicated tricks (#7020)Mura Li2019-05-261-12/+8
|
* migrations: ensure rollback on error (#7039) (#7040)Rob Watson2019-05-251-1/+1
|
* Fix wrong init dependency on markup extensions (#7038)Lunny Xiao2019-05-254-3/+12
| | | | * fix wrong init dependency on markup extensions
* Bugfix: Align comment label and actions to the right (#7024)Mario Lubenka2019-05-253-5/+5
| | | | | | | | | | * Bugfix: Align comment label and actions to the right Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Restores relative position * CSS autofixer
* Improve handling of non-square avatars (#7025)Rob Watson2019-05-2513-19/+454
| | | | | | | | | | * Crop avatar before resizing (#1268) Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com> * Fix spelling error Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-05-251-0/+4
|
* Disable arm7 builds (#7037)techknowlogick2019-05-251-1/+1
| | | | | | | | * Disable arm7 builds As arm6 works on arm7 platforms with no noticeable performance difference * 386
* Fix /verify LFS handler expecting wrong content-type (#7015)Marat Radchenko2019-05-241-18/+15
| | | | | | | | | | | | Fixes #6960 According to [spec][1], /verify requests must have `Accept: application/vnd.git-lfs+json` Previous code works because `git-lfs` also [violates spec and doesn't send any Accept header at all][2] For other clients that DO set `Accept: application/vnd.git-lfs+json`, addition of `Accept: application/vnd.git-lfs` either forces them to violate the spec or is ignored, depending on order in what they create header list. [1]: https://github.com/git-lfs/git-lfs/blob/master/docs/api/basic-transfers.md#verification [2]: https://github.com/git-lfs/git-lfs/issues/3662
* [skip ci] Updated translations via CrowdinGiteaBot2019-05-242-0/+6
|
* Fix default for allowing new organization creation for new users (#7017)jpicht2019-05-242-2/+3
| | | | | | | | | | | | Fixed #6542 When creating users DefaultAllowCreateOrganization was ignored. Signed-off-by: Julian Picht <julian.picht@gmail.com> * fix TestCreateUser_Issue5882 Signed-off-by: Julian Picht <julian.picht@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-05-2418-18/+0
|
* Show git-notes (#6984)Vladimir Panteleev2019-05-2413-1/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | * Show git-notes * Make git-notes heading text localizable * Refactor git-notes data fetching to a separate function * Display the author and time of git notes * Move note bubble inside the commit bubble * Revert "Move note bubble inside the commit bubble" This reverts commit c0951fe0e3b4dea38064515546b1825c1bcf19e1. * Add test for git-notes * testing ui * Polish CSS * Apply suggestions from code review Co-Authored-By: Lauris BH <lauris@nix.lv>
* Add support of utf8mb4 for mysql (#6992)Lunny Xiao2019-05-249-10/+34
|
* Added Note about arm7 version to doc (#6983)suisseWalter2019-05-231-0/+9
| | | | Appended the Troubleshooting section with a subsection about the problems with the arm7 version and the recommendation to switch to arm6.
* Change UpdateRepoIndex api to include watchers (#7012)zeripath2019-05-232-24/+20
| | | | | | * Change UpdateRepoIndex api to include watchers * Add timeout
* Fix documentation on Oauth2.Enable flag (#7011)Monty Taylor2019-05-212-2/+2
| | | | | | | | | * Fix documentation on Oauth2.Enable flag The docs list this as ENABLED, but in the source code it's ENABLE, meaning following the docs leads to confusion. * Update sample config for oauth2.ENABLE
* Do not attempt to return blob on submodule (#6996)zeripath2019-05-211-1/+1
|
* Fix TestSearchRepo by waiting till indexing is done (#7004)zeripath2019-05-211-0/+25
| | | | | | | | * Fix TestSearchRepo by waiting till indexing is done * Update integrations/repo_search_test.go * changes as per @mrsdizzie
* Make webhook http connections resuable (#6976)Lunny Xiao2019-05-211-26/+72
| | | | | | | | * make http connections resuable * add error handler * fix lint
* fix missing repo description when migrating (#7000)Lunny Xiao2019-05-201-0/+3
|
* fix u2f registrationlist ToRegistrations() method (#6980)David Schneiderbauer2019-05-181-1/+1
|
* Fix index produces problem when issues/pulls deleted (#6973)Lunny Xiao2019-05-184-10/+42
| | | | | | | | | | * fix index produces problem when issues/pulls deleted * fix tests * fix tests * fix tests
* Stop running hooks on pr merge (#6963)zeripath2019-05-171-1/+2
| | | | | | * Stop running hooks on pr merge * Remove SSH_ORIGINAL_COMMAND from the pushing environment
* remove and disable package-lock (#6969)silverwind2019-05-164-3075/+5
| | | | | | | | | | | | | | | | * remove and disable package-lock Using exact versions in package.json has the same effect as lockfiles without all the troubles the lockfiles bring (different versions of package manager generating different lockfiles primarily). Ensured we only use exact versions in package.json and stopped generation of new lockfiles via .npmrc which is support by both the npm and yarn package managers. Fixes: https://github.com/go-gitea/gitea/issues/6967 * enable save-exact
* Allow collaborators to view repo owned private org (#6965)mrsdizzie2019-05-163-4/+27
| | | | | | | Handle case where an orginization is private but a user who is not a member of the orgninization has been added as a collaborator of a repo within that org Fixes #6962
* add make targets for js and css, add js linter (#6952)silverwind2019-05-169-130/+889
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add make targets for js,css, add javascript linter - add `make js`, deprecating `make javascripts` - add `make css`, deprecating `make generate-stylesheets` and `make stylesheets-check` - changed the unclean css check to only run on CI - add JS linting via eslint with basic configuration and fixed discovered issues - changed autoprefixer to use official `postcss-cli` avoiding the need to loop in the makefile - moved browserslist to package.json so other future tools can use it too. - update documentation for new make targets and added JS section * fix indentation * move functions used in html to 'exported' list * Run lessc binary without having to install anything to node_modules * use relative paths to node bin scripts, removing npx * Revert "use relative paths to node bin scripts, removing npx" This reverts commit 119b725525a8430b32ee7a6e6009b4ece544e39b. * fix lessc and postcss plugins * check for node_modules and use actual bin names
* Stop colorizing files by default (#6949)zeripath2019-05-153-6/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-05-151-0/+2
|
* SearchRepositoryByName improvements and unification (#6897)zeripath2019-05-157-230/+174
|
* Webhook Logs show proper HTTP Method, and allow change HTTP method in form ↵techknowlogick2019-05-154-11/+18
| | | | | | | | | | | (#6953) * Fix #6951 - logs show proper HTTP Method, and allow change HTTP method in form * enforce POST method for webhook * set default if method is empty
* Refactor models.NewRepoContext to extract git related codes to modules/git ↵Lunny Xiao2019-05-156-49/+34
| | | | | | | | | | (#6941) * refactor models.NewRepoContext to extract git related codes to modules/git * fix imports * refactor
* Fix code overflow (#6914)Xaver Maierhofer2019-05-143-1/+8
|