]> source.dussan.org Git - gitea.git/log
gitea.git
4 years agoadd changelog for v1.10.5 (#10628)
Lunny Xiao [Fri, 6 Mar 2020 06:34:28 +0000 (14:34 +0800)]
add changelog for v1.10.5 (#10628)

4 years agoFix migration bug on v96.go (#10572) (#10574)
guillep2k [Mon, 2 Mar 2020 16:32:38 +0000 (13:32 -0300)]
Fix migration bug on v96.go (#10572) (#10574)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agov1.10.4 Changelog (#10294) v1.10.4
zeripath [Sun, 16 Feb 2020 20:45:38 +0000 (20:45 +0000)]
v1.10.4 Changelog (#10294)

* v1.10.4 Changelog

* Add backport identifier for #10261

* Update CHANGELOG.md entry for #9884

* Workaround docker-library/postgres#658

* Update .drone.yml

4 years agoFix reply on code review (#10261)
Lunny Xiao [Fri, 14 Feb 2020 11:53:36 +0000 (19:53 +0800)]
Fix reply on code review (#10261)

* Fix branch page pull request title and link error (#10092)

* Fix branch page pull request title and link error

* Fix ui

* Fix reply on code review (#10227)

Co-authored-by: zeripath <art27@cantab.net>
* Revert unrelated change

* Fix lint

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoFix branch page pull request title and link error (#10092) (#10098)
Lunny Xiao [Sat, 1 Feb 2020 17:37:52 +0000 (01:37 +0800)]
Fix branch page pull request title and link error (#10092) (#10098)

* Fix branch page pull request title and link error (#10092)
* Fix tmpl

4 years agoFix milestone API state parameter unhandled (#10049) (#10053)
Lunny Xiao [Thu, 30 Jan 2020 03:49:02 +0000 (11:49 +0800)]
Fix milestone API state parameter unhandled (#10049) (#10053)

* Fix milestone API state parameter unhandled (#10049)

* Fix milestone API state parameter unhandled

* Fix test

* Fix test

4 years agoFix wiki raw view on sub path (#10002) (#10041)
Lunny Xiao [Tue, 28 Jan 2020 15:10:40 +0000 (23:10 +0800)]
Fix wiki raw view on sub path (#10002) (#10041)

* Fix wiki raw view on sub path

* Add test for subpath wiki raw file

* Fix bug

Co-authored-by: zeripath <art27@cantab.net>
4 years agoFix RocketChat (#9925)
John Olheiser [Wed, 22 Jan 2020 08:07:11 +0000 (02:07 -0600)]
Fix RocketChat (#9925)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoPrevent empty LDAP search from deactivating all users (#9879) (#9890)
dioss-Machiel [Mon, 20 Jan 2020 20:02:35 +0000 (21:02 +0100)]
Prevent empty LDAP search from deactivating all users (#9879) (#9890)

* Backport of #9879 (Add option to prevent LDAP from deactivating everything on empty search)

* go fmtted

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years agofix bug about wrong dependencies permissions check and other wr… (#9884)
Lunny Xiao [Mon, 20 Jan 2020 15:45:42 +0000 (23:45 +0800)]
fix bug about wrong dependencies permissions check and other wr… (#9884)

* fix bug about wrong dependencies permissions check and other wrong permissions check

* improve code

4 years agoEnsure that 2fa is checked on reset-password (#9857) (#9877)
zeripath [Sun, 19 Jan 2020 23:37:28 +0000 (23:37 +0000)]
Ensure that 2fa is checked on reset-password (#9857) (#9877)

* Ensure that 2fa is checked on reset-password

* Apply suggestions from code review

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Properly manage scratch_code regeneration

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoChangelog 1.10.3 (#9832) v1.10.3
6543 [Fri, 17 Jan 2020 21:18:34 +0000 (22:18 +0100)]
Changelog 1.10.3 (#9832)

4 years agofix (#9838)
6543 [Fri, 17 Jan 2020 15:25:46 +0000 (16:25 +0100)]
fix (#9838)

4 years agoFix download file wrong content-type (#9825) (#9835)
Lunny Xiao [Fri, 17 Jan 2020 13:56:25 +0000 (21:56 +0800)]
Fix download file wrong content-type (#9825) (#9835)

* Fix download file wrong content-type

* change the error text to be more precise

* fix test

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoFix wrong identify poster on a migrated pull request when submi… (#9827) (#9831)
Lunny Xiao [Fri, 17 Jan 2020 12:38:53 +0000 (20:38 +0800)]
Fix wrong identify poster on a migrated pull request when submi… (#9827) (#9831)

4 years agofix dump non-exist log directory (#9818) (#9820)
Lunny Xiao [Fri, 17 Jan 2020 07:51:21 +0000 (15:51 +0800)]
fix dump non-exist log directory (#9818) (#9820)

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoFix compare (#9808) (#9815)
Lunny Xiao [Fri, 17 Jan 2020 02:08:07 +0000 (10:08 +0800)]
Fix compare (#9808) (#9815)

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoFix missing msteam webhook on organization (#9781) (#9795)
Lunny Xiao [Thu, 16 Jan 2020 05:36:05 +0000 (13:36 +0800)]
Fix missing msteam webhook on organization (#9781) (#9795)

4 years agoFix #9662 (#9783)
David Svantesson [Thu, 16 Jan 2020 00:26:55 +0000 (01:26 +0100)]
Fix #9662 (#9783)

4 years agoSend tag create and push webhook when release created on UI (#8671) (#9702)
Lauris BH [Mon, 13 Jan 2020 07:09:13 +0000 (09:09 +0200)]
Send tag create and push webhook when release created on UI (#8671) (#9702)

* '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

* update #8671 move release tag created hook to modules/notification/webhook due to #8802 refactoring

* use NotifyCreateRef and NotifyPushCommits instead of NotifyNewReleaseTag

* move tag notification to correct place

Co-authored-by: Benno <blueworrybear@gmail.com>
4 years agoHide credentials when submitting migration (#9102) (#9704)
Lauris BH [Sat, 11 Jan 2020 15:25:16 +0000 (17:25 +0200)]
Hide credentials when submitting migration (#9102) (#9704)

through API.
Same fix, using form.CloneAddr instead of opts.CloneAddr.

Co-authored-by: Jordan <eatsleepgame@gmail.com>
4 years agoFix cache problem on dashboard (#9358) (#9703)
Lauris BH [Sat, 11 Jan 2020 14:23:40 +0000 (16:23 +0200)]
Fix cache problem on dashboard (#9358) (#9703)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoNever allow an empty password to validate (#9682) (#9684)
zeripath [Sat, 11 Jan 2020 11:14:03 +0000 (11:14 +0000)]
Never allow an empty password to validate (#9682) (#9684)

* Restore IsPasswordSet previous value

* Update models/user.go

4 years agoPrevent redirect to Host (#9678) (#9680)
zeripath [Thu, 9 Jan 2020 21:38:12 +0000 (21:38 +0000)]
Prevent redirect to Host (#9678) (#9680)

4 years agoBranches not at ref commit ID should not be listed as Merged (#9614) (#9639)
zeripath [Wed, 8 Jan 2020 01:06:53 +0000 (01:06 +0000)]
Branches not at ref commit ID should not be listed as Merged (#9614) (#9639)

Once a branch has been merged if the commit ID no longer equals that of
the pulls ref commit id don't offer to delete the branch on the pull screen
and don't list it as merged on branches.

Fix #9201

When looking at the pull page we should also get the commits from the refs/pulls/x/head

Fix #9158

4 years ago[BugFix] Hide public repos owned by private orgs (#9616)
6543 [Mon, 6 Jan 2020 02:12:55 +0000 (03:12 +0100)]
[BugFix] Hide public repos owned by private orgs (#9616)

4 years agoChangelog for 1.10.2 (#9585) v1.10.2
6543 [Thu, 2 Jan 2020 11:04:19 +0000 (12:04 +0100)]
Changelog for 1.10.2 (#9585)

* Changelog for 1.10.2

* imprufe

* fix misspell

* Update CHANGELOG.md

4 years ago[Backport] [API] Allow only specific Colums to be updated on Issue (#9539) (#9580)
6543 [Thu, 2 Jan 2020 07:38:42 +0000 (08:38 +0100)]
[Backport] [API] Allow only specific Colums to be updated on Issue (#9539) (#9580)

* Fix #9189 - API Allow only specific Colums to be updated on Issue (#9539)

* dont insert "-1" in any case to issue.poster_id

* Make sure API cant override importand fields

* code format

* add Test for IssueEdit

* load milestone and return it on IssueEdit via API

* extend Test for TestAPIEditIssue

* fix TEST

* make sure Poster is loaded

* keep code format on backport as it is

4 years ago[Backport] Fix bug when migrate from API (#8631) (#9563)
6543 [Wed, 1 Jan 2020 23:36:00 +0000 (00:36 +0100)]
[Backport] Fix bug when migrate from API (#8631) (#9563)

* Fix bug when migrate from API (#8631)

* fix bug when migrate from API

* fix test

* fix test

* improve

* fix error message

* Update routers/api/v1/repo/repo.go

* remove unrelated

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agobackport part of #9550 (#9564)
6543 [Tue, 31 Dec 2019 17:00:17 +0000 (18:00 +0100)]
backport part of #9550 (#9564)

* add ErrReactionAlreadyExist
 * extend FindReactionsOptions
 * createReaction check if exit before create

4 years agofix 500 error for ghost avatar (#9537)
6543 [Mon, 30 Dec 2019 10:55:51 +0000 (11:55 +0100)]
fix 500 error for ghost avatar (#9537)

4 years agoFix repository issues pagination bug when there are more than one label filter (...
Lunny Xiao [Sat, 28 Dec 2019 23:54:25 +0000 (07:54 +0800)]
Fix repository issues pagination bug when there are more than one label filter (#9512) (#9528)

* Fix repository issues pagination bug when there are more than one label filter (#9512)

* fix merge

4 years agoFix deleted branch isn't removed when push the branch again (#9516) (#9524)
Lunny Xiao [Sat, 28 Dec 2019 04:41:41 +0000 (12:41 +0800)]
Fix deleted branch isn't removed when push the branch again (#9516) (#9524)

4 years agoFix missing repository status when migrating repository via API (#9511)
Lunny Xiao [Fri, 27 Dec 2019 12:34:28 +0000 (20:34 +0800)]
Fix missing repository status when migrating repository via API (#9511)

* Fix API migration wrong repository status

* Force push for ci

4 years agowhen branch is deleted after a pull request is merged, trigger webhook (#9510)
Brad Albright [Fri, 27 Dec 2019 06:36:52 +0000 (00:36 -0600)]
when branch is deleted after a pull request is merged, trigger webhook (#9510)

4 years agobackport fix: fixed bug in GitTreeBySHA where pulling items from a page other than...
Brad Albright [Tue, 24 Dec 2019 07:01:02 +0000 (01:01 -0600)]
backport fix: fixed bug in GitTreeBySHA where pulling items from a page other than page 1 would fail because the wrong var was used to set the entries to return (#9482)

4 years agoFix NewCommitStatus (#9434) (#9435)
John Olheiser [Thu, 19 Dec 2019 22:49:47 +0000 (16:49 -0600)]
Fix NewCommitStatus (#9434) (#9435)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoUse OriginalURL insead of CloneAddr in migration logging (#9418) (#9420)
mrsdizzie [Thu, 19 Dec 2019 02:02:47 +0000 (21:02 -0500)]
Use OriginalURL insead of CloneAddr in migration logging (#9418) (#9420)

CloneAddr will contain username and password credentials and they will
get stored in system notices about failed migrations (and logs if trace
is set). Replace with OriginalURL that doesn't have those.

4 years agoFix Slack webhook payload title generation to work with Mattermost (#9378) (#9404)
Cornel [Wed, 18 Dec 2019 12:56:35 +0000 (20:56 +0800)]
Fix Slack webhook payload title generation to work with Mattermost (#9378) (#9404)

4 years agoDefaultBranch needs to be prefixed by BranchPrefix (#9356) (#9359)
zeripath [Sun, 15 Dec 2019 11:08:19 +0000 (11:08 +0000)]
DefaultBranch needs to be prefixed by BranchPrefix (#9356) (#9359)

4 years agofix issue indexer not triggered when migrating a repository (#9333)
Lunny Xiao [Fri, 13 Dec 2019 05:07:11 +0000 (13:07 +0800)]
fix issue indexer not triggered when migrating a repository (#9333)

4 years agoFix bug that release attachment files not deleted when deleting repository (#9322...
Lunny Xiao [Thu, 12 Dec 2019 07:05:44 +0000 (15:05 +0800)]
Fix bug that release attachment files not deleted when deleting repository (#9322) (#9329)

* Fix bug that release attachment files not deleted when deleting repository

* improve code

* add quote

* improve code

4 years agoFix migration releases (#9319) (#9326) (#9328)
John Olheiser [Thu, 12 Dec 2019 04:38:58 +0000 (22:38 -0600)]
Fix migration releases (#9319) (#9326) (#9328)

* Only sync tags after all batches (#9319)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add SyncTags to uploader interface (#9326)

* Add sync tags to interface

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix revive

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoFile Edit: Author/Committer interchanged [BugFix] (#9300)
6543 [Mon, 9 Dec 2019 13:12:36 +0000 (14:12 +0100)]
File Edit: Author/Committer interchanged [BugFix] (#9300)

4 years agoChangelog 1.10.1 (#9256) v1.10.1
6543 [Thu, 5 Dec 2019 18:23:51 +0000 (19:23 +0100)]
Changelog 1.10.1 (#9256)

* Changelog for 1.10.1

* format ...

* format

* add @techknowlogick s suggestion

4 years agoFix max length check and limit in multiple repo forms (#9148) (#9204)
6543 [Fri, 29 Nov 2019 06:00:19 +0000 (07:00 +0100)]
Fix max length check and limit in multiple repo forms (#9148) (#9204)

* Fix input field max length for release, label and milestone forms

* Add max length for isseu and PR title

4 years agoProperly fix displaying virtual session provider in admin panel (#9137) (#9203)
6543 [Fri, 29 Nov 2019 05:28:38 +0000 (06:28 +0100)]
Properly fix displaying virtual session provider in admin panel (#9137) (#9203)

* Properly fix #7147

Although #7300 properly shadows the password from the virtual session
provider, the template displaying the provider config still presumed
that the config was JSON.

This PR updates the template and properly hides the Virtual Session
provider.

Fixes #7147

* update per @silverwind's suggestion

4 years agoupgrade levelqueue to 0.1.0 (#9192) (#9199)
Lunny Xiao [Thu, 28 Nov 2019 16:40:49 +0000 (00:40 +0800)]
upgrade levelqueue to 0.1.0 (#9192) (#9199)

4 years agoFix panic when diff (#9187) (#9193)
Lunny Xiao [Thu, 28 Nov 2019 15:07:30 +0000 (23:07 +0800)]
Fix panic when diff (#9187) (#9193)

* fix panic when diff

* improve code

4 years agoFix #9151 - smtp logger configuration sendTos should be an arra… (#9157)
zeripath [Mon, 25 Nov 2019 15:18:16 +0000 (15:18 +0000)]
Fix #9151 - smtp logger configuration sendTos should be an arra… (#9157)

* Fix #9151 - sendTos should be an array

* trimspace from the addresses

5 years agobackport v1.10 - Always show Password field on link account sign in page (#9150)
Benno [Sun, 24 Nov 2019 23:38:05 +0000 (07:38 +0800)]
backport v1.10 - Always show Password field on link account sign in page (#9150)

5 years agoCreate PR on Current Repository by Default (#8670) (#9141)
guillep2k [Sun, 24 Nov 2019 02:08:40 +0000 (23:08 -0300)]
Create PR on Current Repository by Default (#8670) (#9141)

* '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

5 years agofix race on indexer (#9136) (#9139)
Lunny Xiao [Sat, 23 Nov 2019 18:08:49 +0000 (02:08 +0800)]
fix race on indexer (#9136) (#9139)

5 years agoFix reCAPTCHA URL (#9119)
Koichi MATSUMOTO [Fri, 22 Nov 2019 14:48:58 +0000 (23:48 +0900)]
Fix reCAPTCHA URL (#9119)

Fix reCAPTCHA issue

5 years agoBackport: Hide given credentials for migrated repos. (#9098)
Jordan [Wed, 20 Nov 2019 22:23:12 +0000 (16:23 -0600)]
Backport: Hide given credentials for migrated repos. (#9098)

CloneAddr was being used as OriginalURL.
Now passing OriginalURL through from the form and saving it.

5 years agobackport: update golang.org/x/crypto vendor to use acme v2 (#9056) (#9085)
techknowlogick [Wed, 20 Nov 2019 07:12:47 +0000 (02:12 -0500)]
backport: update golang.org/x/crypto vendor to use acme v2 (#9056) (#9085)

5 years agoBackport: Fix password checks on admin create/edit user (#9076) (#9081)
guillep2k [Wed, 20 Nov 2019 00:08:53 +0000 (21:08 -0300)]
Backport: Fix password checks on admin create/edit user (#9076) (#9081)

* Fix password checks on admin create/edit user

* Remove incorrect trimspace

5 years agofix: add search to reserved usernames (#9063) (#9065)
Antoine GIRARD [Mon, 18 Nov 2019 22:40:14 +0000 (23:40 +0100)]
fix: add search to reserved usernames (#9063) (#9065)

* fix: add search to reserved usernames

* Update integrations/user_test.go

Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
5 years agoFix permission checks for close/reopen from commit (#8875) (#9033)
guillep2k [Fri, 15 Nov 2019 22:11:40 +0000 (19:11 -0300)]
Fix permission checks for close/reopen from commit (#8875) (#9033)

* Fix checks for close/reopen from commit

* Fix permission order

5 years agoEnsure Written is set in GZIP ProxyResponseWriter (#9018) (#9025)
zeripath [Fri, 15 Nov 2019 15:57:57 +0000 (15:57 +0000)]
Ensure Written is set in GZIP ProxyResponseWriter (#9018) (#9025)

Fix #9001

The GZIP ProxyReponseWriter doesn't currently respond correctly
to requests about its Written status - leading to #9001.

This PR properly reimplements these methods.

5 years agoFix broken link to branch from issue list (#9003) (#9021)
6543 [Fri, 15 Nov 2019 14:10:28 +0000 (15:10 +0100)]
Fix broken link to branch from issue list (#9003) (#9021)

* Fix broken link to branch from issue list

* Update templates/repo/issue/list.tmpl

5 years agofix wrong system notice when repository is empty (#9020)
Lunny Xiao [Fri, 15 Nov 2019 12:13:58 +0000 (20:13 +0800)]
fix wrong system notice when repository is empty (#9020)

5 years agoShadow password correctly for session config (#8984) (#9002)
zeripath [Thu, 14 Nov 2019 22:34:47 +0000 (22:34 +0000)]
Shadow password correctly for session config (#8984) (#9002)

Fix #8718

This PR shadows passwords in session config correctly by detecting
the VirtualProvider, unmarshalling the original config and then
shadowing config within that.

5 years agoUpdate security (#8990)
John Olheiser [Thu, 14 Nov 2019 16:56:17 +0000 (10:56 -0600)]
Update security (#8990)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoChangelog for 1.10.0 (#8978) v1.10.0
John Olheiser [Thu, 14 Nov 2019 05:09:58 +0000 (23:09 -0600)]
Changelog for 1.10.0 (#8978)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoHotfix for review actions and notifications (#8965)
guillep2k [Thu, 14 Nov 2019 00:38:12 +0000 (21:38 -0300)]
Hotfix for review actions and notifications (#8965)

5 years agoBackport 1.9.6 (#8969)
John Olheiser [Wed, 13 Nov 2019 21:31:27 +0000 (15:31 -0600)]
Backport 1.9.6 (#8969)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoAdd Close() method to gogitRepository (#8901) (#8956)
zeripath [Wed, 13 Nov 2019 13:54:04 +0000 (13:54 +0000)]
Add Close() method to gogitRepository (#8901) (#8956)

Backport #8901

In investigating #7947 it has become clear that the storage component of go-git repositories needs closing.

This PR adds this Close function and adds the Close functions as necessary.

In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files.

Fixes #7947

5 years agoUpdate Github Migration Tests (#8938) (#8945)
mrsdizzie [Wed, 13 Nov 2019 05:15:57 +0000 (00:15 -0500)]
Update Github Migration Tests (#8938) (#8945)

Update all Github migration tests to use a new repo created just for
these tests that won't accidentially be modified by regular users
interacting with issues.

Fixes #8895

5 years agoBackport: Enable punctuations ending mentions (#8889) (#8894)
guillep2k [Sun, 10 Nov 2019 01:24:59 +0000 (22:24 -0300)]
Backport: Enable punctuations ending mentions (#8889) (#8894)

* Enable punctuations ending mentions

* Improve tests

5 years agoFix issue with user.fullname (#8903)
zeripath [Sun, 10 Nov 2019 00:06:38 +0000 (00:06 +0000)]
Fix issue with user.fullname (#8903)

5 years agoUpdate Github migration test (#8896)
guillep2k [Sat, 9 Nov 2019 20:15:37 +0000 (17:15 -0300)]
Update Github migration test (#8896)

Earlier today #716 was reopened which updated the modification time for
an old milestone (1.6.0) that we use in testing with the assumption that
it is old and won't change. This breaks all builds now, so remove this
test since we have others that test the same code and this milestone
will likely be updated again as that issue changes etc...

5 years agoBackport: Fix password complexity check on registration (#8887) (#8888)
guillep2k [Sat, 9 Nov 2019 11:52:54 +0000 (08:52 -0300)]
Backport: Fix password complexity check on registration (#8887) (#8888)

* Fix registration password complexity

* Fix integration to use a complex password ;)

5 years agoBackport: Fix require external registration password (#8885) (#8890)
guillep2k [Sat, 9 Nov 2019 08:30:24 +0000 (05:30 -0300)]
Backport: Fix require external registration password (#8885) (#8890)

* Fix require external registration password

* Fix ctx on error condition by @jolheiser

5 years agoFix edit content button on migrated issue content (#8877) (#8884)
mrsdizzie [Fri, 8 Nov 2019 15:43:51 +0000 (10:43 -0500)]
Fix edit content button on migrated issue content (#8877) (#8884)

Typo on a closing span tag caused edit button not to work properly on
the original issue content for a migrated issue.

Fixes #8876

5 years agoFix to close opened io resources as soon as not needed (#8839) (#8846)
Lauris BH [Tue, 5 Nov 2019 20:14:56 +0000 (22:14 +0200)]
Fix to close opened io resources as soon as not needed (#8839) (#8846)

* Fix to close opened io resources as soon as not needed

* Remove unneeded err checks

5 years agoFix new user form for non-local users (#8826) (#8828)
Lauris BH [Tue, 5 Nov 2019 00:19:32 +0000 (02:19 +0200)]
Fix new user form for non-local users (#8826) (#8828)

5 years agoFix commit expand button to not go to commit link (#8745) (#8825)
Lauris BH [Mon, 4 Nov 2019 18:59:17 +0000 (20:59 +0200)]
Fix commit expand button to not go to commit link (#8745) (#8825)

* 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

5 years agoFix SSH2 conditonal in key parsing code (#8806) (#8810)
6543 [Sun, 3 Nov 2019 14:51:32 +0000 (15:51 +0100)]
Fix SSH2 conditonal in key parsing code (#8806) (#8810)

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

5 years agoadd missing "d" (#8801)
6543 [Sun, 3 Nov 2019 03:13:38 +0000 (04:13 +0100)]
add missing "d" (#8801)

5 years agofix 500 when edit hook (#8782) (#8789)
Lunny Xiao [Sat, 2 Nov 2019 16:41:06 +0000 (00:41 +0800)]
fix 500 when edit hook (#8782) (#8789)

5 years agoOn windows set core.longpaths true (#8776) (#8786)
zeripath [Sat, 2 Nov 2019 11:25:13 +0000 (11:25 +0000)]
On windows set core.longpaths true (#8776) (#8786)

5 years agoAllow to merge if file path contains " or \ (#8629) (#8771)
zeripath [Fri, 1 Nov 2019 17:50:59 +0000 (17:50 +0000)]
Allow to merge if file path contains " or \ (#8629) (#8771)

* 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>
5 years agoChangelog 1.9.5 (#8753) (#8756)
John Olheiser [Wed, 30 Oct 2019 20:34:13 +0000 (15:34 -0500)]
Changelog 1.9.5 (#8753) (#8756)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoChangelog 1.10.0-rc2 (#8750) v1.10.0-rc2
John Olheiser [Wed, 30 Oct 2019 17:27:52 +0000 (12:27 -0500)]
Changelog 1.10.0-rc2 (#8750)

* 1.10.0-rc2

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Wording

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update CHANGELOG.md

Co-Authored-By: jaqra <48099350+jaqra@users.noreply.github.com>
5 years ago[Fix] milestone close timestamp (#8728) (#8730)
6543 [Tue, 29 Oct 2019 03:11:24 +0000 (04:11 +0100)]
[Fix] milestone close timestamp (#8728) (#8730)

* BugFix: Update closed_date_unix colum on milestone table on close

* go fmt

5 years agoFix deadline on update issue or PR via API (#8698)
David Svantesson [Sun, 27 Oct 2019 23:36:59 +0000 (00:36 +0100)]
Fix deadline on update issue or PR via API (#8698)

5 years agoFix 500 when getting user as unauthenticated user (#8653) (#8663)
Monty Taylor [Fri, 25 Oct 2019 12:09:15 +0000 (21:09 +0900)]
Fix 500 when getting user as unauthenticated user (#8653) (#8663)

Backport #8653

When doing GET /api/v1/users/{user} as an unauthenticated user,
gitea throws a 500 because it's trying to dereference elements
from the context user. It wants to do this to see whether to
show the primary email and will do that if the logged in user
is admin or the user in question. However, if ctx.User is nil there is a panic

5 years agomake call createMilestoneComment on newIssue func (#8678) (#8681)
jaqra [Fri, 25 Oct 2019 10:09:19 +0000 (13:09 +0300)]
make call createMilestoneComment on newIssue func (#8678) (#8681)

* make call createMilestoneComment on newIssue func

* make OldMilestoneID 0 instead of -1

5 years agoHide some user information via API if user have no enough permission (#8655) (#8657)
Lunny Xiao [Thu, 24 Oct 2019 05:59:53 +0000 (13:59 +0800)]
Hide some user information via API if user have no enough permission (#8655) (#8657)

* Hide some user information via API if user have no enough permission

* fix test

5 years agoUse AppSubUrl for more redirections (#8647) (#8651)
zeripath [Wed, 23 Oct 2019 22:27:10 +0000 (23:27 +0100)]
Use AppSubUrl for more redirections (#8647) (#8651)

Partial backport without changes to locale files.

Fix #8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template
Fixes /explore and organisation redirection

5 years agoAdd SubURL to redirect path (#8632) (#8634)
John Olheiser [Tue, 22 Oct 2019 21:16:20 +0000 (16:16 -0500)]
Add SubURL to redirect path (#8632) (#8634)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoFix template error on account page (#8562) (#8622)
John Olheiser [Tue, 22 Oct 2019 09:08:59 +0000 (04:08 -0500)]
Fix template error on account page (#8562) (#8622)

5 years agoAllow externalID to be UUID (#8551) (#8624)
guillep2k [Tue, 22 Oct 2019 08:12:10 +0000 (05:12 -0300)]
Allow externalID to be UUID (#8551) (#8624)

Signed-off-by: Wenxuan Zhao <viz@linux.com>
5 years agoPrevent .code-view from overriding font on icon fonts (#8614) (#8627)
guillep2k [Tue, 22 Oct 2019 06:39:40 +0000 (03:39 -0300)]
Prevent .code-view from overriding font on icon fonts (#8614) (#8627)

5 years agoExpose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528...
zeripath [Tue, 22 Oct 2019 06:00:37 +0000 (07:00 +0100)]
Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528) (#8618)

* 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>
5 years agofix emoji panel be removed bug in issue page, when the sub issue summit the duplicate...
guillep2k [Mon, 21 Oct 2019 23:17:25 +0000 (20:17 -0300)]
fix emoji panel be removed bug in issue page, when the sub issue summit the duplicate emoji (#8609) (#8623)

5 years agoUpdate heatmap fixtures to restore tests (#8615) (#8616)
zeripath [Mon, 21 Oct 2019 21:15:55 +0000 (22:15 +0100)]
Update heatmap fixtures to restore tests (#8615) (#8616)

* Update heatmap fixtures to restore tests
* Add hint to check the fixture age on fail

5 years agoEnsure that diff stats can scroll independently of the diff (#8581) (#8611)
6543 [Mon, 21 Oct 2019 08:53:34 +0000 (10:53 +0200)]
Ensure that diff stats can scroll independently of the diff (#8581) (#8611)

This PR ensures that once opened the diff stats detail box can be scrolled independently of the diff on the compare page.

Fixes #5532

Details:

* make diff-detail-box the main container
* move file diff at the same level as diff-stats
* make diff-view options sticy again
* make diff-stats scroll if to mouch
* rm useless css info
* less: mv diff-stats to own class
* use new css class
* cleanup less file
* diff-counter: margin-right: 15px;
* make CI work
* make numbers colorful
* add sign (-/+) to numbers

5 years agowebhook: set Content-Type for application/x-www-form-urlencoded (#8600)
Viktor Szakats [Sun, 20 Oct 2019 17:18:05 +0000 (19:18 +0200)]
webhook: set Content-Type for application/x-www-form-urlencoded (#8600)

This header is missing since switching http client from GiteaServer (`code.gitea.io/gitea/modules/httplib`) to Go-http-client/1.1 (`net.http`). The header [was added by default](https://github.com/go-gitea/gitea/blob/release/v1.8/modules/httplib/httplib.go#L301) by the former, but this is no longer true with `net.http`, so it needs to be done explicitly.

Closes: #7700