Commit Graph

617 Commits

Author SHA1 Message Date
GiteaBot 4ad65bb89b [skip ci] Updated translations via Crowdin 2019-04-11 20:21:44 +00:00
GiteaBot 346036d47f [skip ci] Updated translations via Crowdin 2019-04-11 08:35:26 +00:00
zeripath 89cc7c646d
Prevent server 500 on compare branches with no common history (#6555)
* Prevent 500 if there is no common mergebase
* Prevent creation of PR with no history
2019-04-09 21:45:58 +01:00
GiteaBot d1b8840bd8 [skip ci] Updated translations via Crowdin 2019-04-06 18:30:54 +00:00
GiteaBot 8fcbfa7df9 [skip ci] Updated translations via Crowdin 2019-04-04 07:55:02 +00:00
GiteaBot 60ba903a57 [skip ci] Updated translations via Crowdin 2019-04-02 15:48:05 +00:00
zeripath 704da08fdc
Better logging (#6038) (#6095)
* Panic don't fatal on create new logger

Fixes #5854

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
2019-04-02 08:48:31 +01:00
GiteaBot 5c4b96188c [skip ci] Updated translations via Crowdin 2019-04-01 15:30:21 +00:00
GiteaBot 01589b9eed [skip ci] Updated translations via Crowdin 2019-03-28 18:42:28 +00:00
oscar.lofwenhamn 2019983e77 Make "Ghost" not link to 404 page (#6410)
* Make Ghost not link to 404 page

* Make correct localization label show

* Create and use GetLastEventLabelFake for when a Ghost user has made the action, thus not linking to a user profile
* Add corresponding _fake entries to locale_en-US

* Make Ghost avatar not link to 404 page

* Make Ghost on milestone_issues not link to 404 page
2019-03-27 18:22:39 -04:00
GiteaBot b48be1958c [skip ci] Updated translations via Crowdin 2019-03-22 15:41:16 +00:00
GiteaBot 6d345e00e6 [skip ci] Updated translations via Crowdin 2019-03-21 01:40:56 +00:00
GiteaBot 75601a8cbc [skip ci] Updated translations via Crowdin 2019-03-20 16:41:13 +00:00
mrsdizzie f125330fcf Include more variables on admin/config page (#6378)
Include the current CustomPath location in the admin section and also
display GITEA_WORK_DIR and/or GITEA_CUSTOM env var if they are set.

Right now there is no easy way to see this information, and if you try
and help most users they won't be able to tell you anything about these
values -- just that their custom template isn't working, files aren't in
the right place, etc... Now you can see all paths and if they were set
by ENV or not.
2019-03-19 18:40:13 -04:00
GiteaBot 359d3ed01d [skip ci] Updated translations via Crowdin 2019-03-19 21:04:40 +00:00
GiteaBot f7f2f12b68 [skip ci] Updated translations via Crowdin 2019-03-19 06:26:55 +00:00
Russell Aunger b34996a629 Implement Default Webhooks (#4299)
Partially implement #770.
Add "Default Webhooks" page in site admin UI.
Persist to the existing webhooks table, but store with RepoID=0 and OrgID=0.
Upon repo creation, copy the set of default webhooks into the new repo.
2019-03-18 22:33:20 -04:00
techknowlogick d1c982cb73
Add bio field for user (#6113)
Fix #4339
2019-03-18 22:28:10 -04:00
GiteaBot 82fbc82b63 [skip ci] Updated translations via Crowdin 2019-03-18 12:51:30 +00:00
GiteaBot 1155f1b02d [skip ci] Updated translations via Crowdin 2019-03-17 19:20:28 +00:00
GiteaBot 7c205607b5 [skip ci] Updated translations via Crowdin 2019-03-11 11:37:48 +00:00
GiteaBot e0eb6514d2 [skip ci] Updated translations via Crowdin 2019-03-10 21:58:54 +00:00
GiteaBot e836b8869b [skip ci] Updated translations via Crowdin 2019-03-09 21:18:31 +00:00
GiteaBot f7ffb190c6 [skip ci] Updated translations via Crowdin 2019-03-08 20:28:33 +00:00
GiteaBot 062de8e86f [skip ci] Updated translations via Crowdin 2019-03-08 17:43:26 +00:00
GiteaBot 489419c330 [skip ci] Updated translations via Crowdin 2019-03-08 16:45:46 +00:00
Jonas Franz e777c6bdc6 Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
GiteaBot 01bd1fcd33 [skip ci] Updated translations via Crowdin 2019-03-07 19:16:42 +00:00
GiteaBot ad86b843e1 [skip ci] Updated translations via Crowdin 2019-03-06 00:50:36 +00:00
GiteaBot 6460cff222 [skip ci] Updated translations via Crowdin 2019-03-05 20:18:01 +00:00
stevegt b257e0456b Add ability to sort issues by due date (#6206) (#6244)
Signed-off-by: Steve Traugott <stevegt@t7a.org>
2019-03-05 09:39:41 -05:00
GiteaBot afdc0ca41d [skip ci] Updated translations via Crowdin 2019-03-01 20:41:52 +00:00
GiteaBot 1cf3fc3bc5 [skip ci] Updated translations via Crowdin 2019-02-28 08:04:31 +00:00
GiteaBot a1214978b3 [skip ci] Updated translations via Crowdin 2019-02-27 16:58:32 +00:00
GiteaBot b03d780ccb [skip ci] Updated translations via Crowdin 2019-02-26 23:10:22 +00:00
GiteaBot 795f6e04ad [skip ci] Updated translations via Crowdin 2019-02-25 10:39:39 +00:00
GiteaBot eea1155afe [skip ci] Updated translations via Crowdin 2019-02-19 23:12:29 +00:00
GiteaBot 2982413f8d [skip ci] Updated translations via Crowdin 2019-02-19 19:28:43 +00:00
GiteaBot b79820f610 [skip ci] Updated translations via Crowdin 2019-02-18 20:57:13 +00:00
Lanre Adelowo 44114b38e6 Implement "conversation lock" for issue comments (#5073) 2019-02-18 22:55:04 +02:00
Rémy Boulanouar 64ce159a6e Allow to set organization visibility (public, internal, private) (#1763) 2019-02-18 18:00:27 +02:00
GiteaBot ae3a913122 [skip ci] Updated translations via Crowdin 2019-02-18 12:37:04 +00:00
GiteaBot 8d3bb86e20 [skip ci] Updated translations via Crowdin 2019-02-17 05:46:51 +00:00
John Olheiser 0b72c00fad Allow labels to contain emoji (#6063)
* Add emoji to labels
Minor cleanup of tribute code in footer.tmpl

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

* Quick find/replace in other i18n files containing label translations

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

* Revert "Quick find/replace in other i18n files containing label translations"

This reverts commit ec3e1a3a1775989301bb2c1cd08e8871b317688d.

* Add style to overwrite emoji height in labels

* Revert Makefile change that makes Windows work
2019-02-16 19:33:09 +02:00
GiteaBot 7ae59567a2 [skip ci] Updated translations via Crowdin 2019-02-14 18:23:25 +00:00
GiteaBot 7a72aa623e [skip ci] Updated translations via Crowdin 2019-02-13 15:47:39 +00:00
zeripath 2a03e96bce
Allow markdown files to read from the LFS (#5787)
This PR makes it possible for the markdown renderer to render images and media straight from the LFS.

Fix #5746

Signed-off-by: Andrew Thornton [art27@cantab.net](mailto:art27@cantab.net)
2019-02-12 15:09:43 +00:00
GiteaBot 48a9025346 [skip ci] Updated translations via Crowdin 2019-02-12 08:40:40 +00:00
GiteaBot baffea1ddb [skip ci] Updated translations via Crowdin 2019-02-11 17:12:45 +00:00
Lanre Adelowo 9d8178b3ac Add option to close issues via commit on a non master branch (#5992)
* fixes #5957

* add tests to make sure config option is respected

* use already defined struct

* - use migration to make the flag repo wide not for the entire gitea instance
Also note that the config value can still be set so as to be able to control the value for new repositories that are to be created

- fix copy/paste error in copyright header year and rearrange import

- use repo config instead of server config value to determine if a commit should close an issue

- update testsuite

* use global config only when creating a new repository

* allow repo admin toggle feature via UI

* fix typo and improve testcase

* fix fixtures

* add DEFAULT prefix to config value

* fix test
2019-02-10 21:27:19 +02:00