summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use templates for issue e-mail subject and body (#8329)guillep2k2019-11-0713-161/+780
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add template capability for issue mail subject * Remove test string * Fix trim subject length * Add comment to template and run make fmt * Add information for the template * Rename defaultMailSubject() to fallbackMailSubject() * General rewrite of the mail template code * Fix .Doer name * Use text/template for subject instead of html * Fix subject Re: prefix * Fix mail tests * Fix static templates * [skip ci] Updated translations via Crowdin * Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528) * Expose db.SetMaxOpenConns and allow other dbs to set their connection params * Add note about port exhaustion Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Prevent .code-view from overriding font on icon fonts (#8614) * Correct some outdated statements in the contributing guidelines (#8612) * More information for drone-cli in CONTRIBUTING.md * Increases the version of drone-cli to 1.2.0 * Adds a note for the Docker Toolbox on Windows Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Fix the url for the blog repository (now on gitea.com) Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Remove TrN due to lack of lang context * Redo templates to match previous code * Fix extra character in template * Unify PR & Issue tempaltes, fix format * Remove default subject * Add template tests * Fix template * Remove replaced function * Provide User as models.User for better consistency * Add docs * Fix doc inaccuracies, improve examples * Change mail footer to math AppName * Add test for mail subject/body template separation * Add support for code review comments * Update docs/content/doc/advanced/mail-templates-us.md Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
* Theme arc-green: reverse heatmap colors (#8840)Damien Pollet2019-11-062-1/+32
| | | | | | | | | | | | | | * Theme arc-green: reverse heatmap colors This uses the same colors as the updated palette in the base theme. See #8709 and #5864, in particular [my comment showing the problem](https://github.com/go-gitea/gitea/issues/5864#issuecomment-462334171) * Rebuild CSS * Use link color as hot, interpolate between hot and cold colors * Use color from a:hover
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-062-3/+12
|
* Split sendCreateCommentAction as two parts, one for update comment related ↵Lunny Xiao2019-11-062-30/+48
| | | | | | | | informations, another for actions (#8784) * Split sendCreateCommentAction as two parts, one for update comment related informations, another for actions * fix lint
* Add team option to grant rights for all organization repositories (#8688)David Svantesson2019-11-0617-75/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add field IsAllRepositories to team * Add AllRepositories to team UI * Manage team with access to all repositories * Add field IsAllRepositories to team API * put backticks around table/column names * rename IsAllRepositories to IncludesAllRepositories * do not reload slice if already loaded * add repo to teams with access to all repositories when changing repo owner * improve tests for teams with access to all repositories * Merge branch 'master' * Change code for adding all repositories Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * fmt after merge * Change code in API EditTeam similar to EditTeamPost web interface Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Clarify that all repositories will be added Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * All repositories option under Permissions headline * New setting group 'Repository access' * Move check IncludeAllRepositories to removeRepository. * Revert "Move check IncludeAllRepositories to removeRepository." and add comment instead. This reverts commit 753b7d205be260b8be465b5291a02975a81f3093. * Clarify help text what options do.
* Move release webhook to notification (#8817)Lunny Xiao2019-11-062-41/+35
| | | | | | | | | | * Move release webhook to notification * Extract release webhook method * fix bug * fix import
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-062-0/+24
|
* Move repofiles webhooks to notification (#8807)Lunny Xiao2019-11-065-68/+77
|
* Add migrate command to docs (#8842)John Olheiser2019-11-052-0/+11
| | | | | | | | | | | | | | | | | | * Add migrate command to docs Signed-off-by: jolheiser <john.olheiser@gmail.com> * Link to CLI Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify idempotence Signed-off-by: jolheiser <john.olheiser@gmail.com> * Sneak in convert command Signed-off-by: jolheiser <john.olheiser@gmail.com>
* update docs to latest version (#8845)techknowlogick2019-11-051-1/+1
|
* Fix to close opened io resources as soon as not needed (#8839)Lauris BH2019-11-051-33/+39
| | | | | | * Fix to close opened io resources as soon as not needed * Remove unneeded err checks
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-052-0/+6
|
* Move pull webhook to notification (#8805)Lunny Xiao2019-11-057-70/+83
| | | | | | * Move pull webhook to notification * fix fmt
* Update go-org to optimize code (#8824)Lauris BH2019-11-0519-113/+4824
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-051-7/+12
|
* Fix (open/closed) issue count when label excluded (#8815)jaqra2019-11-051-2/+6
| | | | | | * Fix (open/closed) issue count when label excluded * Use capital sql keywords
* Add additional periods to activity page (#8829)Lauris BH2019-11-053-0/+18
|
* README: Update Screenshots and Badges in ZH (#8813)65432019-11-042-14/+13
| | | | | | | | | | | | | | * use relative instead of absolute paths * update badges of ZH readme * update screenshots * use <style> for table * remove useles stype * absolute paths for images
* Fix new user form for non-local users (#8826)Lauris BH2019-11-042-10/+12
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-041-1/+1
|
* Fix: remove duplicated signed commit icons (#8820)Wenxuan Zhao2019-11-041-33/+32
| | | Signed-off-by: Wenxuan Zhao <viz@linux.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-041-0/+13
|
* Explicity indicate the socket unit to use the service unit "gitea.service" ↵Ramon Fischer2019-11-041-2/+3
| | | | | | | | | | | | (#8804) * rename socket file, make example more precise, use long parameter name * correct path * use the correct path to the configuration file according to the documentation * rename the socket unit back to 'gitea.main.socket', explicitly indicate that the socket unit should use the service file 'gitea.service'
* Move more webhook codes from models to webhook module (#8802)Lunny Xiao2019-11-0312-135/+145
| | | | * Move more webhook codes from models to webhook module
* Move actions to notification (#8785)Lunny Xiao2019-11-035-37/+118
|
* Fix API deadline removal (#8759)David Svantesson2019-11-036-12/+34
| | | | | | | | | | * Handle deadline is zero (to remove deadline) * Better API documentation for issue deadline. * Add parameter to unset due date. * Update pull edit API comment
* Fix SSH2 conditonal in key parsing code (#8806)mrsdizzie2019-11-032-1/+14
| | | | | | | | | Avoid out of bounds error by using strings.HasPrefix to check for starting SSH2 text rather than assuming user input has at least 31 characters. Add tests for bad input as well. Fixes #8800
* Move push commits events to notification (#8783)Lunny Xiao2019-11-036-36/+41
| | | | | | | | * Move push commits events to notification * Update modules/notification/base/null.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [Fix] Checkbox at RepoSettings Protected Branch (#8799)65432019-11-031-1/+1
| | | | | | * add missing "d" * CI.redo()
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-021-0/+1
|
* FIX download diff/patch from commit (#8792)65432019-11-021-2/+7
| | | | | | | | | | | | | | * send fix * restart CI * us Commit only when available * CI.redo() * more specific if statement Co-Authored-By: mrsdizzie <info@mrsdizzie.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-021-0/+1
|
* Add API for Issue set Subscription (#8729)65432019-11-027-3/+425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add issue subscriber API * subscribers return []user.APIFormat * add comments * more meaningfull description * without "reqToken()" api works ... * should be still secure beause ctx.user has to be there or nothing will hapen * FIX: getIssueWatchers() get only aktive suscriber * add return avter error on right position * Revert "FIX: getIssueWatchers() get only aktive suscriber" This reverts commit 5eca9291858a821981992b0aaa38cef610d84bca. * Update routers/api/v1/repo/issue.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * test go linter again * update swagger * GetIssueWatchers -> GetIssueSubscribers part one Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * GetIssueWatchers -> GetIssueSubscribers part two * Revert "test go linter again" This reverts commit bab12356227e44334de113b76f12099de0b8aaa6. * change description for unsubscribe too * golangci-lint timeout avter 5min * move issueSubscription to seperate file * dont create black entitys * use IsWatching until refactoring * Update License Info * better swagger description * Update .golangci.yml because functions moved from issue.go to issue_subscription.go * add IssueWatchList type * batch tasks * use e Engien * add error handling * error should be the last type when returning multiple items * short version * reurn empy UserList instead of nil
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-021-0/+2
|
* fix 500 when edit hook (#8782)Lunny Xiao2019-11-021-0/+5
|
* Prevent upload (overwrite) of lfs locked file (#8769)David Svantesson2019-11-024-8/+40
| | | | | | | | | | | | * Check if file is locked on upload file commit. * Better user message if file is locked. * Check lfs lock before creating temporary repository. fix some errors. * move lines * Add comment that enabled setting is checked.
* On windows set core.longpaths true (#8776)zeripath2019-11-021-0/+8
|
* Move issue milestone assign to issue service and move webhook to ↵Lunny Xiao2019-11-029-68/+70
| | | | notification (#8780)
* Rename HookQueue to hookQueue (#8778)Lunny Xiao2019-11-0213-65/+19
| | | | | | * Rename HookQueue to hookQueue * fix lint
* Move labels webhooks to notification (#8749)Lunny Xiao2019-11-022-52/+50
| | | | | | * Move webhooks to notification * fix notification
* Project files table style update (#8757)May2019-11-021-4/+4
| | | | | | | | | | | | | | * add marking to title_wip_desc Signed-off-by: May <themaymeow@gmail.com> * update table styling Signed-off-by: May <themaymeow@gmail.com> * Update file table column width to 4:9:3 Signed-off-by: May <themaymeow@gmail.com>
* Move webhook to a standalone package under modules (#8747)Lunny Xiao2019-11-0120-478/+570
| | | | | | | | * Move webhook to a standalone package under modules * fix test * fix comments
* Unifies commit list in repository commit table and wiki revision page (#7907)Mario Lubenka2019-11-014-121/+101
| | | Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-011-0/+1
|
* doc:增加附件`ALLOWED_TYPES`取得MIME type的方法 (#8770)cnphpbb2019-11-011-0/+14
|
* Fix commit expand button to not go to commit link (#8745)Lauris BH2019-11-012-15/+29
| | | | | | | | | | * Fix commit expand button to not go to commit link * Fix message rendering to have correct HTML in result * Fix check for empty commit message * Code optimization
* Allow to merge if file path contains " or \ (#8629)Ilya2019-11-011-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * if a filename in a repository contains " or \ the owner can't merge pull request with this files because "git diff-tree" adds double quotes to that filepath example: filepath is ab"cd but "git diff-tree" returns "ab\"cd" now, when the owner click "Merge Pull Request" button the server returns 500 this commit fix it Signed-off-by: Ilya Pavlov <ilux@cpan.org> * add -z option to getDiffTree escape spec symbols for sparse-checkout Signed-off-by: Ilya Pavlov <ilux@cpan.org> * go fmt Signed-off-by: Ilya Pavlov <ilux@cpan.org> * typo Signed-off-by: Ilya Pavlov <ilux@cpan.org> * escape '\' escape all spaces and '!' * use regexp.ReplaceAllString() Signed-off-by: Ilya Pavlov <ilux@cpan.org> * strings.ReplaceAll was added in go 1.12 Signed-off-by: Ilya Pavlov <ilux@cpan.org> * add '\' to regexp.MustCompile Signed-off-by: Ilya Pavlov <ilux@cpan.org>
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-311-0/+4
|
* mark review comment as invalidated when file is deleted (#8751)succcubbus2019-10-311-0/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-311-0/+7
|