summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Allow cross-repository dependencies on issues (#7901)Brad Albright2019-10-3122-65/+354
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * in progress changes for #7405, added ability to add cross-repo dependencies * removed unused repolink var * fixed query that was breaking ci tests; fixed check in issue dependency add so that the id of the issue and dependency is checked rather than the indexes * reverted removal of string in local files becasue these are done via crowdin, not updated manually * removed 'Select("issue.*")' from getBlockedByDependencies and getBlockingDependencies based on comments in PR review * changed getBlockedByDependencies and getBlockingDependencies to use a more xorm-like query, also updated the sidebar as a result * simplified the getBlockingDependencies and getBlockedByDependencies methods; changed the sidebar to show the dependencies in a different format where you can see the name of the repository * made some changes to the issue view in the dependencies (issue name on top, repo full name on separate line). Change view of issue in the dependency search results (also showing the full repo name on separate line) * replace call to FindUserAccessibleRepoIDs with SearchRepositoryByName. The former was hardcoded to use isPrivate = false on the repo search, but this code needed it to be true. The SearchRepositoryByName method is used more in the code including on the user's dashboard * some more tweaks to the layout of the issues when showing dependencies and in the search box when you add new dependencies * added Name to the RepositoryMeta struct * updated swagger doc * fixed total count for link header on SearchIssues * fixed indentation * fixed aligment of remove icon on dependencies in issue sidebar * removed unnecessary nil check (unnecessary because issue.loadRepo is called prior to this block) * reverting .css change, somehow missed or forgot that less is used * updated less file and generated css; updated sidebar template with styles to line up delete and issue index * added ordering to the blocked by/depends on queries * fixed sorting in issue dependency search and the depends on/blocks views to show issues from the current repo first, then by created date descending; added a "all cross repository dependencies" setting to allow this feature to be turned off, if turned off, the issue dependency search will work the way it did before (restricted to the current repository) * re-applied my swagger changes after merge * fixed split string condition in issue search * changed ALLOW_CROSS_REPOSITORY_DEPENDENCIES description to sound more global than just the issue dependency search; returning 400 in the cross repo issue search api method if not enabled; fixed bug where the issue count did not respect the state parameter * when adding a dependency to an issue, added a check to make sure the issue and dependency are in the same repo if cross repo dependencies is not enabled * updated sortIssuesSession call in PullRequests, another commit moved this method from pull.go to pull_list.go so I had to re-apply my change here * fixed incorrect setting of user id parameter in search repos call
* Rewrite markdown rendering to blackfriday v2 and rewrite orgmode rendering ↵Lauris BH2019-10-3155-3730/+5767
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to go-org (#8560) * Rewrite markdown rendering to blackfriday v2.0 * Fix style * Fix go mod with golang 1.13 * Fix blackfriday v2 import * Inital orgmode renderer migration to go-org * Vendor go-org dependency * Ignore errors :/ * Update go-org to latest version * Update test * Fix go-org test * Remove unneeded code * Fix comments * Fix markdown test * Fix blackfriday regression rendering HTML block
* Changelog 1.9.5 (#8753) (#8756) (#8758)John Olheiser2019-10-301-0/+24
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-301-1/+18
|
* Move pull list code to a seperate file (#8748)Lunny Xiao2019-10-302-211/+224
|
* Changelog 1.10.0-rc2 (#8750) (#8754)John Olheiser2019-10-301-0/+26
| | | | | | * 1.10.0-rc2 Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-Authored-By: jaqra <48099350+jaqra@users.noreply.github.com>
* Adjust the must-change-password help (#8755)zeripath2019-10-301-1/+1
|
* Update licenses (#8752)zeripath2019-10-30111-503/+303
| | | Replaces #8182
* add __debug_bin file to gitignore (#8740)jaqra2019-10-301-0/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-301-0/+1
|
* Configurable close and reopen keywords for PRs (#8120)guillep2k2019-10-305-76/+198
| | | | | | | | | | * Add settings for CloseKeywords and ReopenKeywords * Fix and improve tests * Use sync.Once() for initialization * Fix unintended exported function
* Move webhook codes from service to webhook notification (#8712)Lunny Xiao2019-10-305-83/+94
| | | | | | | | * Move webhook codes from service to webhook notification * move deletecomment webhook to notifications * fix notification
* Move issue change content from models to service (#8711)Lunny Xiao2019-10-304-43/+63
| | | | | | * Move issue change content from models to service * fix lint
* [skip ci] Updated translations via CrowdinGiteaBot2019-10-301-0/+20
|
* Create PR on Current Repository by Default (#8670)Benno2019-10-303-2/+35
| | | | | | | | | | | | | | * 'update' * Send push tag event when release created * send tag create event while release created in UI * update to go v1.13 * fix gofmt error * fix #8576 create pull request on current repository by default
* Respect LFS File Lock on UI (#8719)Benno2019-10-295-6/+61
| | | | | | | | * update #8687 respect file locking * upate #8687 Add LFS locker information * update #8719 enhance coding style and return error
* apply exclude label on milestone issue list (#8739)jaqra2019-10-291-3/+4
| | | | | | * apply exclude label on milestone issue list * remove __debug.bin file