aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Support search operators for commits search (#6479)Mura Li2019-04-1241-21/+687
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support searching commits with prefix syntax For now, support auther: committer: When more than one prefix is supplied is presented, the result is the union. When different prefixes are supplied, the result is the intersection. For example, "author:alice author:bob" => the result is all commits authored by Alice OR Bob "hello committer:alice" => the result is all commits committed by Alice AND has the keyword 'hello' in the message. Note that there should NOT have any space after the colon(:) of the prefix. For example, "author:bill" => correct "author: bill" => wrong * Remove unneeded logging * Add missing files of test repository * Add missing repo_unit entries to test fixtures * Update test cases * Add tooltip for commits search button * Update tooltip text I have no idea about how to format it with line breaks. * Make the usage example more real * Add a test case * Add new options struct for SearchCommits * Prefer len(s) > 0 over s != "" * Add NewSearchCommitsOptions
* fix bug user search API pagesize didn't obey ExplorePagingNum (#6579)Lunny Xiao2019-04-111-3/+0
|
* fix mail notification when close/reopen issue (#6581)Lunny Xiao2019-04-112-7/+30
|
* Fix new repo alignment (#6583)John Olheiser2019-04-112-1/+5
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-112-0/+13
|
* Minor CSS cleanup for the navbar (#6553)silverwind2019-04-112-16/+4
| | | | | * Minor CSS cleanup for the navbar * move height fix to navbar
* Fix race in integration testlogger (#6556)zeripath2019-04-112-0/+23
| | | | | | * Fix race in logger * At testing end drop the reference to the last test.
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-112-1/+5
|
* Allow admin users to set a repositoires visibility to public, even if ↵Matthias Beckert2019-04-112-2/+6
| | | | | FORCE_PRIVATE is to true (#6541) (#6572) Signed-off-by: Matthias Beckert <beckert.matthias@googlemail.com>
* [FIX] Docs: Backup&Restore: fixed rendering + minor fixes (#6569)0x5c2019-04-101-6/+10
| | | | | | | - Fixed a code block inverting the code blocks of the rest of the page - Fixed various markdown syntax errors - Fixed some spelling I could notice Signed-off-by: 0x5c <0x5c.dev@gmail.com>
* Fixes #6514 - New Pull Request on files and pulls pages the same (#6515)Richard Mahn2019-04-091-1/+1
| | | * Fixes #6514 - New Pull Request on files and pulls pages the same
* Prevent server 500 on compare branches with no common history (#6555)zeripath2019-04-094-15/+28
| | | | | * Prevent 500 if there is no common mergebase * Prevent creation of PR with no history
* Add myself to MAINTAINERS (#6554)mrsdizzie2019-04-091-0/+1
|
* wrap the ServerError and NotFound and log from the caller (#6550)zeripath2019-04-091-4/+12
|
* Add username flag in create-user command (#6534)ngourdon2019-04-092-5/+25
| | | | | | | | | | | | * Add username flag in create-user command * Fix the error message * Change name to username on flag of create-user command * Include create-user flags of both versions * delete deprecated example of create-user command
* Render SHA1 links as code blocks (#6546)silverwind2019-04-093-23/+40
|
* Added docker example for backup (#5846)Alexandros Nicolaides2019-04-081-0/+13
| | | | | | | | * Added docker example for backup * Fix using docker command example * Clarify --tempdir as per @lafriks suggestion
* Issue indexer queue redis support (#6218)Lunny Xiao2019-04-0849-36/+11406
| | | | | | | | | | | | | | | | | | * add redis queue * finished indexer redis queue * add redis vendor * fix vet * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: lunny <xiaolunwen@gmail.com> * switch to go mod * Update required changes for new logging func signatures
* Fixes pagination width on mobile view (#5711) (#6532)Mario Lubenka2019-04-083-7/+16
| | | Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Delete local branch if it exists (#6497)John Olheiser2019-04-082-0/+38
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Cleaned permission checks for API -> site admin can now do anything (#6483)Vasek Sraier2019-04-082-30/+77
| | | | | | | | | | | | | | * cleaned permission checks for API -> site admin can now do anything Signed-off-by: Vasek Sraier <git@vakabus.cz> * PR #6483: helper methods moved to context/context.go, added missing return Signed-off-by: Vasek Sraier <git@vakabus.cz> * PR #6483: added documentation to new exported helper functions in context/context.go Signed-off-by: Vasek Sraier <git@vakabus.cz>
* Fixes #6446 - Sort team members and team's repositories (#6525)ngourdon2019-04-071-1/+7
| | | | | | * sort team's repositories by name * sort team members by display name
* Use stricter boundaries for auto-link detection (#6522)mrsdizzie2019-04-073-11/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use stricter boundaries for auto-link detection Currently autolinks use \W for boundary detection which creates many situations of inserting links into places they don't belong (paths, URLs, UUIDs, etc...) This fixes that by replacing \W and only allowing these matches to touch an open paren or bracket (matching what seems to be Github behavior) in addition to whitespace and start of line. Similar for ending boundary as well. Fixes #6149 (and probably others) * Update test Replace incorrect test with a value that is a valid username, based on: "Username should contain only alphanumeric, dash ('-'), underscore ('_') and dot ('.') characters." * Also allow for period at the end Matching Github behavior * Fix email regex to work properly with specificed boundaries Create a specific capture group for email address and then use FindStringSubmatchIndex to allow for non-matching patterns as boundaries. * Add Tests Add tests for new behavior -- including tests for email addresses which were absent before.
* Quieter Integration Tests (#6513)zeripath2019-04-0723-409/+607
| | | | | | | | | | | | | | | | | | | | | | | | * Rename BaseLogger to WriterLogger to help the creation of other providers * Don't export ColorBytes and ResetBytes from ColoredValues * Make integration tests only print logs if they fail * check can color before coloring * I always forget about MSSQL * Oh and use LEVEL in sqlite.ini * Make the test logger log at info - as it means you see the router * Remove empty expected changes * Make the migrations quieter too * Don't display SQL on error - it can be looked at in the file logs if necessary * Fix skip when using onGiteaRun
* UI: Use regular line-height on frontpage entries (#6518)silverwind2019-04-062-4/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-062-1/+20
|
* Improve SHA1 link detection (#6526)silverwind2019-04-062-21/+36
| | | | | | | | This improves the SHA1 link detection to not pick up extraneous non-whitespace characters at the end of the URL. The '.' is a special case handled in code itself because of missing regexp lookahead support. Regex test cases: https://regex101.com/r/xUMlqh/3
* Properly escape release attachment URL (#6512)mrsdizzie2019-04-051-1/+1
| | | | | | Make sure file attachments on a release get a properly escaped URL when linking. Fixes #6506
* Enabled emoji in Hugo (#6521)John Olheiser2019-04-052-1/+2
| | | | | Removed extra asterisks in Docker doc Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Include custom configuration file in dump (#6516)mrsdizzie2019-04-052-1/+10
| | | | | | | When running the dump command, include the specific configuration file provided as part of the backup. Currently we only zip up custom/ and this misses the config file if it is somewhere else, like /etc/gitea/app.ini Fixes #6034
* Add a new Make target for running single integration test (#6500)Mura Li2019-04-041-0/+4
| | | | | | * Add a new Make target for running single integration test * Use # instead of - as the delimiter
* docs: document setup with read-only config (#6348)nodiscc2019-04-042-0/+1
|
* Some logging documentation (#6498)zeripath2019-04-041-0/+396
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-041-0/+10
|
* Make distinction between DisplayName and Username in email templates (#6495)mrsdizzie2019-04-045-11/+12
| | | | | | | | | | | | | | | | | | * Make distinction between DisplayName and Username in email templates Store the actual username in the variable named Username and store the separate DisplayName in another variable. This allows us to access the actual username when we need, which currently fails if a user has set a full name. Fixes #6161 * Use u.Name directly No need for extra function, also change use in all mail sending functions here * Don't include Username when not used
* [docker] drop the bits argument when generating an ed25519 key (#6504)Jakob Ackermann2019-04-041-1/+1
| | | | | | | | | From the man page of ssh-keygen:   Ed25519 keys have a fixed length and the -b flag will be ignored. [skip ci] Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* Show last commit status in pull request lists (#6465)Elias Norberg2019-04-026-0/+144
|
* fix upload attachments (#6481)Lunny Xiao2019-04-027-14/+76
| | | | | | | | * fix upload attachments * add migration for new column uploader_id on table attachment * fix imports sequence
* add make version on gitea version (#6485)Lunny Xiao2019-04-022-9/+18
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-021-0/+10
|
* Add X-Auto-Response-Suppress header to outgoing messages (#6492)mrsdizzie2019-04-021-0/+1
| | | | | | | | | | This is a header used to suggest mail servers not to respond to a message with an auto-responder: https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxcmail/ced68690-498a-4567-9d14-5c01f974d8b1 This header is also used by github and gitlab in outgoing messages. Fixes #6484
* Better logging (#6038) (#6095)zeripath2019-04-02301-8209/+36958
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* fix bug when user login and want to resend register confirmation email (#6482)Lunny Xiao2019-04-022-7/+7
|
* Add ui class to sub_menu to fix style in arc-green (#6477)John Olheiser2019-04-021-2/+2
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-04-011-0/+2
|
* Fies #6468 - Uses space match and adds newline for all sed flavors (#6473)Richard Mahn2019-04-012-3/+5
|
* support custom file name in `gitea dump` command (#6474)glaszig2019-04-012-1/+7
| | | | | | | * support custom file name in `gitea dump` command * simpler approach to handle default dump file name in `gitea dump` command
* fix: avoid multi-clicks when perform oauth2 login (#6467)BetaCat2019-03-312-4/+29
|
* Fix link to Hacking on Gitea on From-Source doc page (#6471)zeripath2019-03-301-1/+1
| | | | | | * fix rel-ref * fixup
* fix typos in docs command-line examples (#6466)Ilya2019-03-291-4/+4
| | | Signed-off-by: Ilya Pavlov <ilux@cpan.org>