summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixes diff on merged pull requests (#7171)Mario Lubenka2019-06-113-13/+13
|
* Various fixes for issue mail notifications (#7165)silverwind2019-06-113-19/+41
| | | | | | | | | - 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
* fix pusher name via ssh push (#7167)Lunny Xiao2019-06-111-1/+1
|
* Revert "make modules/structs as a spereate go mod (#7127)" (#7175)Lunny Xiao2019-06-102-4/+0
| | | This reverts commit 835b53fc259c82f38945a3e107a4eb51478967d5.
* make modules/structs as a spereate go mod (#7127)Lunny Xiao2019-06-102-0/+4
|
* if milestone id is zero don't get it from database (#7169)Lunny Xiao2019-06-101-6/+8
|
* Move PushUpdate dependency from models to repofiles (#6763)Lunny Xiao2019-06-107-21/+98
| | | | | | * remove push_update * move models.PushUpdate to repofiles.PushUpdate
* [skip ci] Updated translations via CrowdinGiteaBot2019-06-102-1/+21
|
* archived repos can be starred and watched (#7163)Lanre Adelowo2019-06-101-1/+1
|
* Fixes #2738 - Adds the /git/tags API endpoint (#7138)Richard Mahn2019-06-0816-85/+551
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add command to convert mysql database from utf8 to utf8mb4 (#7144)Lunny Xiao2019-06-083-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* fix GCArgs load from ini (#7156)Lunny Xiao2019-06-081-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-06-071-0/+5
|
* Compare branches, commits and tags with each other (#6991)Mario Lubenka2019-06-0717-527/+584
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Detect noreply email address as user (#7133)zeripath2019-06-061-0/+13
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-06-062-4/+10
|
* Add state param to milestone listing API (#7131)Lanre Adelowo2019-06-068-16/+77
| | | | | | | | | | | | | | | | * Support state params * update tests * fix tests * add state=all support * update tests * update swagger * update swagger
* [skip ci] Updated translations via CrowdinGiteaBot2019-06-058-34/+66
|
* add docs for #6847 (#7132)Lanre Adelowo2019-06-051-0/+1
|
* minor fixes in en-US locale (#7130)katherine2019-06-051-5/+5
| | | | | a few spelling fixes and one rewritten line Signed-off-by: katherine <ageha@airen-no-jikken.icu>
* Exclude pull_request from fetch-tags step, fixes #7108 (#7120)Nick Meyer2019-06-051-0/+3
| | | Signed-off-by: Nick Meyer <nick@e3b0c442.io>
* Add Rust highlighting (#7125)Rob Watson2019-06-041-0/+1
|
* Migration Tweaks (#6260)John Olheiser2019-06-041-0/+8
| | | | | | | | | | | | | | | | | | | * 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>
* [skip ci] Updated translations via CrowdinGiteaBot2019-06-033-2/+4
|
* Refactor submodule URL parsing (#7100)mrsdizzie2019-06-032-27/+74
| | | | | | | | | | 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
* Avoid arbitrary format strings upon calling fail() function (#7112)Sandro Santilli2019-06-031-4/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-06-023-9/+16
|
* Use vfsgen instead of go-bindata (#7080)Lunny Xiao2019-06-0336-612/+1224
| | | | | | | | | | * use vfsgen instead of go-bindata * fix templates * fix fmt * vendor vsfgen
* Repository avatar fallback configuration (#7087)Mario Lubenka2019-06-029-19/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Move serv hook functionality & drop GitLogger (#6993)zeripath2019-06-0125-977/+801
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 "/"
* update go git from v4.10.0 to v4.11.0 (#7096)Lunny Xiao2019-05-3115-40/+93
|
* Improve git test (#7086)zeripath2019-05-313-224/+280
| | | | | * Ensure that the lfs files are created with a different prefix * Reduce the replication in git_test.go
* Validate External Tracker URL Format (#7089)mrsdizzie2019-05-313-1/+87
| | | | | | | | | | | | | | | | | | * 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
* Fix Erlang and Elixir highlight mappings (#7044)Robert A. Nowak2019-05-301-35/+37
|
* improve github downloader on migrations (#7049)Lunny Xiao2019-05-305-144/+134
| | | | | | | | * improve github downloader on migrations * fix tests * fix uppercase function parameters
* Fixes #7023 - API Org Visibility (#7028)Richard Mahn2019-05-3011-40/+258
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-05-304-0/+31
|
* 1.8.2 changelog (#7079) (#7088)John Olheiser2019-05-301-0/+15
| | | * 1.8.2 changelog
* Fixes #5960 - Adds API Endpoint for Repo Edit (#7006)Richard Mahn2019-05-3011-66/+868
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [skip ci] Updated translations via CrowdinGiteaBot2019-05-301-0/+4
|
* 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