summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Send 404 immediately for known public requests (#11117)silverwind2020-04-182-7/+30
| | | | | | | Instead of further handling requests to public which causes issues like #11088, immediately terminate requests to directories js, css, fomantic if no file is found which is checked against a hardcoded list. Maybe there is a way to retrieve the top-level entries below public in a dynamic fashion. I also added fomantic to the reserved usernames and sorted the list. Fixes: #11088
* Avoid 0 new commits messages to be send (#11082)Cornel2020-04-181-7/+1
| | | Fixes #10498
* Add single release page and latest redirect (#11102)John Olheiser2020-04-186-2/+96
| | | | | | | | | | | | | | | * Add single release and latest release routes Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update API and move latest search to models Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix swagger Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add a way to mark Conversation (code comment) resolved (#11037)赵智超2020-04-1813-9/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a way to mark Conversation (code comment) resolved mark Conversation is a way to mark a Conversation is stale or be solved. when it's marked as stale, will be hided like stale. all Pull Request writer , Offical Reviewers and poster can add or remove Conversation resolved mark. Signed-off-by: a1012112796 <1012112796@qq.com> * fix lint * Apply suggestions from code review * Add ResolveDoer * fix ui Co-Authored-By: Lauris BH <lauris@nix.lv> Co-Authored-By: 6543 <6543@obermui.de> * change IsResolved to an function Add permission check in UpdateResolveConversation * Apply suggestions from code review * change return error for permisson check * add default message for deleted user * get issue message from comment * add migration for ``ResolveDoerID`` column another change: * block mark pending review as resolved because it's not necessary Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> * change button color * resolve button size * fix code style * remove unusefull code Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add X-Total-Count on /repos/{owner]/{repo}/pulls API (#11113)CirnoT2020-04-181-0/+1
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-181-0/+7
|
* Refresh codemirror on show pull comment tab (#11100)zeripath2020-04-181-0/+1
| | | | | | | | | Fix #10975 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [BugFix] remove nil inserts in models (#11096)65432020-04-172-17/+32
| | | | | | | | | | | | | | | | | | | * Fix InsertReleases Nil Insert on Attachments * FIX "No element on slice when insert" & smal refactor * again * impruve * rm useles newline * Apply suggestions from code review Co-Authored-By: zeripath <art27@cantab.net> * process insert as a whole Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-171-1/+1
|
* ui: fix status label on branches list vertical alignment (#11109)赵智超2020-04-174-7/+7
| | | | | change status icon for merged PR to git-merge Signed-off-by: a1012112796 <1012112796@qq.com>
* Prevent merge of outdated PRs on protected branches (#11012)65432020-04-1615-5/+81
| | | | | | | | | | | | | | | | * Block PR on Outdated Branch * finalize * cleanup * fix typo and sentences thanks @guillep2k Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-1614-14/+0
|
* Fix and simplify some tmpl conditions (#11080)guillep2k2020-04-166-7/+7
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-161-16/+483
|
* Add missing commit states to PR checks template (#11085)CirnoT2020-04-162-1/+7
| | | | | | | | | * Add missing commit states to PR checks template * Add separate translation strings for warning and error * Fix failure status string * Revert accidental change with whitespace
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-163-27/+330
|
* Remove nonexistant serviceworker entries (#11091)silverwind2020-04-162-3/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-161-3/+145
|
* [BugFix] ReviewCount: GetApprovalCounts func sorted wrong (#11086)65432020-04-161-13/+11
| | | | | * FIX by simplify * code reformat and optimize
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-151-2/+260
|
* Fix merge dialog on protected branch with missing required statuses (#11074)65432020-04-153-6/+10
| | | | | It is possible for misconfigured protected branches to have required status checks that are not in any of the current statuses: Pending, Success, Error, Failure, or Warning - presumably because the CI has not contacted us as yet. Fix #10636 by adding case: missing StatusChecks when these are missing
* Align review-item svg octicons (#11065)CirnoT2020-04-151-1/+0
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-151-0/+2
|
* Migrate to go-enry new version (#10906)Lauris BH2020-04-1565-102275/+111848
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-151-1/+101
|
* document 404 responce and meaning (#11073)65432020-04-152-0/+5
|
* Contents API should return 404 on not exist (#10323)zeripath2020-04-155-31/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Return 404 on not exist * swagger update and use git.IsErrNotExist * Handle delete too * Handle delete too x2 * Fix pr 10323 (#3) * fix TESTS * leafe a note for fututre * placate golangci-lint Signed-off-by: Andrew Thornton <art27@cantab.net> * Update integrations/api_repo_file_delete_test.go Co-Authored-By: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add translation head on docs site (#11063)Lunny Xiao2020-04-151-0/+24
| | | Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Replace references to cron.update_migration_post_id with ↵Kristian Antonsen2020-04-153-3/+3
| | | | | | | cron.update_migration_poster_id in docs (#11068) Across several files, references to cron.update_migration_post_id are made, although the actual setting is called cron.update_migration_poster_id according to modules/setting/cron.go (https://github.com/go-gitea/gitea/blob/10e2f291442fdc7efc31c02f5ffcba79a36db9ac/modules/setting/cron.go#L54). Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Fix Migration 136 (be less aggressive to open pulls missing git files) (#11072)65432020-04-141-6/+0
| | | | | * be less aggressife to open pulls when migrating * remove unused
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-141-1/+101
|
* Remove check on username if AccessToken authentication (#11015)zeripath2020-04-142-35/+10
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix (#11066)65432020-04-141-0/+3
|
* Cache PullRequest Divergence (#10914)65432020-04-147-12/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Cache PullRequest Divergence * only re-calc divergence if AddTestPullRequestTask() is exec * migrate already open pulls * finalize * take care of closed&not-merged+deleted-branch pull requests * fix nil pointer exeption Signed-off-by: 6543 <6543@obermui.de> * try this * no error its a warn * init gitea-repositories-meta * dont use gitDivergence type * CI.restart() * CI.restart() * CI.restart() * CI.restart() * check IsUserAllowedToUpdate independend from CommitsBehind
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-142-6/+124
|
* ui: Change icon on title for merged PR to git-merge (#11064)赵智超2020-04-141-1/+1
| | | Signed-off-by: a1012112796 <1012112796@qq.com>
* Add charset handling to backup/restore doc (#11062)maxm1232020-04-132-2/+2
| | | Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* ui: Add MergePull comment type instead of close for merge PR (#11058)赵智超2020-04-145-4/+21
| | | | | Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix language label vertical alignment (#11061)silverwind2020-04-133-2/+11
| | | Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Reject duplicate AccessToken names (#10994)65432020-04-136-1/+71
| | | | | | | | | | | | | | | | | | | * make sure duplicate token names cannot be used * add check to api routes too * add @lunny s suggestion * fix & don't forget User.ID * AccessTokenByNameExists() return error too * unique token for each test * fix lint Signed-off-by: 6543 <6543@obermui.de> Co-authored-by: Lanre Adelowo <yo@lanre.wtf>
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-131-1/+15
|
* Move syntax highlighting to web worker (#11017)silverwind2020-04-137-17/+83
| | | | | | | | | This should eliminate page freezes when loading big files/diff. `highlightBlock` is needed to preserve existing nodes when highlighting and for that, highlight.js needs access to the DOM API so I added a DOM implementation to make it work, which adds around 300kB to the output file size of the lazy-loaded `highlight.js`. Co-authored-by: Lauris BH <lauris@nix.lv>
* add 'make watch-frontend' and expand docs (#10931)silverwind2020-04-122-2/+25
| | | | | | | | | * add 'make watch-frontend' and expand docs * add bindata note * add .PHONY Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* fix 404 and 500 image size in small size screen (#11043)赵智超2020-04-112-2/+2
| | | | | | | do it by define Semantic UI image class Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Tweak app.ini.sample (#11042)silverwind2020-04-111-3/+3
| | | Few misc tweaks to the sample config
* Fix CreateComment for SQLite and JS click event on Request Review (#11040)赵智超2020-04-112-10/+18
| | | | | | | | | | | | | | | | | | | | | | * fix some bug about Request review * fix ``CreateComment`` wrong using ,it will not work when use Sqlite * fix wrong js click event code , it will send wrong data when it has many choices Signed-off-by: a1012112796 <1012112796@qq.com> * Apply suggestions from code review Co-Authored-By: Lauris BH <lauris@nix.lv> * add getReviewerByIssueIDAndUserID fix wrong conditions check in initIssueComments after #10972 * call CI again Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [Docs] Cross Build Gitea from Source (#10999)Bagas Sanjaya2020-04-111-0/+20
| | | | | | | | | | | | | | | | | | * Add cross-build docs Note that C cross compiler is required for building Gitea with `TAGS`. * Apply suggestion from @mrsdizzie Co-Authored-By: mrsdizzie <info@mrsdizzie.com> * Apply suggestion from @guillep2k Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* [Api] Check Notify (always return json) (#10059)65432020-04-103-15/+11
| | | | | | | * BEAKING: check return status based on struct not httpStatus * update Tests * CI.restart()
* Prettify Timeline (#10972)Sorien2020-04-119-216/+296
| | | Co-authored-by: mrsdizzie <info@mrsdizzie.com>
* remove package code.gitea.io/gitea/modules/git import out of models (#11025)65432020-04-106-205/+206
|