]> source.dussan.org Git - gitea.git/log
gitea.git
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 9 Mar 2019 21:18:31 +0000 (21:18 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoCopyedit docs (#6275)
Aidan Fitzgerald [Sat, 9 Mar 2019 21:15:45 +0000 (16:15 -0500)]
Copyedit docs (#6275)

5 years agoAdd regenerate secret feature for oauth2 (#6291)
Jonas Franz [Sat, 9 Mar 2019 16:29:58 +0000 (17:29 +0100)]
Add regenerate secret feature for oauth2 (#6291)

* Add regenerate secret functionality

* Fix lint

5 years agoAdd unit types to repo action URL to correctly show 404 when archived (#6247)
John Olheiser [Sat, 9 Mar 2019 11:00:38 +0000 (05:00 -0600)]
Add unit types to repo action URL to correctly show 404 when archived (#6247)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 8 Mar 2019 20:28:33 +0000 (20:28 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUse golang 1.12 to build in dockerfile (#6285)
techknowlogick [Fri, 8 Mar 2019 20:25:47 +0000 (15:25 -0500)]
Use golang 1.12 to build in dockerfile (#6285)

5 years agoAdd security note to issue template (#6281)
John Olheiser [Fri, 8 Mar 2019 18:15:46 +0000 (12:15 -0600)]
Add security note to issue template (#6281)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 8 Mar 2019 17:43:26 +0000 (17:43 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoThird party docs (#6282)
John Olheiser [Fri, 8 Mar 2019 17:42:59 +0000 (11:42 -0600)]
Third party docs (#6282)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 8 Mar 2019 16:45:46 +0000 (16:45 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoIntegrate OAuth2 Provider (#5378)
Jonas Franz [Fri, 8 Mar 2019 16:42:50 +0000 (17:42 +0100)]
Integrate OAuth2 Provider (#5378)

5 years ago[Contrib] Checkout a PR (#6021)
Antoine GIRARD [Fri, 8 Mar 2019 01:54:10 +0000 (02:54 +0100)]
[Contrib] Checkout a PR (#6021)

5 years agoAdd robots.txt as reserved username (#6272)
techknowlogick [Thu, 7 Mar 2019 21:30:25 +0000 (16:30 -0500)]
Add robots.txt as reserved username (#6272)

Fix #6271

5 years agoReplace linkRegex with xurls library (#6261)
mrsdizzie [Thu, 7 Mar 2019 20:12:01 +0000 (15:12 -0500)]
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.

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 7 Mar 2019 19:16:42 +0000 (19:16 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoRemove visitLinksForShortLinks features (#6257)
mrsdizzie [Thu, 7 Mar 2019 19:13:44 +0000 (14:13 -0500)]
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.

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 6 Mar 2019 00:50:36 +0000 (00:50 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix fork button (#6223)
John Olheiser [Wed, 6 Mar 2019 00:48:30 +0000 (18:48 -0600)]
Fix fork button (#6223)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 5 Mar 2019 20:18:01 +0000 (20:18 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix #6234 : Check organization visibility before everything else (#6235)
Zsombor [Tue, 5 Mar 2019 20:15:24 +0000 (21:15 +0100)]
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

5 years agoAdd ability to sort issues by due date (#6206) (#6244)
stevegt [Tue, 5 Mar 2019 14:39:41 +0000 (15:39 +0100)]
Add ability to sort issues by due date (#6206) (#6244)

Signed-off-by: Steve Traugott <stevegt@t7a.org>
5 years agoMake organization dropdown scrollable when using mouse wheel (#5988)
Muhammed TİFTİKÇİ [Tue, 5 Mar 2019 03:13:51 +0000 (06:13 +0300)]
Make organization dropdown scrollable when using mouse wheel (#5988)

* Fix #5580

5 years agoPrevent double-close of issues (#6233)
zeripath [Tue, 5 Mar 2019 02:52:52 +0000 (02:52 +0000)]
Prevent double-close of issues (#6233)

5 years agoOverride xorm type mapping for U2F counter (#6232)
Maurizio Porrato [Tue, 5 Mar 2019 02:34:52 +0000 (02:34 +0000)]
Override xorm type mapping for U2F counter (#6232)

5 years agoadd isAdmin to user model (#6231)
Lanre Adelowo [Sun, 3 Mar 2019 22:57:24 +0000 (23:57 +0100)]
add isAdmin to user model (#6231)

update vendor and add tests

fix swagger

5 years agoadd create issue via email comparison (#6227)
Martin Delille [Sat, 2 Mar 2019 20:44:51 +0000 (21:44 +0100)]
add create issue via email comparison (#6227)

5 years agoFix renames over redirects (#6216)
James E. Blair [Sat, 2 Mar 2019 13:07:19 +0000 (05:07 -0800)]
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>
5 years agoadd service desk to comparison (#6220)
Martin Delille [Fri, 1 Mar 2019 23:57:14 +0000 (00:57 +0100)]
add service desk to comparison (#6220)

* add service desk to comparison

* add link to issue

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 1 Mar 2019 20:41:52 +0000 (20:41 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUpdate to docs README (#6221)
John Olheiser [Fri, 1 Mar 2019 20:39:30 +0000 (14:39 -0600)]
Update to docs README (#6221)

* Update to docs README

* Update Hugo link

5 years agoUI: Fix race in update issue labels and assignees (#6194)
silverwind [Thu, 28 Feb 2019 22:10:08 +0000 (23:10 +0100)]
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>

5 years agoModify linkRegex to require http|https (#6171)
mrsdizzie [Thu, 28 Feb 2019 12:31:53 +0000 (07:31 -0500)]
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

5 years agoDoc updates for customization and installation. (#6176)
John Olheiser [Thu, 28 Feb 2019 12:09:47 +0000 (06:09 -0600)]
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

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 28 Feb 2019 08:04:31 +0000 (08:04 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix display dashboard even if require to change password (#6214)
Lunny Xiao [Thu, 28 Feb 2019 08:01:42 +0000 (16:01 +0800)]
fix display dashboard even if require to change password (#6214)

* fix display dashboard even if require to change password

* fix comments

5 years agoCreate a repo redirect when transferring ownership (#6210) (#6211)
James E. Blair [Thu, 28 Feb 2019 03:51:46 +0000 (19:51 -0800)]
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>
5 years agoAdd "ghost" and "notifications" to list of reserved user names. (#6208)
tklein23 [Thu, 28 Feb 2019 00:04:44 +0000 (01:04 +0100)]
Add "ghost" and "notifications" to list of reserved user names. (#6208)

5 years agoAdd Changelog for 1.7.3 (#6202) (#6207)
zeripath [Wed, 27 Feb 2019 20:32:25 +0000 (20:32 +0000)]
Add Changelog for 1.7.3 (#6202) (#6207)

5 years agoAdds MustChangePassword to user create/edit API, defaults to true (#6193)
John Olheiser [Wed, 27 Feb 2019 19:37:57 +0000 (13:37 -0600)]
Adds MustChangePassword to user create/edit API, defaults to true (#6193)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoUI: Style tweaks to issue selection (#6196)
silverwind [Wed, 27 Feb 2019 17:24:21 +0000 (18:24 +0100)]
UI: Style tweaks to issue selection (#6196)

- Prevent jump in layout when selecting the first issue
- Remove useless padding on top of first issue

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 27 Feb 2019 16:58:32 +0000 (16:58 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoChange sqlite DB path default to data directory (#6198)
John Olheiser [Wed, 27 Feb 2019 16:55:08 +0000 (10:55 -0600)]
Change sqlite DB path default to data directory (#6198)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 26 Feb 2019 23:10:22 +0000 (23:10 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUse go 1.12 for tests and deprecate go 1.9 (#6186)
techknowlogick [Tue, 26 Feb 2019 23:07:35 +0000 (18:07 -0500)]
Use go 1.12 for tests and deprecate go 1.9 (#6186)

Blocked until 1.12 docker images are released

5 years agofix bug when migrate repository 500 when repo is existed (#6188)
Lunny Xiao [Tue, 26 Feb 2019 14:28:56 +0000 (22:28 +0800)]
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

5 years agoIncrease Username and Orgname MaxSize 35 -> 40 (#6178)
Segev Finer [Mon, 25 Feb 2019 18:56:47 +0000 (20:56 +0200)]
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>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 25 Feb 2019 10:39:39 +0000 (10:39 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUI: Fix scrollbar always present on page body (#6177)
silverwind [Mon, 25 Feb 2019 10:37:04 +0000 (11:37 +0100)]
UI: Fix scrollbar always present on page body (#6177)

5 years agoUI: Make document body a flexbox (#6139)
silverwind [Sun, 24 Feb 2019 21:02:45 +0000 (22:02 +0100)]
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

5 years agofix bug when set indexer as db and add tests (#6173)
Lunny Xiao [Sun, 24 Feb 2019 16:16:20 +0000 (00:16 +0800)]
fix bug when set indexer as db and add tests (#6173)

5 years agoRefactor coverage profile with multiple packages (#6167) 6153/head
Bo-Yi Wu [Sat, 23 Feb 2019 10:44:32 +0000 (18:44 +0800)]
Refactor coverage profile with multiple packages (#6167)

5 years agofeat(docker): speed up docker build. (#6159)
Bo-Yi Wu [Sat, 23 Feb 2019 01:16:34 +0000 (09:16 +0800)]
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

5 years agofix bug user could change private repository to public when force private enabled...
Lunny Xiao [Fri, 22 Feb 2019 21:56:05 +0000 (05:56 +0800)]
fix bug user could change private repository to public when force private enabled. (#6156)

5 years agofix bug when update owner team then visit team's repo return 404 (#6119)
Lunny Xiao [Fri, 22 Feb 2019 16:14:45 +0000 (00:14 +0800)]
fix bug when update owner team then visit team's repo return 404 (#6119)

5 years agoMake repo creation for API similar to UI (#6142)
John Olheiser [Thu, 21 Feb 2019 22:07:58 +0000 (16:07 -0600)]
Make repo creation for API similar to UI (#6142)

5 years agoAllow display of LFS stored Readme.md on directory page (#6073) (#6099)
zeripath [Thu, 21 Feb 2019 20:57:16 +0000 (20:57 +0000)]
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

5 years agoAdmins can now do unlimited page size user search (listAllUsers & listAllOrgs) (...
John Olheiser [Thu, 21 Feb 2019 20:42:54 +0000 (14:42 -0600)]
Admins can now do unlimited page size user search (listAllUsers & listAllOrgs) (#6143)

Non-admins will default to 10 page size

5 years agoAdd more tests and docs for issue indexer, add db indexer type for searching from...
Lunny Xiao [Thu, 21 Feb 2019 05:01:28 +0000 (13:01 +0800)]
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

5 years agorefactor issue indexer, add some testing and fix a bug (#6131)
Lunny Xiao [Thu, 21 Feb 2019 00:54:05 +0000 (08:54 +0800)]
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

5 years agoMakefile changes for Windows and easier development (#6103)
John Olheiser [Wed, 20 Feb 2019 19:56:40 +0000 (13:56 -0600)]
Makefile changes for Windows and easier development (#6103)

* Added Go Path and node_modules to PATH
* Uses npx now for generate-stylesheets
* Uses `go env GOPATH` to calculate adding GOPATH/bin to PATH
* Added note about installing Node 8.0+ to generate stylesheets
* Added preferred Node version to CONTRIBUTING.md

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 19 Feb 2019 23:12:29 +0000 (23:12 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMinor UI tweaks (#5980)
John Olheiser [Tue, 19 Feb 2019 23:09:47 +0000 (17:09 -0600)]
Minor UI tweaks (#5980)

* Remove all CommitStatus when a repo is deleted

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Minor UI tweaks (#5782)
Added 'No License' option
Added link and octicon change for external issue trackers
Reset password now notifies right away if the code is invalid

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* More UI tweaks
More info in PR

* Generate stylesheet for arc-green

* Make gofmt work

* Change PR integration since the button is changed

* Rebase

* Generate stylesheet

* UI updates
Made the PR button a "basic" button
Vertically centered the issue checkboxes
Labels will update only once after modal is closed

* Commit to reference related issues
Resolves #5782
Resolves #5861
Addresses original question in #5993

* Change the comment wording since PR button is no longer little and green.

* Revert changes that made Windows work

* Regenerate stylesheet

* Regenerate stylesheets

* make generate-stylesheets

* Update integration again, changed button style

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Added ID to PR button
Changed integration to use the ID to avoid breaking in the future

* Added missing semi-colons

* Added back distinction between issue actions and filters (overlooked it before)
Moved action button over next to other action dropdowns

* Remove extra tab formatting in list.tmpl

* Remove more formatting from GoLand

* Replace hardcoded "No License" with i18n license helper.

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 19 Feb 2019 19:28:43 +0000 (19:28 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix heatmap and repository menu display in Internet Explorer 9+ (#6117)
Lauris BH [Tue, 19 Feb 2019 19:26:27 +0000 (21:26 +0200)]
Fix heatmap and repository menu display in Internet Explorer 9+ (#6117)

5 years agoApply for maintainers (#6123)
John Olheiser [Tue, 19 Feb 2019 17:38:11 +0000 (11:38 -0600)]
Apply for maintainers (#6123)

5 years agoLoad Issue attributes for API call (#6122)
John Olheiser [Tue, 19 Feb 2019 17:07:19 +0000 (11:07 -0600)]
Load Issue attributes for API call (#6122)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoremove unused file (#6121)
Lunny Xiao [Tue, 19 Feb 2019 15:22:42 +0000 (23:22 +0800)]
remove unused file (#6121)

5 years agoRefactor issue indexer (#5363)
Lunny Xiao [Tue, 19 Feb 2019 14:39:39 +0000 (22:39 +0800)]
Refactor issue indexer (#5363)

5 years agoShow email if the authenticated user owns the profile page being requested for (...
Lanre Adelowo [Tue, 19 Feb 2019 14:11:50 +0000 (15:11 +0100)]
Show email if the authenticated user owns the profile page being requested for (#4981)

* Show email if the authenticated user owns the profile page being
requested for.

Also removed `setting.UI.ShowUserEmail` as it's documentation says it
only controls the email setting on the explore page

* fix current user check... This prevents a panic as a user must be signed in before ctx.User is called

* fix panic in tests

* try to fix tests

* Update year

* Test CI fail

* Revert change

* User 3 is not allowed to authorize

* Set user2 email to be private

* Change to user4 in explore page as user2 now has private email option set

5 years agodashboard: sort Repositories widget by most recently updated (issue #3963) (#4599)
Allen Wild [Tue, 19 Feb 2019 08:25:28 +0000 (03:25 -0500)]
dashboard: sort Repositories widget by most recently updated (issue #3963) (#4599)

Similar to Github and other git hosting sites, sort the user's repos on
the dashboard by last updated rather than alphabetically. An alphabetic
sort isn't very useful once a user has more than 15 repos and wants
quick access to recent ones that aren't in the first part of the alphabet.

5 years agoFix prohibit login check on authorization (#6106)
Lunny Xiao [Tue, 19 Feb 2019 07:19:28 +0000 (15:19 +0800)]
Fix prohibit login check on authorization (#6106)

* fix bug prohibit login not applied on dashboard

* fix tests

* fix bug user status leak

* fix typo

* return after render

5 years agoShow private organization for admin, fix #6111 (#6112)
Zsombor [Tue, 19 Feb 2019 01:16:06 +0000 (02:16 +0100)]
Show private organization for admin, fix #6111 (#6112)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 18 Feb 2019 20:57:13 +0000 (20:57 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoImplement "conversation lock" for issue comments (#5073)
Lanre Adelowo [Mon, 18 Feb 2019 20:55:04 +0000 (21:55 +0100)]
Implement "conversation lock" for issue comments (#5073)

5 years agoAllow to set organization visibility (public, internal, private) (#1763)
Rémy Boulanouar [Mon, 18 Feb 2019 16:00:27 +0000 (17:00 +0100)]
Allow to set organization visibility (public, internal, private) (#1763)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 18 Feb 2019 12:37:04 +0000 (12:37 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMove to ldap.v3 to fix #5928 (#6105)
zeripath [Mon, 18 Feb 2019 12:34:37 +0000 (12:34 +0000)]
Move to ldap.v3 to fix #5928 (#6105)

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoUpdate bleve dependency to latest master revision (#6100)
Lunny Xiao [Mon, 18 Feb 2019 00:50:26 +0000 (08:50 +0800)]
Update bleve dependency to latest master revision (#6100)

* update bleve to master b17287a86f6cac923a5d886e10618df994eeb54b6724eac2e3b8dde89cfbe3a2

* remove unused pkg from dep file

* change bleve from master to recent revision

5 years agoFix deadlock in webhook PullRequest (#6102)
zeripath [Sun, 17 Feb 2019 21:12:39 +0000 (21:12 +0000)]
Fix deadlock in webhook PullRequest (#6102)

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 17 Feb 2019 05:46:51 +0000 (05:46 +0000)]
[skip ci] Updated translations via Crowdin

5 years agomodules/context/auth.go: fix redirect loop (#5965)
xdch47 [Sun, 17 Feb 2019 05:44:25 +0000 (06:44 +0100)]
modules/context/auth.go: fix redirect loop (#5965)

Closes #5815

5 years agoAllow labels to contain emoji (#6063)
John Olheiser [Sat, 16 Feb 2019 17:33:09 +0000 (11:33 -0600)]
Allow labels to contain emoji (#6063)

* Add emoji to labels
Minor cleanup of tribute code in footer.tmpl

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Quick find/replace in other i18n files containing label translations

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Revert "Quick find/replace in other i18n files containing label translations"

This reverts commit ec3e1a3a1775989301bb2c1cd08e8871b317688d.

* Add style to overwrite emoji height in labels

* Revert Makefile change that makes Windows work

5 years agoadd doc/features/comparison zh-cn translation (#6067)
我没有抓狂 [Sat, 16 Feb 2019 13:12:42 +0000 (21:12 +0800)]
add doc/features/comparison zh-cn translation (#6067)

5 years agoBackport 1.7.2 changelog (#6082)
techknowlogick [Fri, 15 Feb 2019 09:29:26 +0000 (04:29 -0500)]
Backport 1.7.2 changelog (#6082)

* Include changes also from PR #6084

5 years agoRevert "Fix wrapping long code lines in UI" (#6074)
silverwind [Fri, 15 Feb 2019 07:23:20 +0000 (08:23 +0100)]
Revert "Fix wrapping long code lines in UI" (#6074)

This reverts commit e5cd80e0219f10818f43e8cab6b9c814cb1cd796.

Fixes: https://github.com/go-gitea/gitea/issues/6064
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 14 Feb 2019 18:23:25 +0000 (18:23 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUpdate .drone.yml (#6070)
techknowlogick [Thu, 14 Feb 2019 18:20:11 +0000 (13:20 -0500)]
Update .drone.yml (#6070)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 13 Feb 2019 15:47:39 +0000 (15:47 +0000)]
[skip ci] Updated translations via Crowdin

5 years agomake sure labels are actually returned (#6053)
Lanre Adelowo [Wed, 13 Feb 2019 15:45:19 +0000 (16:45 +0100)]
make sure labels are actually returned (#6053)

5 years agoFix panic: template: repo/issue/list:210: unexpected "=" in operand (#6041)
Zsombor [Wed, 13 Feb 2019 08:14:17 +0000 (09:14 +0100)]
Fix panic: template: repo/issue/list:210: unexpected "=" in operand (#6041)

5 years agoUpdate and expand information about building Gitea (#6019)
zeripath [Tue, 12 Feb 2019 16:22:01 +0000 (16:22 +0000)]
Update and expand information about building Gitea (#6019)

* Update and expand building information

Signed-off-by: Andrew Thornton <art27@cantab.net>
* remove extraneous extra line

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix spelling mistake

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Note about documentation for the website

Signed-off-by: Andrew Thornton <art27@cantab.net>
* More changes

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Clarified the automatic build dependency

* Update the from-source to match the hacking information

* Extend quotes

* Update required go and discord link

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update hacking-on-gitea.en-us.md

Add in information about postcss

5 years agoAllow markdown files to read from the LFS (#5787)
zeripath [Tue, 12 Feb 2019 15:09:43 +0000 (15:09 +0000)]
Allow markdown files to read from the LFS (#5787)

This PR makes it possible for the markdown renderer to render images and media straight from the LFS.

Fix #5746

Signed-off-by: Andrew Thornton [art27@cantab.net](mailto:art27@cantab.net)
5 years agoRefactor editor upload, update and delete to use git plumbing and add LFS support...
zeripath [Tue, 12 Feb 2019 13:07:31 +0000 (13:07 +0000)]
Refactor editor upload, update and delete to use git plumbing and add LFS support (#5702)

* Use git plumbing for upload: #5621 repo_editor.go: UploadRepoFile

* Use git plumbing for upload: #5621 repo_editor.go: GetDiffPreview

* Use git plumbing for upload: #5621 repo_editor.go: DeleteRepoFile

* Use git plumbing for upload: #5621 repo_editor.go: UploadRepoFiles

* Move branch checkout functions out of repo_editor.go as they are no longer used there

* BUGFIX: The default permissions should be 100644

    This is a change from the previous code but is more in keeping
    with the default behaviour of git.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Standardise cleanUploadFilename to more closely match git

See verify_path in: https://github.com/git/git/blob/7f4e64169352e03476b0ea64e7e2973669e491a2/read-cache.c#L951

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Redirect on bad paths

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Refactor to move the uploading functions out to a module

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add LFS support

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update upload.go attribution header

Upload.go is essentially the remnants of repo_editor.go. The remaining code is essentially unchanged from the Gogs code, hence the Gogs attribution.

* Delete upload files after session committed

* Ensure that GIT_AUTHOR_NAME etc. are valid for git

see #5774

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add in test cases per @lafriks comment

* Add space between gitea and github imports

Signed-off-by: Andrew Thornton <art27@cantab.net>
* more examples in TestCleanUploadName

Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix formatting

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Set the SSH_ORIGINAL_COMMAND to ensure hooks are run

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Switch off SSH_ORIGINAL_COMMAND

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoIn basic auth check for tokens before call UserSignIn (#5725)
manuelluis [Tue, 12 Feb 2019 09:20:08 +0000 (10:20 +0100)]
In basic auth check for tokens before call UserSignIn (#5725)

* Check first if user/password is a token

* In basic auth check if user/password is a token

* Remove unnecessary else statement

* Changes of fmt

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 12 Feb 2019 08:40:40 +0000 (08:40 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd the Owner Name to differentiate when merging (#3807)
Luo Yifei [Tue, 12 Feb 2019 08:37:32 +0000 (16:37 +0800)]
Add the Owner Name to differentiate when merging (#3807)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 11 Feb 2019 17:12:45 +0000 (17:12 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoRun benchmark at tag to track performances (#6035)
Antoine GIRARD [Mon, 11 Feb 2019 17:09:50 +0000 (18:09 +0100)]
Run benchmark at tag to track performances (#6035)

5 years agoAdd autoprefixer to css build (#6029)
silverwind [Mon, 11 Feb 2019 06:13:30 +0000 (07:13 +0100)]
Add autoprefixer to css build (#6029)

* Add autoprefixer to css build

* also use autoprefixer on theme files

5 years agofix #3200 (#6033)
Lanre Adelowo [Mon, 11 Feb 2019 01:27:24 +0000 (02:27 +0100)]
fix #3200 (#6033)