Commit Graph

193 Commits (a5992d172551f7821e023cd3cbca1a7cc0b919ee)

Author SHA1 Message Date
John Olheiser 0118b6aaf8 Add option to initialize repository with labels ()
* Add optional label sets on repo creation

* Fix CRLF

* Instead of hardcoding default, make it the helper

* Move label set init out of repo init

Add a new error for the router
Combine router label init with repo creation label init

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Add issue labels to Swagger for repo creation

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Update models/issue_label.go

Co-Authored-By: Lauris BH <lauris@nix.lv>

* Update models/issue_label.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Tamal Saha 171b359877 Use gitea forked macaron ()
Signed-off-by: Tamal Saha <tamal@appscode.com>
Lunny Xiao d95237b561
add notification placeholder ()
Lunny Xiao 08069dc465
Improve migrations to support migrating milestones/labels/issues/comments/pullrequests ()
* add migrations

* fix package dependency

* fix lints

* implements migrations except pull requests

* add releases

* migrating releases

* fix bug

* fix lint

* fix migrate releases

* fix tests

* add rollback

* pull request migtations

* fix import

* fix go module vendor

* add tests for upload to gitea

* more migrate options

* fix swagger-check

* fix misspell

* add options on migration UI

* fix log error

* improve UI options on migrating

* add support for username password when migrating from github

* fix tests

* remove comments and fix migrate limitation

* improve error handles

* migrate API will also support migrate milestones/labels/issues/pulls/releases

* fix tests and remove unused codes

* add DownloaderFactory and docs about how to create a new Downloader

* fix misspell

* fix migration docs

* Add hints about migrate options on migration page

* fix tests
zeripath 704da08fdc
Better logging () ()
* Panic don't fatal on create new logger

Fixes 

Signed-off-by: Andrew Thornton <art27@cantab.net>

* partial broken

* Update the logging infrastrcture

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Reset the skip levels for Fatal and Error

Signed-off-by: Andrew Thornton <art27@cantab.net>

* broken ncsa

* More log.Error fixes

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Remove nal

* set log-levels to lowercase

* Make console_test test all levels

* switch to lowercased levels

* OK now working

* Fix vetting issues

* Fix lint

* Fix tests

* change default logging to match current gitea

* Improve log testing

Signed-off-by: Andrew Thornton <art27@cantab.net>

* reset error skip levels to 0

* Update documentation and access logger configuration

* Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE

* Fix broken level caching

* Refactor the router log

* Add Router logger

* Add colorizing options

* Adjust router colors

* Only create logger if they will be used

* update app.ini.sample

* rename Attribute ColorAttribute

* Change from white to green for function

* Set fatal/error levels

* Restore initial trace logger

* Fix Trace arguments in modules/auth/auth.go

* Properly handle XORMLogger

* Improve admin/config page

* fix fmt

* Add auto-compression of old logs

* Update error log levels

* Remove the unnecessary skip argument from Error, Fatal and Critical

* Add stacktrace support

* Fix tests

* Remove x/sync from vendors?

* Add stderr option to console logger

* Use filepath.ToSlash to protect against Windows in tests

* Remove prefixed underscores from names in colors.go

* Remove not implemented database logger

This was removed from Gogs on 4 Mar 2016 but left in the configuration
since then.

* Ensure that log paths are relative to ROOT_PATH

* use path.Join

* rename jsonConfig to logConfig

* Rename "config" to "jsonConfig" to make it clearer

* Requested changes

* Requested changes: XormLogger

* Try to color the windows terminal

If successful default to colorizing the console logs

* fixup

* Colorize initially too

* update vendor

* Colorize logs on default and remove if this is not a colorizing logger

* Fix documentation

* fix test

* Use go-isatty to detect if on windows we are on msys or cygwin

* Fix spelling mistake

* Add missing vendors

* More changes

* Rationalise the ANSI writer protection

* Adjust colors on advice from @0x5c

* Make Flags a comma separated list

* Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING

* Ensure matching is done on the non-colored message - to simpify EXPRESSION
Lunny Xiao d578b71d61
move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
* move code.gitea.io/git to code.gitea.io/gitea/modules/git

* fix imports

* fix fmt

* fix misspell

* remove wrong tests data

* fix unit tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* enable Debug to trace the failure tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* comment commit count tests since git clone depth is 50

* fix tests

* update from code.gitea.io/git

* revert change to makefile
Lunny Xiao 7afe81f28e fix bug when migrate repository 500 when repo is existed ()
* fix bug when migrate repository 500 when repo is existed

* use 409 but not 422 for error status code when not exist

* translation fix
zeripath 07802a2bc5 Refactor repo.isBare to repo.isEmpty ()
* Refactor repo.isBare to repo.isEmpty 

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Remove Sync call
gdeverlant d3dc07f282 Added URL mapping for Release attachments like on github.com ()
Lauris BH 7b2b900e13 Refactor and simplify redirect to url ()
Morgan Bazalgette 65861900cd Handle refactor ()
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound

* Change Handle(403) to NotFound, avoid using macaron's NotFound
Ethan Koenig 515cdaa85d Fix ignored errors when checking if organization, team member ()
Lunny Xiao 529482135c
Support default private when creating or migrating repository ()
* support default private when creating or migrating repository

* fix fmt

* use string constants on repository default private in app.ini

* fix fmt
Ethan Koenig 3c1b1ca78e Fix error message sanitiziation ()
Ethan Koenig 513375c429 Make URL scheme unambiguous ()
* Make URL scheme unambiguous

Redirect old routes to new routes

* Fix redirects to new URL scheme, and update template

* Fix branches/_new endpoints, and update integration test
Ethan Koenig b689bb6180 Webhooks for repo creation/deletion ()
* Webhooks for repo creation/deletion

* add createHookTask

* Add handles for GetSlackPayload and GetDiscordPayload
Ethan Koenig ff2464c87d Fix renaming bug ()
Jonas Östanbäck 7b907ed348 Rename RepoCreationNum -> MaxCreationLimit ()
Jonas Östanbäck 85a7396525 Add error direclty when user tries to create new repo and limit already hit ()
Fabian Zaremba f1d2f16b54 Add notice that LFS mirroring is not supported ()
* Add notice that LFS mirroring is not supported

* Drop German translation
Lunny Xiao ec87a75c00 golint fixed for modules/auth
Lunny Xiao 94da472717 Golint fixed for modules/setting ()
* golint fixed for modules/setting

* typo fixed and renamed UNIXSOCKET to UnixSocket
Thomas Boerger b6b616b336 Merge pull request from Bwko/feature/short-hash-download
Added short-hash support to downloads
Bwko ff0d1bd602 Added short-hash support to downloads
Lunny Xiao 3917ed45de golint fixed for routers ()
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io ()
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
Sandro Santilli 6e4252dad4 Replace gogits/git-module dependency with go-gitea/git ()
* Replace gogits/git-module dependency with go-gitea/git

Fixes 

* Remove git alias for git module import (not needed)
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Unknwon 94392a7af3 Fix empty repository panic on send test webhook
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon 514382e2eb Rename module: middleware -> context
Marin Jankovski 1314ba219e Updated and created were appended with _unix. Fresh databases have only the newly named fields.
Kim "BKC" Carlbäcker a3eab8185d Admins are allowed to create repos for arbitrary Orgs
ddelpero 7655337a1f Update repo.go
Release download file name doesn't include tag number 
Download: Changed to use refName instead of commit.ID for downloaded file name
Unknwon e0f0f72a36 disallow access of some pages for empty repo
Unknwon a49af93faf APIs: Users Followers
- User profile un/follow
- List user's followers/following
Unknwon 19423957b1 rename import path
Unknwon 79dcd7ee6e able to identify git version on Windows
Unknwon 2a0bb1fa90 Limit repo creation
Unknwon 9a2e43bff2 move out git module and send push hook
Unknwon b8d48bdb62 Add "New Mirror" button on Dashboard
Unknwon 120cd4e471 Better mirror repo management
Unknwon 6a66e5fc98 better error message
Unknwon c0b0ce7b1a more general rule to detect error
Unknwon b55499d039 go vet and fix
Unknwon 3a81fdf092 rename fields
Unknwon 6f0a41b8b2 Allow local import only for admin users
Unknwon 022820103d allow forcing all private repos
Unknwon cc83043edc minor fix on template
Unknwon 3d9b98fae4 order owners list by last changed time