GiteaBot
489419c330
[skip ci] Updated translations via Crowdin
2019-03-08 16:45:46 +00:00
Jonas Franz and techknowlogick
e777c6bdc6
Integrate OAuth2 Provider ( #5378 )
2019-03-08 11:42:50 -05:00
Antoine GIRARD and techknowlogick
9d3732dfd5
[Contrib] Checkout a PR ( #6021 )
2019-03-07 20:54:10 -05:00
techknowlogick and GitHub
9fd8b2621f
Add robots.txt as reserved username ( #6272 )
...
Fix #6271
2019-03-07 16:30:25 -05:00
mrsdizzie and techknowlogick
f2de5dc8c8
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
01bd1fcd33
[skip ci] Updated translations via Crowdin
2019-03-07 19:16:42 +00:00
mrsdizzie and techknowlogick
020075e12f
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
ad86b843e1
[skip ci] Updated translations via Crowdin
2019-03-06 00:50:36 +00:00
John Olheiser and techknowlogick
608781f880
Fix fork button ( #6223 )
2019-03-05 19:48:30 -05:00
GiteaBot
6460cff222
[skip ci] Updated translations via Crowdin
2019-03-05 20:18:01 +00:00
Zsombor and techknowlogick
f80caa5a8c
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 and techknowlogick
b257e0456b
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Çİ and techknowlogick
4512634604
Make organization dropdown scrollable when using mouse wheel ( #5988 )
...
* Fix #5580
2019-03-04 22:13:51 -05:00
zeripath and techknowlogick
f066bd2b3f
Prevent double-close of issues ( #6233 )
2019-03-04 21:52:52 -05:00
Maurizio Porrato and techknowlogick
19862699cd
Override xorm type mapping for U2F counter ( #6232 )
2019-03-04 21:34:52 -05:00
Lanre Adelowo and techknowlogick
141c58f5a6
add isAdmin to user model ( #6231 )
...
update vendor and add tests
fix swagger
2019-03-03 17:57:24 -05:00
Martin Delille and techknowlogick
8e202e28ad
add create issue via email comparison ( #6227 )
2019-03-02 15:44:51 -05:00
James E. Blair and Lauris BH
a5604b1611
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
Martin Delille and Lauris BH
b28e527a2b
add service desk to comparison ( #6220 )
...
* add service desk to comparison
* add link to issue
2019-03-02 01:57:14 +02:00
GiteaBot
afdc0ca41d
[skip ci] Updated translations via Crowdin
2019-03-01 20:41:52 +00:00
John Olheiser and techknowlogick
c01fb4d09e
Update to docs README ( #6221 )
...
* Update to docs README
* Update Hugo link
2019-03-01 15:39:30 -05:00
silverwind and zeripath
8e266c3193
UI: Fix race in update issue labels and assignees ( #6194 )
...
Fix #6191
* fix issue update race condition
* fix similar race same race when clearing assignee
* always load promise polyfill
* replace es6-promise with promise-polyfill
* move promise-polyfill to <head>
2019-02-28 22:10:08 +00:00
mrsdizzie and Lunny Xiao
4a2e92bcd1
Modify linkRegex to require http|https ( #6171 )
...
Modify the current linkRegex to require http|https which appears to be
the intended behavior based on the comments. Right now, it also matches
anything starting with www as well. Also add testing for linkRegex
2019-02-28 20:31:53 +08:00
John Olheiser and Lunny Xiao
4b7237b63e
Doc updates for customization and installation. ( #6176 )
...
* Doc updates and changing default sqlite DB path
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Update customizing locales and THEMES
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add link to templates directory
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add portion for final step of running Gitea
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Add recommended to service file usage
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Removed DB path change, moving to another PR
Updated doc sentence structure
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Revert change to template wording
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Move recommended run-type to top
2019-02-28 20:09:47 +08:00
GiteaBot
1cf3fc3bc5
[skip ci] Updated translations via Crowdin
2019-02-28 08:04:31 +00:00
Lunny Xiao and GitHub
c812ba7f87
fix display dashboard even if require to change password ( #6214 )
...
* fix display dashboard even if require to change password
* fix comments
2019-02-28 16:01:42 +08:00
James E. Blair and Lunny Xiao
48c101affe
Create a repo redirect when transferring ownership ( #6210 ) ( #6211 )
...
When transferring ownership of a repo to a different user/org,
create a repo redirect that points to the new location in the same
way that is done when a repo is renamed.
Signed-off-by: James E. Blair <jeblair@redhat.com >
2019-02-28 11:51:46 +08:00
tklein23 and techknowlogick
525f03306f
Add "ghost" and "notifications" to list of reserved user names. ( #6208 )
2019-02-27 19:04:44 -05:00
zeripath and techknowlogick
25b6496f48
Add Changelog for 1.7.3 ( #6202 ) ( #6207 )
2019-02-27 15:32:25 -05:00
John Olheiser and Lauris BH
7548037a64
Adds MustChangePassword to user create/edit API, defaults to true ( #6193 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2019-02-27 21:37:57 +02:00
silverwind and zeripath
b1ffe7e47b
UI: Style tweaks to issue selection ( #6196 )
...
- Prevent jump in layout when selecting the first issue
- Remove useless padding on top of first issue
2019-02-27 17:24:21 +00:00
GiteaBot
a1214978b3
[skip ci] Updated translations via Crowdin
2019-02-27 16:58:32 +00:00
John Olheiser and techknowlogick
6cc11eccac
Change sqlite DB path default to data directory ( #6198 )
2019-02-27 11:55:08 -05:00
GiteaBot
b03d780ccb
[skip ci] Updated translations via Crowdin
2019-02-26 23:10:22 +00:00
techknowlogick and Bo-Yi Wu
1142632f1a
Use go 1.12 for tests and deprecate go 1.9 ( #6186 )
...
Blocked until 1.12 docker images are released
2019-02-27 07:07:35 +08:00
Lunny Xiao and techknowlogick
7afe81f28e
fix bug when migrate repository 500 when repo is existed ( #6188 )
...
* fix bug when migrate repository 500 when repo is existed
* use 409 but not 422 for error status code when not exist
* translation fix
2019-02-26 09:28:56 -05:00
Segev Finer and techknowlogick
594f591691
Increase Username and Orgname MaxSize 35 -> 40 ( #6178 )
...
* Increase Username and Orgname MaxSize 35 -> 40
Signed-off-by: Segev Finer <segev@codeocean.com >
* Dep update code.gitea.io/sdk
Signed-off-by: Segev Finer <segev@codeocean.com >
* Run generate-swagger
Signed-off-by: Segev Finer <segev@codeocean.com >
2019-02-25 13:56:47 -05:00
GiteaBot
795f6e04ad
[skip ci] Updated translations via Crowdin
2019-02-25 10:39:39 +00:00
silverwind and Lauris BH
d8d24a5619
UI: Fix scrollbar always present on page body ( #6177 )
2019-02-25 12:37:04 +02:00
silverwind and zeripath
28fcbf33dc
UI: Make document body a flexbox ( #6139 )
...
* UI: Make document body a flexbox
Fixes: https://github.com/go-gitea/gitea/issues/6118
* ie11 fixes
* increase padding to 80px
* add flex-grow
2019-02-24 21:02:45 +00:00
Lunny Xiao and techknowlogick
15ecc08475
fix bug when set indexer as db and add tests ( #6173 )
2019-02-24 11:16:20 -05:00
Bo-Yi Wu and Lauris BH
05143768d0
Refactor coverage profile with multiple packages ( #6167 )
2019-02-23 12:44:32 +02:00
Bo-Yi Wu and Lunny Xiao
035c82aec4
feat(docker): speed up docker build. ( #6159 )
...
* feat(docker): speed up docker build.
* feat: add docker dryrun
* fix: remove docker username and password if dryrun
2019-02-23 09:16:34 +08:00
Lunny Xiao and zeripath
4a2fbbeb10
fix bug user could change private repository to public when force private enabled. ( #6156 )
2019-02-22 21:56:05 +00:00
Lunny Xiao and techknowlogick
134e55510e
fix bug when update owner team then visit team's repo return 404 ( #6119 )
2019-02-22 11:14:45 -05:00
John Olheiser and techknowlogick
df30010dbd
Make repo creation for API similar to UI ( #6142 )
2019-02-21 17:07:58 -05:00
zeripath and techknowlogick
3b61ff1895
Allow display of LFS stored Readme.md on directory page ( #6073 ) ( #6099 )
...
* Fix display of >1Kb LFS text files
* Make LFS stored Readme files viewable
Signed-off-by: Andrew Thornton <art27@cantab.net >
* Slight restructure
Signed-off-by: Andrew Thornton <art27@cantab.net >
* Slight restructure
Signed-off-by: Andrew Thornton <art27@cantab.net >
* catch errors and restructure LFS sections
2019-02-21 15:57:16 -05:00
John Olheiser and techknowlogick
994b1be9d1
Admins can now do unlimited page size user search (listAllUsers & listAllOrgs) ( #6143 )
...
Non-admins will default to 10 page size
2019-02-21 15:42:54 -05:00
Lunny Xiao and GitHub
477ef46251
Add more tests and docs for issue indexer, add db indexer type for searching from database ( #6144 )
...
* add more tests and docs for issue indexer, add db indexer type for searching from database
* fix typo
* fix typo
* fix lint
* improve docs
2019-02-21 13:01:28 +08:00
Lunny Xiao and GitHub
0751153613
refactor issue indexer, add some testing and fix a bug ( #6131 )
...
* refactor issue indexer, add some testing and fix a bug
* fix error copyright year on comment header
* issues indexer package import keep consistent
2019-02-21 08:54:05 +08:00