]> source.dussan.org Git - gitea.git/log
gitea.git
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)

5 years agoupdate docs (#6032)
Lanre Adelowo [Sun, 10 Feb 2019 22:10:00 +0000 (23:10 +0100)]
update docs (#6032)

5 years agoAdd option to close issues via commit on a non master branch (#5992)
Lanre Adelowo [Sun, 10 Feb 2019 19:27:19 +0000 (20:27 +0100)]
Add option to close issues via commit on a non master branch (#5992)

* fixes #5957

* add tests to make sure config option is respected

* use already defined struct

* - use migration to make the flag repo wide not for the entire gitea instance
Also note that the config value can still be set so as to be able to control the value for new repositories that are to be created

- fix copy/paste error in copyright header year and rearrange import

- use repo config instead of server config value to determine if a commit should close an issue

- update testsuite

* use global config only when creating a new repository

* allow repo admin toggle feature via UI

* fix typo and improve testcase

* fix fixtures

* add DEFAULT prefix to config value

* fix test

5 years agoCreate repository on organisation by default on its dashboard (#6026)
zeripath [Sun, 10 Feb 2019 13:30:25 +0000 (13:30 +0000)]
Create repository on organisation by default on its dashboard (#6026)

* Create repository on organisation by default on its dashboard
* Only show owners the add new repositories to an organisation button.

Fix #3253

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoSplit setting.go as multiple files (#6014)
Lunny Xiao [Sun, 10 Feb 2019 01:37:37 +0000 (09:37 +0800)]
Split setting.go as multiple files (#6014)

* split setting.go as multiple files

* fix comments

5 years agoadd default time out for git operations (#6015)
Lunny Xiao [Sat, 9 Feb 2019 22:44:24 +0000 (06:44 +0800)]
add default time out for git operations (#6015)

5 years agoUI: Make dashboard navbar and footer full-width (#6013)
silverwind [Sat, 9 Feb 2019 15:07:38 +0000 (16:07 +0100)]
UI: Make dashboard navbar and footer full-width (#6013)

* UI: Make dashboard navbar full-width

* more tweaks: full-width footer and consistent padding

* fix page layout causing unneccesary scrollbars on small pages

5 years agodisable git fsck for mirrored repos by default (#6018)
Lanre Adelowo [Sat, 9 Feb 2019 14:34:50 +0000 (15:34 +0100)]
disable git fsck for mirrored repos by default (#6018)

5 years agoRemove extra spaces (#6016)
Thomas Loubiou [Sat, 9 Feb 2019 12:48:28 +0000 (13:48 +0100)]
Remove extra spaces (#6016)

5 years agoFix metrics auth token detection (#6006)
Paul [Sat, 9 Feb 2019 05:58:31 +0000 (07:58 +0200)]
Fix metrics auth token detection (#6006)

Signed-off-by: Pauls Barkans <paulsb@gmail.com>
5 years agoIncrease the version of less (#6010)
zeripath [Sat, 9 Feb 2019 03:00:07 +0000 (03:00 +0000)]
Increase the version of less (#6010)

5 years agofix header menu misalignment (#6002)
silverwind [Fri, 8 Feb 2019 17:18:22 +0000 (18:18 +0100)]
fix header menu misalignment (#6002)

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

5 years agoFeature - #3031 - search for org repos (#5986)
Richard Mahn [Fri, 8 Feb 2019 16:45:43 +0000 (09:45 -0700)]
Feature - #3031 - search for org repos (#5986)

5 years agoFix #5799 - swagger for mergePullRequest (#5996)
Thomas Loubiou [Fri, 8 Feb 2019 08:08:38 +0000 (09:08 +0100)]
Fix #5799 - swagger for mergePullRequest (#5996)

5 years agoEnhance closed PR and Issue status in the list (#6000)
Lanre Adelowo [Fri, 8 Feb 2019 07:53:58 +0000 (08:53 +0100)]
Enhance closed PR and Issue status in the list (#6000)

* working version

* Update options/locale/locale_en-US.ini

Co-Authored-By: adelowo <adelowomailbox@gmail.com>
* update templates

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 8 Feb 2019 07:21:32 +0000 (07:21 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUI: Make navbar full width (#5998)
silverwind [Fri, 8 Feb 2019 07:19:21 +0000 (08:19 +0100)]
UI: Make navbar full width (#5998)

5 years agoUI: Fix repo header issues (#5995)
silverwind [Thu, 7 Feb 2019 17:20:26 +0000 (18:20 +0100)]
UI: Fix repo header issues (#5995)

Fixes: https://github.com/go-gitea/gitea/issues/5985
5 years agoUpdate U2F section defaults (#5994)
John Olheiser [Thu, 7 Feb 2019 15:47:40 +0000 (09:47 -0600)]
Update U2F section defaults (#5994)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoAdd API to list tags (#5850)
Lunny Xiao [Thu, 7 Feb 2019 12:00:52 +0000 (20:00 +0800)]
Add API to list tags (#5850)

* Add API to list tags

* update dependency gitea sdk vendor

* fix swagger generation

* fix swagger

* add tests

* update code.gitea.io/git vendor

5 years agouse native golang SSH library but ssh-keygen when enable built-in SSH server to remov...
Lunny Xiao [Thu, 7 Feb 2019 07:13:12 +0000 (15:13 +0800)]
use native golang SSH library but ssh-keygen when enable built-in SSH server to remove dependent on that command lines (#5976)

* use native golang SSH library but ssh-keygen when enable built-in SSH server to remove dependent on that command lines

* fix tests and add comment head

5 years agofix bug when deleting a linked account will removed all (#5989)
Lunny Xiao [Thu, 7 Feb 2019 06:51:23 +0000 (14:51 +0800)]
fix bug when deleting a linked account will removed all (#5989)

5 years agoExpose issue stopwatch toggling via API (#5970)
Lanre Adelowo [Thu, 7 Feb 2019 02:57:25 +0000 (03:57 +0100)]
Expose issue stopwatch toggling via API (#5970)

5 years agoFix empty ssh key importing in ldap (#5984)
zeripath [Thu, 7 Feb 2019 02:38:28 +0000 (02:38 +0000)]
Fix empty ssh key importing in ldap (#5984)

5 years agoSupport n as a line highlight prefix (#5987)
Monty Taylor [Thu, 7 Feb 2019 02:25:23 +0000 (20:25 -0600)]
Support n as a line highlight prefix (#5987)

We're working on rolling out gitea as a replacement for a fairly
large cgit installation. Part of this involves a metric ton of
mod_rewrite rules so that links people have out in the wild will
still work. Unfortunately, cgit uses #n1 in the url to indicate
a single line highlight, which doesn't get passed to the server
and therefore can't be rewritten.

We've got a local workaround by shoving a script block into a
custom header template, but thought it might be nicer to upstream
a simple patch to support #n as a prefix for single line highlights.
(luckily for simplicity, cgit does not support ranges)

Signed-off-by: Monty Taylor <mordred@inaugust.com>