summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix wrong num closed issues on repository when close issue via commit ↵Lunny Xiao2020-02-202-7/+19
| | | | | | | | (#10364) (#10380) Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv>
* Reading pull attachments should depend on read UnitTypePullRequests (#10346) ↵guillep2k2020-02-182-2/+6
| | | | | | (#10354) Co-authored-by: zeripath <art27@cantab.net>
* Set max-width on review-box comment box (#10348) (#10353)65432020-02-181-0/+33
| | | | Co-authored-by: zeripath <art27@cantab.net>
* Prevent nil pointer in GetPullRequestCommitStatusState (#10342) (#10344)zeripath2020-02-181-0/+5
| | | | | | | Backport #10344 Ensure that pr.HeadRepo is loaded before using it in GetPullRequestCommitStatusState. Fixes error on merging with successful commit merge statuses.
* Fix status check enable (#10341) (#10343)John Olheiser2020-02-181-1/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Truncate long commit message header (#10301) (#10319)zeripath2020-02-183-3/+40
| | | | | | | | | | | | | * Truncate long commit message header * Fix overflow in view commit table * Use @media less * Further improvements * Fix the commit message on small screens * adjust width of minimal table
* Set the initial commit status to Success otherwise it will always be Pending ↵zeripath2020-02-171-1/+1
| | | | | | | (#10317) (#10318) Backport #10317 The commit status code has a bug whereby setting the initial status to Pending means you can never have the status of Success - it should be set to Success.
* Don't manually replace whitespace during render (#10291) (#10315)mrsdizzie2020-02-172-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't manually replace whitespace during render For historical reasons Gitea manually alters the urlPrefix and replaces a whitespace with a +. This Works for URLs, but we're also passing urlPrefix to git calls and adding the + is breaking the tree path. Goldmark will automatically convert a white space to the proper %20, so we should leave the string as is which lets us pass it to git unmodified and then let Goldmark fix it. Also fixed separate bug in URLJoin I noticed while testing where it will silently discard sections of a path that have # in them (possibly others). We should just escape it first. Fixes 10156 * Escape elems as well * Revert "Escape elems as well" This reverts commit 8bf49596fee6fac4d9da256cd1e90a0ec0183671. * restart ci * remove changes to URLJoin * restart ci Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <matti@mdranta.net>
* Create Changelog for v1.11.1 release (#10286)v1.11.1zeripath2020-02-171-0/+14
| | | | | | | | | | | | | | * Create Changelog * Update CHANGELOG.md Co-Authored-By: techknowlogick <matti@mdranta.net> * Include Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* fix: set explicit POSTGRES_PASSWORD for pgsql on drone CI (#10303)Antoine GIRARD2020-02-161-0/+1
|
* v1.10.4 Changelog (#10294) (#10305)zeripath2020-02-161-0/+13
| | | | | | | * v1.10.4 Changelog * Add backport identifier for #10261 * Update CHANGELOG.md entry for #9884
* make: add release-sources #10295 (#10298)Antoine GIRARD2020-02-161-1/+5
| | | | | | | | * make: add release-sources * make: release-sources exclude .git and make_evidence * fix: skip exclude MAKE_EVIDENCE_DIR not present in 1.11
* Blacklist manifest.json & milestones user (#10292) (#10293)zeripath2020-02-161-0/+2
| | | | | | Fix #10290 Co-authored-by: techknowlogick <matti@mdranta.net>
* Repo name added to automatically generated commit message when mergin… ↵zeripath2020-02-151-1/+10
| | | | | | | | | | | (#9997) (#10285) * Repo name added to automatically generated commit message when merging pull request * As per @lunny Co-authored-by: Shashvat Kedia <sk261@snu.edu.in> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix Workerpool deadlock (#10283) (#10284)zeripath2020-02-152-3/+4
| | | | | * Prevent deadlock on boost * Force a boost in testchannelqueue
* Divide GetIssueStats query in smaller chunks (#10176) (#10282)guillep2k2020-02-152-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | * Divide GetIssueStats query in smaller chunks * Skip chunking if count is low enough * Fix lint * Define maxQueryParameters * Remove absMaxQueryParameters because of lint * Restart CI * Restart CI Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix reply on code review (#10227) (#10257)Lunny Xiao2020-02-132-1/+10
| | | | | | Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
* Stop hanging issue indexer initialisation from preventing shutdown (#10243) ↵zeripath2020-02-121-17/+15
| | | | | | | | (#10249) Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* fix filter label emoji width (#10241) (#10244)jaqra2020-02-121-0/+4
|
* Fix issue sidebar menus having an infinite height (#10240)James Lakin2020-02-111-0/+1
|
* Fix commit between two commits calculation if there is only last commit ↵Lauris BH2020-02-111-1/+1
| | | | (#10225) (#10226)
* Only check for conflicts/merging if the PR has not been merged in the ↵65432020-02-105-35/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interim (#10132) (#10206) * Only check for conflicts/merging if the PR has not been merged in the interim (#10132) * Only check for merging if the PR has not been merged in the interim * fixup! Only check for merging if the PR has not been merged in the interim * Try to fix test failure * Use PR2 not PR1 in tests as PR1 merges automatically * return already merged error * enforce locking * move pullrequest checking to after merge This might improve the chance that the race does not affect us but does not prevent it. * Remove minor race with getting merge commit id move check pr after merge * Remove unnecessary prepareTestEnv - onGiteaRun does this for us * Add information about when merging occuring * More logging Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> * re order Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Changelog 1.11.0 (#10204)v1.11.0John Olheiser2020-02-103-56/+82
| | | | | | | | | | | | | | | | | * Changelog 1.11.0 Signed-off-by: jolheiser <john.olheiser@gmail.com> * Backport snackport Co-Authored-By: techknowlogick <matti@mdranta.net> * Update CHANGELOG.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Fix followers and following tabs in profile (#10202) (#10203)Lauris BH2020-02-096-87/+35
|
* Fix code-expansion arc-green theme bug (#10180) (#10185)65432020-02-081-0/+3
| | | | | | | | | * fix code-expansion theme bug * working solution without important * no new color * the midle
* Allow emoji on review head comments (#10159) (#10174)guillep2k2020-02-071-1/+1
| | | | | | | Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Prevent double waitgroup decrement (#10170) (#10175)guillep2k2020-02-071-3/+7
| | | | | | * Prevent double waitgroup decrement Co-authored-by: zeripath <art27@cantab.net>
* Fix issue/pull link (#10158) (#10173)guillep2k2020-02-071-1/+1
|
* Fix push-create SSH bugs (#10145) (#10151)John Olheiser2020-02-053-1/+33
| | | | | | | | | | | | | * Attempt to fix push-create SSH bugs Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix binding Signed-off-by: jolheiser <john.olheiser@gmail.com> * Invalid ctx Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Prevent DeleteUser API abuse (#10125) (#10128)65432020-02-032-1/+7
| | | | | * fix & co * word suggestions from @jolheiser
* working part of #9998 (#10114) (#10115)65432020-02-031-2/+6
| | | | | | Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
* Add button to revert SimpleMDE to plain textarea (#10099) (#10102)zeripath2020-02-011-3/+30
|
* Fix branch page pull request title and link error (#10092) (#10097)Lunny Xiao2020-02-012-6/+6
| | | | * Fix branch page pull request title and link error (#10092)
* [BugFix] [API] Pull.API.Convert: Only try to get HeadBranch if HeadRepo ↵65432020-01-311-29/+32
| | | | exist (#10029) (#10088)
* Update topics repo count when deleting repository (#10081)Lauris BH2020-01-312-3/+27
|
* [UI] Show pull icon on pull (#10061) (#10062)65432020-01-291-0/+2
|
* Fix milestone API state parameter unhandled (#10049) (#10052)Lunny Xiao2020-01-295-6/+79
| | | | | * Fix milestone API state parameter unhandled * Fix test
* Ensure that feeds are appropriately restricted (#10018) (#10019)zeripath2020-01-284-7/+38
| | | | | | * Ensure that feeds are appropriately restricted * Placate golangci-lint
* PRs: Move to use a temporary repo for pushing new prs (#10009) (#10042)zeripath2020-01-281-14/+30
| | | * Move to use a temporary repo for pushing new prs
* Fix wiki raw view on sub path (#10002) (#10040)Lunny Xiao2020-01-286-19/+12
| | | | | | | * Fix wiki raw view on sub path * Add test for subpath wiki raw file * Fix bug
* trim whitespace of MilestoneName at creation/rename (#10017) (#10034)65432020-01-282-2/+7
|
* Sanitize credentials in mirror form (#9975) (#9991)Lunny Xiao2020-01-264-1/+37
|
* Fix pull view when head repository or head branch missed and close related ↵Lunny Xiao2020-01-255-6/+158
| | | | | | | | | | | | | | | | | | | | pull requests when delete head repository or head branch (#9927) (#9974) * fix pull view when head repository or head branch missed and close related pull requests when delete branch * fix pull view broken when head repository deleted * close pull requests when head repositories deleted * Add tests for broken pull request head repository or branch * fix typo * ignore special error when close pull request Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv>
* Switch to use -f instead of -F for sendmail (#9961) (#9970)techknowlogick2020-01-241-1/+1
| | | | | | Fix #9385 Co-authored-by: zeripath <art27@cantab.net>
* Fix check for push on default branch (#9963)guillep2k2020-01-241-1/+2
| | | | Co-authored-by: techknowlogick <matti@mdranta.net>
* Fix file rename/copy not supported by indexer (#9967)guillep2k2020-01-241-2/+27
|
* Fix regression with tag test running (#9941)v1.11.0-rc2techknowlogick2020-01-221-0/+6
|
* Changelog 1.11.0-rc2 (#9853)John Olheiser2020-01-221-2/+58
| | | | | | | | Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Don't convert ellipsis in markdown (#9905) (#9937)John Olheiser2020-01-221-2/+3
| | | | | | | | | | | | | | | | | | * Don't convert ellipsis Signed-off-by: jolheiser <john.olheiser@gmail.com> * Formatting Co-Authored-By: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net>
* Fixed repo link in generated comment for cross repository dependency (#9863) ↵65432020-01-222-8/+33
| | | | | | | | | | | | | (#9935) * fixed link to issue in issue comments after adding/removing a dependency, before links assumed the issue was in the same repository. also changed the format of the displayed issue since the issue will not necessarily be in the same repo * based on pr comments, changed to use HTMLURL instead of piecing together the issue url, and added an if statement around the issue link display as a nil protection * only showing repo name in dependency comment if the issue is from another repo Co-authored-by: Brad Albright <32200834+bhalbright@users.noreply.github.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>