]>
source.dussan.org Git - gitea.git/log
GiteaBot [Sat, 29 Jun 2019 15:22:08 +0000 (15:22 +0000)]
[skip ci] Updated translations via Crowdin
Richard Mahn [Sat, 29 Jun 2019 15:19:24 +0000 (11:19 -0400)]
Fixes #7152 - Allow create/update/delete message to be empty, use default message (#7324)
* Fixes #7152 - Allow create/update/delete message to be empty, use default message
* Linting fix
* Fix to delete integration tests
Lunny Xiao [Sat, 29 Jun 2019 13:38:22 +0000 (21:38 +0800)]
Use batch insert on migrating repository to make the process faster (#7050)
* Use batch insert on migrating repository to make the process faster
* fix lint
* fix tests
* fix comments
GiteaBot [Sat, 29 Jun 2019 11:47:09 +0000 (11:47 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Sat, 29 Jun 2019 11:46:25 +0000 (19:46 +0800)]
add commitgraph support global default true when git version >= 2.18 (#7313)
GiteaBot [Sat, 29 Jun 2019 10:45:07 +0000 (10:45 +0000)]
[skip ci] Updated translations via Crowdin
Richard Mahn [Sat, 29 Jun 2019 10:44:17 +0000 (06:44 -0400)]
Fixes #7238 - Annotated tag commit ID incorrect (#7321)
* Fixes #7238 - Annotated tag commit ID incorrect
* Fixes #7238 - Annotated tag commit ID incorrect
GiteaBot [Sat, 29 Jun 2019 09:19:47 +0000 (09:19 +0000)]
[skip ci] Updated translations via Crowdin
Cherrg [Sat, 29 Jun 2019 09:18:49 +0000 (11:18 +0200)]
Fix 7303 - remove unnessesary buttons on archived repos (#7326)
* archived repo - remove
- open/close button on issue list
- assigne person on issue list
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* archived repo - remove
- comment field on issue view
- lock/unlock issue conversation button from sidebar on issue view
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* archived repo - add 'compare commits' button to pull request
+ remove new pull request button from compare view
as the route is still working, and there is no need to be hidden
Signed-off-by: Michael Gnehr <michael@gnehr.de>
GiteaBot [Fri, 28 Jun 2019 21:18:16 +0000 (21:18 +0000)]
[skip ci] Updated translations via Crowdin
Cherrg [Fri, 28 Jun 2019 21:17:21 +0000 (23:17 +0200)]
Dark theme fixes (#7319)
* add dark theme for jquery xdsoft_datetimepicker
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* add border to dark theme - not checked issue checkboxes
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Cherrg [Fri, 28 Jun 2019 02:45:54 +0000 (04:45 +0200)]
gitea own dark codemirror theme (#7317)
* modify dark codemirror theme
fix #6573
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* add selection color
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Mario Lubenka [Thu, 27 Jun 2019 14:15:30 +0000 (16:15 +0200)]
Show Pull Request button or status of latest PR in branch list (#6990)
* Show Pull Request button or status of latest PR in branch list
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Do not show pull request button on deleted branches
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Do not show commit divergence on deleted branches
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Use XORMs Get instead of limit
* Links pull request ID and use smaller labels for displaying the pull request status
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Handle error when getting latest pull request
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Indent template
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Check error when loading issue
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
silverwind [Thu, 27 Jun 2019 06:36:37 +0000 (08:36 +0200)]
replace lesshint with stylelint (#7305)
New CSS linter which is much more powerfull than the previous one.
Configuration is default but I had to remove a few rules that were
throwing too many or weird errors.
More importantly, the linter will exit with code 1 on errors so now our
build will fail if the CSS linter fails which should eliminate linter
errors being introduced without notice.
silverwind [Wed, 26 Jun 2019 21:35:07 +0000 (23:35 +0200)]
fix extra newlines when copying from diff in Firefox (#7288)
* fix extra newlines when copying from diff
See https://bugzilla.mozilla.org/show_bug.cgi?id=
1273836
Basically, the <pre><code> seems to add a forced newline that is not
possible to get rid of via CSS, so I replaced it with just a <code>.
Secondly, .lines-type-marker also forced a newline in the copied text,
but that was possible to get rid of via user-select.
Safari still has a extraneous newline in the copied text of unknown
origin, but this should not block stop this PR.
* simplify .line-type-marker
* fix selector
* remove erronous ^^^
* Fix empty split diff
* Fix arc-theme-green
* fix add comment
* ensure line-num is copied too
* Update templates/repo/diff/box.tmpl
Co-Authored-By: zeripath <art27@cantab.net>
* attempt to fix safari via removing <code>
* remove useless whitespace at the end of 'class'
* remove inter-tag whitespace for code <td>s
* more inter-tag removal
* final inter-tag removal
* attempt to fix empty line copy
* move and comment getLineContent
* fix golint
* make background grey for missing added code
Lunny Xiao [Wed, 26 Jun 2019 18:15:26 +0000 (02:15 +0800)]
Monitor all git commands; move blame to git package and replace git as a variable (#6864)
* monitor all git commands; move blame to git package and replace git as a variable
* use git command but not other commands
* fix build
* move exec.Command to git.NewCommand
* fix fmt
* remove unrelated changes
* remove unrelated changes
* refactor IsEmpty and add tests
* fix tests
* fix tests
* fix tests
* fix tests
* remove gitLogger
* fix fmt
* fix isEmpty
* fix lint
* fix tests
Lunny Xiao [Wed, 26 Jun 2019 16:12:38 +0000 (00:12 +0800)]
Shadow the password on cache and session config on admin panel (#7300)
* shadow the password on cache and session config on admin panel
* add shadow password of mysql/postgres/couchbase
* fix log import
Lunny Xiao [Wed, 26 Jun 2019 08:51:32 +0000 (16:51 +0800)]
fix API link header (#7298)
zeripath [Mon, 24 Jun 2019 20:23:52 +0000 (21:23 +0100)]
Make diff line-marker non-selectable (#7279)
* Make diff line-marker non-selectable
* Move to use data-* as per @mrsdizzie
* fix missing line nums
* Add a minimum-width to force right-align of the line num
* Move line-type-marker into separate column
Marat Radchenko [Mon, 24 Jun 2019 05:33:57 +0000 (08:33 +0300)]
[docker] Add LFS_START_SERVER option to control git-lfs support (#7281)
Lunny Xiao [Sun, 23 Jun 2019 15:22:43 +0000 (23:22 +0800)]
Fix error log when loading issues caused by a xorm bug (#7271)
* fix error log when loading issues caused by a xorm bug
* upgrade packages
* fix fmt
* fix Consistency
* fix tests
zeripath [Sat, 22 Jun 2019 17:35:34 +0000 (18:35 +0100)]
Fix #732: Add LFS objects to base repository on merging (#7082)
On merge we walk the merge history and ensure that all lfs objects pointed to in
the history are added to the base repository. This switches from relying on having git-lfs installed on the server, (and in fact .gitattributes being correctly installed.)
Cherrg [Fri, 21 Jun 2019 13:27:47 +0000 (15:27 +0200)]
Dark theme markdown fixes (#7260)
* fix colors in dark theme - tables inside rendered markdown
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix colors in dark theme - simpleMDE rendered preview
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* Update public/less/themes/arc-green.less
remove scroll bar color, to add this globally on additional PR
Co-Authored-By: Lauris BH <lauris@nix.lv>
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* add missing class name
Signed-off-by: Michael Gnehr <michael@gnehr.de>
mrsdizzie [Fri, 21 Jun 2019 06:13:54 +0000 (02:13 -0400)]
Fix Submodule dection in subdir (#7275)
Include the directory in name when looking for matching Submodule from
.gitmodules file
Fixes #7262
techknowlogick [Thu, 20 Jun 2019 23:47:51 +0000 (19:47 -0400)]
Alpine 3.10 (#7256)
Antoine GIRARD [Thu, 20 Jun 2019 07:16:01 +0000 (09:16 +0200)]
add .fa margin like .octicon (#7258)
Lunny Xiao [Wed, 19 Jun 2019 16:53:37 +0000 (00:53 +0800)]
Only check and config git on web subcommand but not others (#7236)
* only check and config git on web subcommand but not others
* add Init in git tests
silverwind [Wed, 19 Jun 2019 02:59:47 +0000 (04:59 +0200)]
add 'npm' and 'npm-update' make targets and lockfile (#7246)
* add 'npm' and 'npm-update' make targets and lockfile
- `make npm` installs and updates node_modules, triggered automatically
on `make css` and `make js` as it completes reasonably fast and
ensures consistent modules.
- `make npm-update` updates all dependencies to their latest version,
regenerates `node_modules` from scratch and updates
`package-lock.json`. It uses npm modules `updates` written by yours
truly to find the latest version of each dependency.
* add suggested make dependencies
* remove package-lock.json during npm-update
* regenerate package-lock.json
techknowlogick [Wed, 19 Jun 2019 02:14:15 +0000 (22:14 -0400)]
update go-git to v4.12.0 - fixes #7248 (#7249)
silverwind [Tue, 18 Jun 2019 22:31:31 +0000 (00:31 +0200)]
fix hljs unintenionally highlighting commit links (#7244)
* fix hljs unintenionally highlighting commit links
* fix unit tests
silverwind [Tue, 18 Jun 2019 19:32:49 +0000 (21:32 +0200)]
add self to MAINTAINERS (#7245)
Lunny Xiao [Tue, 18 Jun 2019 16:15:39 +0000 (00:15 +0800)]
Fix migration panic when Head.User is not exist (#7226)
* fix migration panic when Head.User is not exist
* fix test
zeripath [Tue, 18 Jun 2019 14:17:00 +0000 (15:17 +0100)]
Update css (#7240)
Remove -o-tab-size selectors from tab-sze-1 css
Antoine GIRARD [Tue, 18 Jun 2019 02:57:48 +0000 (04:57 +0200)]
Fix relref link in docs (#7233)
techknowlogick [Tue, 18 Jun 2019 02:52:03 +0000 (22:52 -0400)]
Add docs for `INTERNAL_TOKEN_URI` (#7234)
John Olheiser [Mon, 17 Jun 2019 18:42:14 +0000 (13:42 -0500)]
Changelog 1.8.3 (#7230) (#7231)
* Changelog 1.8.3
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Suggestion
Co-Authored-By: zeripath <art27@cantab.net>
ngourdon [Mon, 17 Jun 2019 18:32:20 +0000 (20:32 +0200)]
Add CLI commands to manage LDAP authentication source (#6681)
* add CLI commands to manage LDAP authentication source
* delete Gogs copyright
* remove unused return value of func parseLoginSource
* fix comment
Co-Authored-By: ngourdon <31291059+ngourdon@users.noreply.github.com>
* remove config flag already present in global flags
* remove config flag from ldap commands in docs
* remove config flag handling
GiteaBot [Mon, 17 Jun 2019 17:36:28 +0000 (17:36 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Mon, 17 Jun 2019 17:33:55 +0000 (18:33 +0100)]
Use certmanager provided TLSConfig for LetsEncrypt (#7229)
Lunny Xiao [Sun, 16 Jun 2019 18:24:49 +0000 (02:24 +0800)]
show lfs config on admin panel (#7220)
Lunny Xiao [Sun, 16 Jun 2019 12:39:52 +0000 (20:39 +0800)]
Add missing description of label on API (#7159)
* add missing description of label on API
* fix comment head
* fix swagger
Antoine GIRARD [Sun, 16 Jun 2019 07:50:46 +0000 (09:50 +0200)]
Use go method to calculate ssh key fingerprint (#7128)
* Use go method to calculate key fingerprint
* add gitea copyright
* use native go method only for built-in server
* refactor and add tests
* add gitea copyright
zeripath [Sun, 16 Jun 2019 03:28:32 +0000 (04:28 +0100)]
Add LastLogin to the User API (#7196)
Antoine GIRARD [Sun, 16 Jun 2019 02:49:07 +0000 (04:49 +0200)]
setting: don't require same running user for internal SSH (like win platform) (#7215)
zeripath [Sat, 15 Jun 2019 22:20:29 +0000 (23:20 +0100)]
Only warn on errors in deleting LFS orphaned files during repo deletion (#7213)
Lunny Xiao [Sat, 15 Jun 2019 14:22:26 +0000 (22:22 +0800)]
fix duplicated file on pull request conflicted files (#7211)
zeripath [Sat, 15 Jun 2019 04:00:32 +0000 (05:00 +0100)]
Allow colon between fixing word and issue (#7207)
* Allow colon between fixing word and issue
* update test
silverwind [Fri, 14 Jun 2019 01:32:14 +0000 (03:32 +0200)]
UI: Fix overflow issues in repo (#7190)
- Fix layout overflow in repo file list.
- Fix invisible status icon in file view and commit list. In file view,
the icon was moved to the left because I could not figure out a proper
fix because of HTML tables.
- Added title attribute to commit messages.
- Fixed two CSS linter warnings in existing CSS.
- Fixed CI variable check in 'make css'.
Fixes: https://github.com/go-gitea/gitea/issues/7180
Cherrg [Thu, 13 Jun 2019 04:23:45 +0000 (06:23 +0200)]
fix drone build bug (#7192)
John Olheiser [Wed, 12 Jun 2019 21:07:24 +0000 (16:07 -0500)]
API error cleanup (#7186)
John Olheiser [Wed, 12 Jun 2019 20:20:43 +0000 (15:20 -0500)]
Add error for fork already existing (#7185)
kolaente [Wed, 12 Jun 2019 19:41:28 +0000 (21:41 +0200)]
Add golangci (#6418)
Lunny Xiao [Wed, 12 Jun 2019 00:12:13 +0000 (08:12 +0800)]
Fix database lock when use random repository fallback image (#7166)
* fix database lock when use random repository fallback image
* remove unused function
Mario Lubenka [Tue, 11 Jun 2019 23:32:08 +0000 (01:32 +0200)]
Fixes diff on merged pull requests (#7171)
silverwind [Tue, 11 Jun 2019 19:27:38 +0000 (21:27 +0200)]
Various fixes for issue mail notifications (#7165)
- Send individual mails for actions and comments
- Send mail for new issues/prs without a comment
- Use correct sender for reopen/close actions
- Hopefully fixed all bugs related to missing mails
Fixes: https://github.com/go-gitea/gitea/issues/7124
Fixes: https://github.com/go-gitea/gitea/issues/5977
Lunny Xiao [Tue, 11 Jun 2019 01:13:24 +0000 (09:13 +0800)]
fix pusher name via ssh push (#7167)
Lunny Xiao [Mon, 10 Jun 2019 19:55:58 +0000 (03:55 +0800)]
Revert "make modules/structs as a spereate go mod (#7127)" (#7175)
This reverts commit
835b53fc259c82f38945a3e107a4eb51478967d5 .
Lunny Xiao [Mon, 10 Jun 2019 15:20:49 +0000 (23:20 +0800)]
make modules/structs as a spereate go mod (#7127)
Lunny Xiao [Mon, 10 Jun 2019 14:16:02 +0000 (22:16 +0800)]
if milestone id is zero don't get it from database (#7169)
Lunny Xiao [Mon, 10 Jun 2019 11:35:13 +0000 (19:35 +0800)]
Move PushUpdate dependency from models to repofiles (#6763)
* remove push_update
* move models.PushUpdate to repofiles.PushUpdate
GiteaBot [Mon, 10 Jun 2019 01:06:14 +0000 (01:06 +0000)]
[skip ci] Updated translations via Crowdin
Lanre Adelowo [Mon, 10 Jun 2019 01:02:42 +0000 (02:02 +0100)]
archived repos can be starred and watched (#7163)
Richard Mahn [Sat, 8 Jun 2019 14:31:11 +0000 (10:31 -0400)]
Fixes #2738 - Adds the /git/tags API endpoint (#7138)
* Fixes #2738 - /git/tags API
* proper URLs
* Adds function comments
* Updates swagger
* Removes newline from tag message
* Removes trailing newline from commit message
* Adds integration test
* Removed debugging
* Adds tests
* Fixes bug where multiple tags of same commit show wrong tag name
* Fix formatting
* Removes unused varaible
* Fix to annotated tag function names and response
* Update modules/git/repo_tag.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
* Uses TagPrefix
* Changes per review, better error handling for getting tag and commit IDs
* Fix to getting commit ID
* Fix to getting commit ID
* Fix to getting commit ID
* Fix to getting commit ID
Lunny Xiao [Sat, 8 Jun 2019 13:53:45 +0000 (21:53 +0800)]
Add command to convert mysql database from utf8 to utf8mb4 (#7144)
* add command to convert mysql database from utf8 to utf8mb4
* Update cmd/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Update cmd/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Update cmd/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Update models/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Update models/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Update cmd/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Update cmd/convert.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Lunny Xiao [Sat, 8 Jun 2019 11:47:46 +0000 (19:47 +0800)]
fix GCArgs load from ini (#7156)
GiteaBot [Fri, 7 Jun 2019 20:32:49 +0000 (20:32 +0000)]
[skip ci] Updated translations via Crowdin
Mario Lubenka [Fri, 7 Jun 2019 20:29:29 +0000 (22:29 +0200)]
Compare branches, commits and tags with each other (#6991)
* Supports tags when comparing commits or branches
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Hide headline when only comparing and don't load unused data
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Merges compare logics to allow comparing branches, commits and tags with eachother
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Display branch or tag instead of commit when used for comparing
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Show pull request form after click on button
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Transfers relevant pull.go changes from master to compare.go
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Fixes error when comparing forks against a commit or tag
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Removes console.log from JavaScript file
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Show icon next to commit reference when comparing branch or tag
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Updates css file
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Fixes import order
* Renames template variable
* Update routers/repo/compare.go
Co-Authored-By: zeripath <art27@cantab.net>
* Update from master
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Allow short-shas in compare
* Renames prInfo to compareInfo
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Check PR permissions only if compare is pull request
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adjusts comment
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Use compareInfo instead of prInfo
zeripath [Thu, 6 Jun 2019 05:54:25 +0000 (06:54 +0100)]
Detect noreply email address as user (#7133)
GiteaBot [Thu, 6 Jun 2019 00:40:56 +0000 (00:40 +0000)]
[skip ci] Updated translations via Crowdin
Lanre Adelowo [Thu, 6 Jun 2019 00:37:45 +0000 (01:37 +0100)]
Add state param to milestone listing API (#7131)
* Support state params
* update tests
* fix tests
* add state=all support
* update tests
* update swagger
* update swagger
GiteaBot [Wed, 5 Jun 2019 16:26:53 +0000 (16:26 +0000)]
[skip ci] Updated translations via Crowdin
Lanre Adelowo [Wed, 5 Jun 2019 16:24:09 +0000 (17:24 +0100)]
add docs for #6847 (#7132)
katherine [Wed, 5 Jun 2019 14:16:06 +0000 (07:16 -0700)]
minor fixes in en-US locale (#7130)
a few spelling fixes and one rewritten line
Signed-off-by: katherine <ageha@airen-no-jikken.icu>
Nick Meyer [Wed, 5 Jun 2019 01:17:17 +0000 (20:17 -0500)]
Exclude pull_request from fetch-tags step, fixes #7108 (#7120)
Signed-off-by: Nick Meyer <nick@e3b0c442.io>
Rob Watson [Tue, 4 Jun 2019 21:01:47 +0000 (23:01 +0200)]
Add Rust highlighting (#7125)
John Olheiser [Tue, 4 Jun 2019 19:36:09 +0000 (14:36 -0500)]
Migration Tweaks (#6260)
* Adds auto-name if repo name is blank
Adds error checking before sanitization in migration
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Changed err from sanitization to a different variable
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove handleCreatePost and implement separately
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
GiteaBot [Mon, 3 Jun 2019 15:13:51 +0000 (15:13 +0000)]
[skip ci] Updated translations via Crowdin
mrsdizzie [Mon, 3 Jun 2019 15:11:20 +0000 (11:11 -0400)]
Refactor submodule URL parsing (#7100)
Use combination of url.Parse and regex to parse refURL rather than by
hand with indexes & attempt to check if refURL is from same instance and
adjust output to match.
Also now return empty string instead of our original
guess at URL if we are unable to parse it.
Fixes #1526
Sandro Santilli [Mon, 3 Jun 2019 08:07:03 +0000 (10:07 +0200)]
Avoid arbitrary format strings upon calling fail() function (#7112)
GiteaBot [Sun, 2 Jun 2019 21:46:35 +0000 (21:46 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Sun, 2 Jun 2019 21:43:47 +0000 (05:43 +0800)]
Use vfsgen instead of go-bindata (#7080)
* use vfsgen instead of go-bindata
* fix templates
* fix fmt
* vendor vsfgen
Mario Lubenka [Sun, 2 Jun 2019 06:40:12 +0000 (08:40 +0200)]
Repository avatar fallback configuration (#7087)
* Only show repository avatar in list when one was selected
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adds fallback configuration option for repository avatar
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Implements repository avatar fallback
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adds admin task for deleting generated repository avatars
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Solve linting issues
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Save avatar before updating database
* Linting
* Update models/repo.go
Co-Authored-By: zeripath <art27@cantab.net>
zeripath [Sat, 1 Jun 2019 15:00:21 +0000 (16:00 +0100)]
Move serv hook functionality & drop GitLogger (#6993)
* Move hook functionality internally
* Internalise serv logic
* Remove old internal paths
* finally remove the gitlogger
* Disallow push on archived repositories
* fix lint error
* Update modules/private/key.go
* Update routers/private/hook.go
* Update routers/private/hook.go
* Update routers/private/hook.go
* Updated routers/private/serv.go
* Fix LFS Locks over SSH
* rev-list needs to be run by the hook process
* fixup
* Improve git test
* Ensure that the lfs files are created with a different prefix
* Reduce the replication in git_test.go
* slight refactor
* Remove unnecessary "/"
* Restore ensureAnonymousClone
* Restore ensureAnonymousClone
* Run rev-list on server side
* Try passing in the alternative directories instead
* Mark test as skipped
* Improve git test
* Ensure that the lfs files are created with a different prefix
* Reduce the replication in git_test.go
* Remove unnecessary "/"
Lunny Xiao [Fri, 31 May 2019 19:34:46 +0000 (03:34 +0800)]
update go git from v4.10.0 to v4.11.0 (#7096)
zeripath [Fri, 31 May 2019 10:12:15 +0000 (11:12 +0100)]
Improve git test (#7086)
* Ensure that the lfs files are created with a different prefix
* Reduce the replication in git_test.go
mrsdizzie [Fri, 31 May 2019 09:21:15 +0000 (05:21 -0400)]
Validate External Tracker URL Format (#7089)
* Validate External Tracker URL Format
Add some validation checks for external tracker URL format.
Fixes #7068
* Don't make {index} a hard requirement
* Fix Description
* make fmt
* move regex to package level
* fix copyright date
Robert A. Nowak [Thu, 30 May 2019 21:23:16 +0000 (23:23 +0200)]
Fix Erlang and Elixir highlight mappings (#7044)
Lunny Xiao [Thu, 30 May 2019 20:26:57 +0000 (04:26 +0800)]
improve github downloader on migrations (#7049)
* improve github downloader on migrations
* fix tests
* fix uppercase function parameters
Richard Mahn [Thu, 30 May 2019 17:57:55 +0000 (13:57 -0400)]
Fixes #7023 - API Org Visibility (#7028)
GiteaBot [Thu, 30 May 2019 16:49:44 +0000 (16:49 +0000)]
[skip ci] Updated translations via Crowdin
John Olheiser [Thu, 30 May 2019 16:46:31 +0000 (11:46 -0500)]
1.8.2 changelog (#7079) (#7088)
* 1.8.2 changelog
Richard Mahn [Thu, 30 May 2019 15:09:05 +0000 (11:09 -0400)]
Fixes #5960 - Adds API Endpoint for Repo Edit (#7006)
* Feature - #5960 - API Endpoint for Repo Editing
* Revert from merge
* Adds integration testing
* Updates to integration tests
* Revert changes
* Update year in file header
* Misspell fix
* XORM = test
* XORM = test
* revert XORM = file
* Makes RepoUnit.ID be pk and autoincr
* Fix to units
* revert header
* Remove print statement
* Adds other responses
* Improves swagger for creating repo
* Fixes import order
* Better Unit Type does not exist error
* Adds editable repo properties to the response repo structure
* Fix to api_repo_edit_test.go
* Fixes repo test
* Changes per review
* Fixes typo and standardizes comments in the EditRepoOption struct for swagger
* Fixes typo and standardizes comments in the EditRepoOption struct for swagger
* Actually can unarchive through the API
* Unlike delete, user doesn't have to be the owner of the org, just admin to the repo
* Fix to swagger comments for field name change
* Update to swagger docs
* Update swagger
* Changes allow_pull_requests to has_pull_requests
GiteaBot [Thu, 30 May 2019 02:25:01 +0000 (02:25 +0000)]
[skip ci] Updated translations via Crowdin
Sergey Dryabzhinsky [Thu, 30 May 2019 02:22:26 +0000 (05:22 +0300)]
Repository avatars (#6986)
* 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
Rob Watson [Wed, 29 May 2019 15:16:13 +0000 (17:16 +0200)]
bug fix: add single comment in split diff mode (#4745) (#7052)
Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
zeripath [Wed, 29 May 2019 05:49:08 +0000 (06:49 +0100)]
Handle early git version's lack of get-url (#7065)
GiteaBot [Tue, 28 May 2019 16:02:55 +0000 (16:02 +0000)]
[skip ci] Updated translations via Crowdin
Bo-Yi Wu [Tue, 28 May 2019 15:45:54 +0000 (23:45 +0800)]
refactor: append, build variable and type switch (#4940)
* refactor: append, build variable and type switch
* fix: remove redundant space.
zeripath [Tue, 28 May 2019 10:32:41 +0000 (11:32 +0100)]
Fix LFS Locks over SSH (#6999)
* Fix LFS Locks over SSH
* Mark test as skipped
GiteaBot [Tue, 28 May 2019 09:44:31 +0000 (09:44 +0000)]
[skip ci] Updated translations via Crowdin