aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-101-2/+51
|
* Load pr Issue Poster on API too (#11033)65432020-04-101-0/+4
|
* Add Get/Update for api/v1/user/applications/oauth2 (#11008)Dan Molik2020-04-094-4/+214
| | | | | | | Add api methods for getting and updating user oauth2 applications. Signed-off-by: Dan Molik <dan@danmolik.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add git hook tooltip (#11030)John Olheiser2020-04-092-1/+2
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Match arc-green code tag color to code blocks (#11023)silverwind2020-04-091-1/+1
| | | | Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* ui:Add flash notify for email preference seting success (#11027)赵智超2020-04-092-0/+2
| | | | | | | | | | | | | * Add flash notify for email preference seting success Signed-off-by: a1012112796 <1012112796@qq.com> * add review suggest changes Co-authored-by: Lauris BH <lauris@nix.lv> Co-Authored-By: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv>
* Handle yaml frontmatter (#11016)zeripath2020-04-0910-0/+422
| | | | | | | | Add goldmark-meta to render yaml frontmatter as a table Fix #5377 Signed-off-by: Andrew Thornton <art27@cantab.net>
* integrations: deprecate HeaderMaps (#11018)Lars Lehtonen2020-04-081-3/+3
|
* Fix forked repo has no icon and language stat. (#10791)L0veSunshine2020-04-084-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update header.tmpl * Update _repository.less * Update pull.go * Update indexer.go * Update pull.go * Update pull.go * Update indexer.go * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat Thanks the advice from lunny and 6543. * fix forked repo doesn't have language stat Modified as suggested by 6543. * fix forked repo doesn't have language stat simplify the function. * fix forked repo doesn't have language stat update the indexer after the loop Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
* [suggest] change merge strategy: do not check write access if user in ↵j.yao.SUSE2020-04-083-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | merge white list (#10951) * [suggest] change merge strategy: do not check write access if user in merge white list #10935 (cherry picked from commit ba74fc6389dfcad03c273441a49b54e4d38c86ee) * fix NPE * Fix cross compile (#10952) * Fix cross compile * Add test for cross compile * Fix drone * Fix drone * Also prevent CC environment not to generate Co-authored-by: zeripath <art27@cantab.net> * fix merge box icon color bug (#10974) that because need some space beturn ``text`` and color defines Signed-off-by: a1012112796 <1012112796@qq.com> * [skip ci] Updated translations via Crowdin * Allow X in addition to x in tasks (#10979) Signed-off-by: Andrew Thornton <art27@cantab.net> * remove api: merge reqRepoWriter Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 赵智超 <1012112796@qq.com> Co-authored-by: GiteaBot <teabot@gitea.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Return error for authorized_keys and mergebase problems (#10990)zeripath2020-04-081-1/+4
| | | | | Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [API] Get a single commit via Ref (#10915)65432020-04-077-32/+171
| | | | | | | | | * GET /repos/:owner/:repo/commits/:ref * add Validation Checks * Fix & Extend TEST * add two new tast cases
* Automatically remove Watches, Assignments, etc if user loses access due to ↵65432020-04-074-13/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | being removed as collaborator or from a team (#10997) * remove a user from being assigned to any issue/PR if (s)he is removed as a collaborator * fix gender specific comment * do not remove users that still have access to the repo if they are a member of a team that can access the repo * add context to errors * updates * incorporate review fixes * Update models/repo_collaboration.go Co-Authored-By: 6543 <6543@obermui.de> * Update models/repo_collaboration.go Co-Authored-By: 6543 <6543@obermui.de> * Fix Rebase Relict * Fix & Impruve * use xorm builder * all in one session * generalize reconsiderIssueAssignees * Only Unwatch if have no access anymore * prepare for reuse * Same things if remove User from Team * fix lint * let mysql take time to react * add description * CI.restart() * CI.restart() Co-authored-by: Lanre Adelowo <yo@lanre.wtf> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* upgrade to most recent bluemonday (#11007)techknowlogick2020-04-0750-296/+4973
| | | | | | | | | | | * upgrade to most recent bluemonday * make vendor * update tests for bluemonday * update tests for bluemonday * update tests for bluemonday