2
0
Commit Graph

7256 Commits

Author SHA1 Message Date
stevegt
9ae5af66a6 fix testing instructions in CONTRIBUTING.md (#6305)
* add scripts/test-local.sh and fix CONTRIBUTING.md

- fixes #6243
- partial fix for #6269

Signed-off-by: Steve Traugott <stevegt@t7a.org>

* remove reference to possible automated drone run

* remove bash version of drone-cli test script

* fix issue number links in testing instructions

* remove scripts/test-local.sh
2019-03-18 08:38:08 +08:00
GiteaBot
fb0962fe8a [skip ci] Updated translations via Crowdin 2019-03-17 19:20:28 +00:00
Lunny Xiao
e3240315d7 Add test environment for Mysql8 (#5234) 2019-03-17 15:17:18 -04:00
Thomas McWork
05d3f2a10a More specific declaration of search disk space (#6338)
Elaborate more on the code search storage space requirement
2019-03-16 22:47:04 -04:00
Lunny Xiao
1a1bb54ec7 split setting.go to multiple files (#6154)
* split setting.go to multiple files

* fix lint
2019-03-16 11:12:44 +08:00
Richard Mahn
2636d06cbb Request to join the maintainers (#6340) 2019-03-15 12:53:53 -04:00
techknowlogick
71e0fed2fe use updated reference of xgo in makefile (#6339) 2019-03-15 12:39:02 -04:00
John Olheiser
303def2e50 Add way to force checkout (#6322) 2019-03-15 12:18:01 -04:00
John Olheiser
72586961ad Add same changes from issues page to milestone->issues page (#6328) 2019-03-15 11:50:27 -04:00
Bogdan Petrea
9e378aa3ce Return 409 when creating repo if it already exists. (#6330) 2019-03-15 10:19:09 -04:00
mrsdizzie
61d69111ea Fix ParsePatch function to work with quoted diff --git strings (#6323)
* Fix ParsePatch to work properly with quoted diff --git string

Currently ParsePatch fails when a diff contains a quoted diff line like:

diff --git "a/file" "b/file"

This patch makes it properly parse the line when that happens.

Fixes #6309

* Add test for regular case while here

* Simplify string modification
2019-03-14 18:09:53 +02:00
techknowlogick
f48ff942f9 Add InternalTokenURI to load InteralToken from an external file (#5812) 2019-03-13 18:49:43 -04:00
techknowlogick
f0386f6b47 backport 1.7.4 changelog (#6317) 2019-03-13 07:50:20 +00:00
John Olheiser
28861daa00 Use correct remote on Windows (#6313) 2019-03-12 19:47:04 +02:00
zeripath
6639fd0dd1 Fix reported issue in repo description (#6306) 2019-03-11 22:23:34 -04:00
zeripath
9d80fd4e58 Use url.PathEscape to escape the branchname (#6304)
* Use url.PathEscape to escape the branchname

* GetRepositoryByOwnerAndName should also have url.PathEscape as the owner and reponame are provided by the client
2019-03-12 00:53:41 +02:00
Richard Mahn
dca0966ac0 Updates vendor/code.gitea.io/git (#6286) 2019-03-11 14:01:00 -04:00
GiteaBot
3969afb434 [skip ci] Updated translations via Crowdin 2019-03-11 11:37:48 +00:00
MysticBoy
da6cc59292 Update third-party-tools.en-us.md (#6301)
Add  Gitea Extension for Visual Studio
2019-03-11 19:35:18 +08:00
Lunny Xiao
b129d78a89 update git vendor to fix wrong release commit id and add migrations (#6224)
* update git vendor to fix wrong release commit id and add migrations

* fix count

* fix migration release

* fix tests
2019-03-11 11:44:58 +08:00
Jonas Franz
52e1a18402 Add support for client basic auth for exchanging access tokens (#6293)
* Add support for client basic auth for exchanging access tokens

* Improve error messages

* Fix tests
2019-03-11 10:54:59 +08:00
GiteaBot
c89c375084 [skip ci] Updated translations via Crowdin 2019-03-10 21:58:54 +00:00
zeripath
eb6ac024b0 Remove util.RemoveAll - should have been removed since go 1.7 (#6299) 2019-03-10 23:56:36 +02:00
GiteaBot
6554c5f4d3 [skip ci] Updated translations via Crowdin 2019-03-09 21:18:31 +00:00
Aidan Fitzgerald
2455712b21 Copyedit docs (#6275) 2019-03-09 16:15:45 -05:00
Jonas Franz
c729bf62da Add regenerate secret feature for oauth2 (#6291)
* Add regenerate secret functionality

* Fix lint
2019-03-09 17:29:58 +01:00
John Olheiser
976fdc9699 Add unit types to repo action URL to correctly show 404 when archived (#6247)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2019-03-09 11:00:38 +00:00
GiteaBot
a38da95d19 [skip ci] Updated translations via Crowdin 2019-03-08 20:28:33 +00:00
techknowlogick
c7252a38ed Use golang 1.12 to build in dockerfile (#6285) 2019-03-08 15:25:47 -05:00
John Olheiser
7262c21e92 Add security note to issue template (#6281) 2019-03-08 13:15:46 -05:00
GiteaBot
3b3f242b73 [skip ci] Updated translations via Crowdin 2019-03-08 17:43:26 +00:00
John Olheiser
da5addb446 Third party docs (#6282) 2019-03-08 12:42:59 -05:00
GiteaBot
e332a238d7 [skip ci] Updated translations via Crowdin 2019-03-08 16:45:46 +00:00
Jonas Franz
9e763c8c77 Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
Antoine GIRARD
250d69ff20 [Contrib] Checkout a PR (#6021) 2019-03-07 20:54:10 -05:00
techknowlogick
842152b666 Add robots.txt as reserved username (#6272)
Fix #6271
2019-03-07 16:30:25 -05:00
mrsdizzie
2afbee9c09 Replace linkRegex with xurls library (#6261)
* Replace linkRegex with xurls library

Rather than maintaining a complicated regex to match URLs for
autolinking, gitea can use this existing go library that takes care of
the matching with very little code change to gitea itself. After
spending a while trying to find the perfect regex for all cases this library
still works better as it is more flexible than a single regex ever will be.

This will also fix the following issues: #5844 #3095 #3381

This passes all our current tests and I've added new ones mentioned in
those issues as well.

* Use xurls.StrictMatchingScheme instead of xurls.Strict

This is much faster and we only care about https? links to preserve
existing behavior.
2019-03-07 15:12:01 -05:00
GiteaBot
ddc100c5c2 [skip ci] Updated translations via Crowdin 2019-03-07 19:16:42 +00:00
mrsdizzie
2512e87939 Remove visitLinksForShortLinks features (#6257)
The visitLinksForShortLinks feature would look inside of an <a> tag and
run shortLinkProcessorFull on any text, which attempts to create links
out of potential 'short links' like [[test]] [[link|example]] etc...
This makes no sense because you can't have nested links within an <a>
tag. Specifically, the html5 standard says <a> tags can't include
interactive content if they contain the href attribute:

 http://w3c.github.io/html/single-page.html#the-a-element

And also defines an <a> element with a href attribute as interactive:

 http://w3c.github.io/html/single-page.html#interactive-content

Therefore you can't really put a link inside of another link. In
practice none of this works anyways since browsers won't render it, it
would probably be broken if they tried, and it is causing a bug
(#4946). No current tests rely on this behavior either.

This removes the feature and also explicitly excludes the
current visitNodeForShortLinks from looking in <a> tags.
2019-03-07 14:13:44 -05:00
GiteaBot
44b9f45c4e [skip ci] Updated translations via Crowdin 2019-03-06 00:50:36 +00:00
John Olheiser
bfd6112069 Fix fork button (#6223) 2019-03-05 19:48:30 -05:00
GiteaBot
d92c6ff096 [skip ci] Updated translations via Crowdin 2019-03-05 20:18:01 +00:00
Zsombor
7218d06517 Fix #6234 : Check organization visibility before everything else (#6235)
* Fix #6234 : Check organization visibility before everything else

* Ensure that Owner is available in the Repo
2019-03-05 15:15:24 -05:00
stevegt
a402b610e4 Add ability to sort issues by due date (#6206) (#6244)
Signed-off-by: Steve Traugott <stevegt@t7a.org>
2019-03-05 09:39:41 -05:00
Muhammed TİFTİKÇİ
f040a354ee Make organization dropdown scrollable when using mouse wheel (#5988)
* Fix #5580
2019-03-04 22:13:51 -05:00
zeripath
3cda86b232 Prevent double-close of issues (#6233) 2019-03-04 21:52:52 -05:00
Maurizio Porrato
2842f71642 Override xorm type mapping for U2F counter (#6232) 2019-03-04 21:34:52 -05:00
Lanre Adelowo
cf95ef4e55 add isAdmin to user model (#6231)
update vendor and add tests

fix swagger
2019-03-03 17:57:24 -05:00
Martin Delille
17ba25b69d add create issue via email comparison (#6227) 2019-03-02 15:44:51 -05:00
James E. Blair
5d0173e49d Fix renames over redirects (#6216)
In #6211, we started creating repo_redirects for ownership transfers,
however that opens an edge case where a user might perform the
following sequence:

rename org1/repo1 -> org1/repo2  (creates org1/repo1 redirect)
transfer org2/repo1 -> org1/repo1 (org1/repo1 redirect continues to exist)
rename org1/repo1 -> org1/repo3 (fails due to existing org1/repo1 redirect)

This change ensures that each time we rename or transfer a repo,
we delete any existing redirects at the target location.  This
already happens when a new repo is created.  By doing this we ensure
that we'll never have both a repo and a redirect at the same location.

Signed-off-by: James E. Blair <jeblair@redhat.com>
2019-03-02 15:07:19 +02:00