]> source.dussan.org Git - gitea.git/log
gitea.git
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 2 Oct 2019 13:01:01 +0000 (13:01 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoChange general form binding to gogs form (#8334)
Aam Surganda [Wed, 2 Oct 2019 12:58:40 +0000 (19:58 +0700)]
Change general form binding to gogs form (#8334)

5 years agoApi: advanced settings for repository (external wiki, issue tracker etc.) (#7756)
David Svantesson [Wed, 2 Oct 2019 09:30:41 +0000 (11:30 +0200)]
Api: advanced settings for repository (external wiki, issue tracker etc.) (#7756)

* Add API for Repo Advanced Settings of wiki and issue tracker

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add some integration tests for tracker and wiki settings through API

* Should return StatusUnprocessableEntity in case of invalid API values.

* Add tests for invalid URLs for external tracker and wiki.

* Do not set inital values if they are default of type

* Make issue tracker and wiki units separate structures in Repository API structure.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix comment of structures

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Rewrite API to use struct for setting tracker and wiki settings.

* LetOnlyContributorsTrackTime -> AllowOnlyContributorsToTrackTime

5 years ago[arc-green] white on hover for active menu items (#8344)
spaeps [Wed, 2 Oct 2019 07:20:30 +0000 (09:20 +0200)]
[arc-green] white on hover for active menu items (#8344)

* [arc-green] white on hover for active menu items

Actually, hovered active menu elements are in an unreadable black text colour.
This should be changed to white.

* [arc-green] white on hover for active menu items
Actually, hovered active menu elements are in an unreadable black text colour.
This should be changed to white.

Now editing less files and commiting with `make css`.

5 years agoUpdate to github.com/lafriks/xormstore@v1.3.0 (#8317)
Antoine GIRARD [Wed, 2 Oct 2019 00:32:12 +0000 (02:32 +0200)]
Update to github.com/lafriks/xormstore@v1.3.0 (#8317)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 1 Oct 2019 23:27:07 +0000 (23:27 +0000)]
[skip ci] Updated translations via Crowdin

5 years agotypo fix (#8345)
helix84 [Tue, 1 Oct 2019 23:25:32 +0000 (01:25 +0200)]
typo fix (#8345)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 1 Oct 2019 13:43:35 +0000 (13:43 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMove mirror to a standalone package from models (#7486)
Lunny Xiao [Tue, 1 Oct 2019 13:40:17 +0000 (21:40 +0800)]
Move mirror to a standalone package from models (#7486)

* move mirror to a standalone package

* fix mirror address in template

* fix tests

* fix lint

* fix comment

* fix tests

* fix tests

* fix vendor

* fix fmt

* fix lint

* remove wrong file submitted

* fix conflict

* remove unrelated changes

* fix go mod

* fix tests

* clean go mod

* make vendor work

* make vendor work

* fix tests

* remove duplicated test

5 years ago[skip ci] Updated translations via Crowdin 8333/head
GiteaBot [Tue, 1 Oct 2019 05:35:37 +0000 (05:35 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAPI endpoint for searching teams. (#8108)
David Svantesson [Tue, 1 Oct 2019 05:32:28 +0000 (07:32 +0200)]
API endpoint for searching teams. (#8108)

* Api endpoint for searching teams.

Signed-off-by: dasv <david.svantesson@qrtech.se>
* Move API to /orgs/:org/teams/search

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Regenerate swagger

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix search is Get

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add test for search team API.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Update routers/api/v1/org/team.go

grammar

Co-Authored-By: Richard Mahn <richmahn@users.noreply.github.com>
* Fix review comments

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix some issues in repo collaboration team search, after changes in this PR.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Remove teamUser which is not used and replace with actual user id.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Remove unused search variable UserIsAdmin.

* Add paging to team search.

* Re-genereate swagger

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix review comments

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* fix

* Regenerate swagger

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Sep 2019 16:12:50 +0000 (16:12 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoExtract actions on deletereleasebyid from models to release service (#8219)
Lunny Xiao [Mon, 30 Sep 2019 16:10:00 +0000 (00:10 +0800)]
Extract actions on deletereleasebyid from models to release service (#8219)

* extract actions on deletereleasebyid from models to release service

* fix tests

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Sep 2019 14:00:59 +0000 (14:00 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoExtract actions on new issue from models to services (#8217)
Lunny Xiao [Mon, 30 Sep 2019 13:50:44 +0000 (21:50 +0800)]
Extract actions on new issue from models to services (#8217)

* extract actions on new issue from models to services

* improve code

* rename services/issues to services/issue

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Sep 2019 09:21:01 +0000 (09:21 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix pull request commit status in user dashboard list (#8321)
Elias Norberg [Mon, 30 Sep 2019 09:16:29 +0000 (11:16 +0200)]
Fix pull request commit status in user dashboard list (#8321)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Sep 2019 02:36:41 +0000 (02:36 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoIf no specific context is required for status check, require an overall success ...
Elias Norberg [Mon, 30 Sep 2019 02:33:40 +0000 (04:33 +0200)]
If no specific context is required for status check, require an overall success (#8318)

Signed-off-by: Elias Norberg <elias@aisle.se>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Sep 2019 01:11:00 +0000 (01:11 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoShow correct commit status in PR list (#8316)
Elias Norberg [Mon, 30 Sep 2019 01:07:43 +0000 (03:07 +0200)]
Show correct commit status in PR list (#8316)

* Use correct index when fetching commit status

Signed-off-by: Elias Norberg <elias@aisle.se>
* Compare against base repo to avoid mismatch when merging from fork

Signed-off-by: Elias Norberg <elias@aisle.se>
5 years agoFix repo_admin_change_team_access always checked in org settings (#8319)
David Svantesson [Sun, 29 Sep 2019 23:20:27 +0000 (01:20 +0200)]
Fix repo_admin_change_team_access always checked in org settings (#8319)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 29 Sep 2019 20:38:07 +0000 (20:38 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd 'make revive' to instructions for checking code (#8314)
David Svantesson [Sun, 29 Sep 2019 20:36:52 +0000 (22:36 +0200)]
Add 'make revive' to instructions for checking code (#8314)

* Add 'make revive' to instructions for checking code

This is performed on drone, hacking instructions should contain the same to avoid unnecessary PR builds.

* lint is deprecated. Denote revive +vet as code analysis in continuous text.

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 29 Sep 2019 12:54:17 +0000 (12:54 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUpgrade xorm to latest to fix insert issue bug (#8309)
Lunny Xiao [Sun, 29 Sep 2019 12:52:39 +0000 (20:52 +0800)]
Upgrade xorm to latest to fix insert issue bug (#8309)

* upgrade xorm to latest to fix insert issue bug

* add newissue unit tests

* update xorm version

* fix tests

5 years agoFix API for edit and delete release attachment (#8285)
David Svantesson [Fri, 27 Sep 2019 02:24:06 +0000 (04:24 +0200)]
Fix API for edit and delete release attachment (#8285)

* Add logging for when user requested attachment doesn't belong to the specified release.

* Fix API to use correct variable for release asset (attachment)

5 years agoExtract actions on new pull request from models to pulls service and move code.gitea...
Lunny Xiao [Fri, 27 Sep 2019 00:22:36 +0000 (08:22 +0800)]
Extract actions on new pull request from models to pulls service and move code.gitea.io/gitea/modules/pull to code.gitea.io/gitea/services/pull (#8218)

* extract actions on new pull request from models to pulls service

* improve code

* move code.gitea.io/gitea/modules/pull to code.gitea.io/gitea/services/pull

* fix fmt

* Rename pulls.go to pull.go

5 years agoAlwaywas return local url for users avatar (#8245)
Sandro Santilli [Thu, 26 Sep 2019 16:21:23 +0000 (18:21 +0200)]
Alwaywas return local url for users avatar (#8245)

* Always return local url for users avatar

Avoids having to wait for DNS lookups when libravatar is activated
fixing #6046

* Avoid double slash in avatar link

* Move avatar route to the correct place

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 26 Sep 2019 13:26:39 +0000 (13:26 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdded myself to translators list (#8292)
Adam [Thu, 26 Sep 2019 13:16:35 +0000 (15:16 +0200)]
Added myself to translators list (#8292)

5 years ago[docs] Docker build - ZeroMQ dependency for Jupyter (#8262)
Bill Wenrich [Thu, 26 Sep 2019 07:04:53 +0000 (03:04 -0400)]
[docs] Docker build - ZeroMQ dependency for Jupyter (#8262)

* doc py3-zmq - ZeroMQ bindings for jupyter

#7970 https://github.com/go-gitea/gitea/issues/7970

* rebase Dockerfile to 1.9.x for jupyter

* [docs] external-renderers.en-us.md - use templated variable for version

Co-Authored-By: techknowlogick <matti@mdranta.net>
5 years agoUpdate xorm (#8286)
John Olheiser [Wed, 25 Sep 2019 19:02:54 +0000 (14:02 -0500)]
Update xorm (#8286)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoImprove integration tests (#8276)
Lunny Xiao [Wed, 25 Sep 2019 12:13:18 +0000 (20:13 +0800)]
Improve integration tests (#8276)

* improve integration tests

* fix Makefile

* improve makefile and integration docs

5 years agoFix nil ref (#8281)
guillep2k [Wed, 25 Sep 2019 03:57:06 +0000 (00:57 -0300)]
Fix nil ref (#8281)

5 years agoUpdate hacking-on-gitea.en-us.md (#8275)
David Svantesson [Tue, 24 Sep 2019 18:29:11 +0000 (20:29 +0200)]
Update hacking-on-gitea.en-us.md (#8275)

Fix spelling of misspell in command to validate swagger.

5 years agoMove create issue comment to comments package (#8212)
Lunny Xiao [Tue, 24 Sep 2019 17:39:50 +0000 (01:39 +0800)]
Move create issue comment to comments package (#8212)

* move create issue comment to comments package

* extract actions on update/delete comment from models to comment service

* fix lint

* fix lint

5 years agoTest more reserved usernames (#8263)
Sandro Santilli [Tue, 24 Sep 2019 17:12:56 +0000 (19:12 +0200)]
Test more reserved usernames (#8263)

* Test more reserved usernames

* Add more reserved usernames, sort them

* Reserve "attachments" username (is a used route)

* It's "avatars" being reserved, not "avatar"

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 24 Sep 2019 13:26:59 +0000 (13:26 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix label count (#8267)
Lunny Xiao [Tue, 24 Sep 2019 13:22:39 +0000 (21:22 +0800)]
Fix label count (#8267)

* fix label count

* fix vendor

* fix import order

* update xorm to fix bug

* fix tests

* fix mssql bug

5 years agoFix assets key on release webhook (#8253)
Daniel Fonseca de Lira [Tue, 24 Sep 2019 06:55:07 +0000 (03:55 -0300)]
Fix assets key on release webhook (#8253)

* Fix assets key on release webhook

* Fix assets key on release webhook

* Add message to log on AddReleaseAttachments failure

5 years agoMove all mail related codes from models to services/mailer (#7200)
Lunny Xiao [Tue, 24 Sep 2019 05:02:49 +0000 (13:02 +0800)]
Move all mail related codes from models to services/mailer (#7200)

* move all mail related codes from models to modules/mailer

* fix lint

* use DBContext instead Engine

* use WithContext not WithEngine

* Use DBContext instead of Engine

* don't use defer when sess.Close()

* move DBContext to context.go and add some methods

* move mailer from modules/ to services

* fix lint

* fix tests

* fix fmt

* add gitea copyright

* fix tests

* don't expose db functions

* make code clear

* add DefaultDBContext

* fix build

* fix bug

5 years agoDo only show teams access for organization repositories, not for personal repositorie...
David Svantesson [Tue, 24 Sep 2019 01:30:40 +0000 (03:30 +0200)]
Do only show teams access for organization repositories, not for personal repositories (#8265)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 23 Sep 2019 20:10:56 +0000 (20:10 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd teams to repo on collaboration page. (#8045)
David Svantesson [Mon, 23 Sep 2019 20:08:03 +0000 (22:08 +0200)]
Add teams to repo on collaboration page. (#8045)

* Add teams to repo on collaboration page.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add option for repository admins to change teams access to repo.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add comment for functions

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Make RepoAdminChangeTeamAccess default false in xorm and make it default checked in template instead.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Make proper language strings and fix error redirection.

* Add unit tests for adding and deleting team from repository.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add database migration

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix redirect

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix locale string mismatch.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Move team access mode text logic to template.

* Move collaborator access mode text logic to template.

5 years agoDelete releases attachments if release is deleted (#6068)
Lanre Adelowo [Sun, 22 Sep 2019 09:05:48 +0000 (10:05 +0100)]
Delete releases attachments if release is deleted (#6068)

* delete attachments from the database and file system

* add migration

* fix import statements

* fix package name

* remove conditional should in case the confi has been changed and the server restarted

* simplify deletion of attachments in DB

* fix CI build

* fix review

* add copyright in the proper place

* fix review

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 21 Sep 2019 17:05:00 +0000 (17:05 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix utf8 tests (#8192)
guillep2k [Sat, 21 Sep 2019 17:01:34 +0000 (14:01 -0300)]
Fix utf8 tests (#8192)

* Prevent compiler environment from making the tests fail

* Remove unused function

* Pass lint

5 years agoRemove unnecessary backslash (#8249)
John Olheiser [Fri, 20 Sep 2019 17:06:17 +0000 (12:06 -0500)]
Remove unnecessary backslash (#8249)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 20 Sep 2019 14:08:48 +0000 (14:08 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoChange link on issue milestone (#8246)
guillep2k [Fri, 20 Sep 2019 14:05:05 +0000 (11:05 -0300)]
Change link on issue milestone (#8246)

* Change link on issue milestone

* Fix the sidebar link for milestone

5 years agoReference issues from pull requests and other issues (#8137)
guillep2k [Fri, 20 Sep 2019 05:45:38 +0000 (02:45 -0300)]
Reference issues from pull requests and other issues (#8137)

* Update ref comment

* Generate comment on simple ref

* Make fmt + remove unneeded repo load

* Add TODO comments

* Add ref-check in issue creation; re-arrange template

* Make unit tests pass; rearrange code

* Make fmt

* Filter out xref comment if user can't see the referencing issue

* Add TODOs

* Add cross reference

* Rearrange code; add cross-repository references

* Striketrhough obsolete references

* Remove unnecesary TODO

* Add "not supported" note

* Support for edits and deletes, and issue title

* Revert changes to go.mod

* Fix fmt

* Add support for xref from API

* Add first integration test

* Add integration tests

* Correct formatting

* Fix add comment test

* Add migration

* Remove outdated comments; fix typo

* Some code refactoring and rearranging

* Rename findCrossReferences to createCrossReferences

* Delete xrefs when repository is deleted

* Corrections as suggested by @lafriks

* Prepare for merge

* Fix log for errors

5 years agoAllow registration when button is hidden (#8237)
guillep2k [Thu, 19 Sep 2019 14:40:33 +0000 (11:40 -0300)]
Allow registration when button is hidden (#8237)

5 years agoREADME: add License shield (#8235)
6543 [Thu, 19 Sep 2019 02:01:38 +0000 (04:01 +0200)]
README: add License shield (#8235)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 19 Sep 2019 00:27:00 +0000 (00:27 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix release API URL generation (#8234)
Daniel Fonseca de Lira [Thu, 19 Sep 2019 00:23:45 +0000 (21:23 -0300)]
Fix release API URL generation (#8234)

5 years agoupdate cache item_ttl docs (#8222)
Lunny Xiao [Wed, 18 Sep 2019 07:50:45 +0000 (15:50 +0800)]
update cache item_ttl docs (#8222)

5 years agoAdd 'Mentioning you' group to /issues page (#8201)
jaqra [Wed, 18 Sep 2019 07:24:44 +0000 (10:24 +0300)]
Add 'Mentioning you' group to /issues page (#8201)

5 years agoRefuse merge until all required status checks success (#7481)
Lunny Xiao [Wed, 18 Sep 2019 05:39:45 +0000 (13:39 +0800)]
Refuse merge until all required status checks success (#7481)

* refuse merge until ci successfully

* deny merge request when required status checkes not succeed on merge Post and API

* add database migration for added columns on protected_branch

* fix migration

* fix protected branch check bug

* fix protected branch settings

* remove duplicated code on check pull request's required commit statuses pass

* remove unused codes

* fix migration

* add newline for template file

* fix go mod

* rename function name and some other fixes

* fix template

* fix bug pull view

* remove go1.12 wrong dependencies

* add administrator bypass when protected branch status check enabled

* fix bug

* improve the codes

5 years agomove some milestone functions to a standalone package (#8213)
Lunny Xiao [Wed, 18 Sep 2019 00:17:12 +0000 (08:17 +0800)]
move some milestone functions to a standalone package (#8213)

5 years agoMS Teams webhook misses commit messages (#8209)
Bjoern Petri [Tue, 17 Sep 2019 19:56:29 +0000 (21:56 +0200)]
MS Teams webhook misses commit messages (#8209)

The current webhook just shows the amount of commits, but misses the actual commit description. While the code is actually there to include the description, it is just not included.

Signed-off-by: Bjoern Petri <bjoern.petri@sundevil.de>
5 years agoDisable max height property of comment textarea (#8203)
jaqra [Tue, 17 Sep 2019 15:54:35 +0000 (18:54 +0300)]
Disable max height property of comment textarea (#8203)

5 years agoRemove legacy handling of drone token (#8191)
techknowlogick [Tue, 17 Sep 2019 12:13:24 +0000 (08:13 -0400)]
Remove legacy handling of drone token (#8191)

Now Drone has removed Gitea user/pass handling we can remove legacy handling

5 years agoFix data race (#8204)
Mura Li [Tue, 17 Sep 2019 09:39:37 +0000 (17:39 +0800)]
Fix data race (#8204)

* Fix data race

* Fix data race in modules/log

* Make the scope of lock finner-grained

* Use syc.Map

* Fix missing change in the test

* Do not export LoggerMap

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 17 Sep 2019 06:26:13 +0000 (06:26 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofaq: mention EMAIL_DOMAIN_WHITELIST on allowing email domains (#8198)
Mikaela Suomalainen [Tue, 17 Sep 2019 06:24:39 +0000 (09:24 +0300)]
faq: mention EMAIL_DOMAIN_WHITELIST on allowing email domains (#8198)

* faq: mention EMAIL_DOMAIN_WHITELIST on allowing email domains

Signed-off-by: Mikaela Suomalainen <mikaela+git@mikaela.info>
* faq: separate openid from allow/block email domain

Signed-off-by: Mikaela Suomalainen <mikaela+git@mikaela.info>
* faq: update ToC

Signed-off-by: Mikaela Suomalainen <mikaela+git@mikaela.info>
* Update docs/content/doc/help/faq.en-us.md

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Update docs/content/doc/help/faq.en-us.md

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
5 years agoAdds side-by-side diff for images (#6784)
Mario Lubenka [Mon, 16 Sep 2019 09:03:22 +0000 (11:03 +0200)]
Adds side-by-side diff for images (#6784)

* Adds side-by-side diff for images

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Explain blank imports

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Use complete word for width and height labels on image compare

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Update index.css from master

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Moves ImageInfo to git commit file

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Assign ImageInfo function for template and sets correct target for BeforeSourcePath

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adds missing comment

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Return error if ImageInfo failed

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Avoid template panic when ImageInfo failed for some reason

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Show file size on image diff

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Removes unused helper function

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Reverts copyright year change

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Close file reader

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Update commit.go

Sets correct data key

* Moves reader.Close() up a few lines

* Updates index.css

* Updates CSS file

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Transfers adjustments for image compare to compare.go file

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adjusts variable name

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Apply lesshint recommendations

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Do not show old image on image compare if it is not in index of base commit

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Change file size text

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
5 years agoFix pull merge 500 error caused by git-fetch breaking behaviors (#8161)
Mura Li [Mon, 16 Sep 2019 03:03:08 +0000 (11:03 +0800)]
Fix pull merge 500 error caused by git-fetch breaking behaviors (#8161)

5 years ago[ssh] fix the config specification in the authorized_keys template (#8031)
Jakob Ackermann [Sun, 15 Sep 2019 22:51:40 +0000 (00:51 +0200)]
[ssh] fix the config specification in the authorized_keys template (#8031)

The gitea flags must appear in front of the gitea command. Otherwise
 they are ignored.

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
5 years agoMove create release from models to a standalone package (#7539)
Lunny Xiao [Sun, 15 Sep 2019 15:28:25 +0000 (23:28 +0800)]
Move create release from models to a standalone package (#7539)

* move create release from models to a standalone package

* fix lint

* fix comment year

* fix lint

* fix lint

* fix package import name

* fix vendor

* fix go mod

* some refactors

* fix vendor

* use go1.12 make vendor

* fix vendor

5 years agoFix team user api (#8172)
Lunny Xiao [Sun, 15 Sep 2019 12:22:02 +0000 (20:22 +0800)]
Fix team user api (#8172)

* fix team user api

* fix tests

* fix api

* fix team user api

* change user convert

* fix tests

* fix tests

5 years agoInclude git-hook regeneration in restore documentation (#8181)
W Anders [Sun, 15 Sep 2019 02:37:09 +0000 (21:37 -0500)]
Include git-hook regeneration in restore documentation (#8181)

* Added admin cmd ref to backup-restore guide

* Clarified reason for command execution

* Include directive for where command should be executed from

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Be direct in consequences

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years agomigrate gplus to google oauth2 provider (#7885)
techknowlogick [Sat, 14 Sep 2019 10:02:39 +0000 (06:02 -0400)]
migrate gplus to google oauth2 provider (#7885)

* migrate gplus to google oauth2 provider. this still provides support for old gplus connections.

* Update models/oauth2.go

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* make vendor

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 14 Sep 2019 07:07:25 +0000 (07:07 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoGit min requirements (#8177)
guillep2k [Sat, 14 Sep 2019 06:24:26 +0000 (03:24 -0300)]
Git min requirements (#8177)

* Add minimum git requirements.

* Added comments about git lfs and commit-graph

* Fix capitalization

5 years ago[fix #7384] make show private icon when repo avatar set (#8144)
jaqra [Fri, 13 Sep 2019 04:15:26 +0000 (07:15 +0300)]
[fix #7384] make show private icon when repo avatar set (#8144)

5 years agooauth2 with remote Gitea - Fix #8093 (#8149)
techknowlogick [Fri, 13 Sep 2019 02:15:36 +0000 (22:15 -0400)]
oauth2 with remote Gitea - Fix #8093 (#8149)

5 years agoupdate docs to latest version (#8164)
techknowlogick [Thu, 12 Sep 2019 17:23:39 +0000 (13:23 -0400)]
update docs to latest version (#8164)

5 years agouse go 1.13 (#8088)
techknowlogick [Thu, 12 Sep 2019 11:58:32 +0000 (07:58 -0400)]
use go 1.13 (#8088)

* use go 1.13

* use go 1.13 in gomod file

* Update Makefile

* update swagger deps

5 years agoapply emoji on dashboard issue list labels (#8156)
jaqra [Thu, 12 Sep 2019 10:00:55 +0000 (13:00 +0300)]
apply emoji on dashboard issue list labels (#8156)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 12 Sep 2019 09:33:49 +0000 (09:33 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMove ref (branch or tag) location on issue list page (#8157)
jaqra [Thu, 12 Sep 2019 09:31:36 +0000 (12:31 +0300)]
Move ref (branch or tag) location on issue list page (#8157)

* Move ref (branch or tag) location on issue list page

* Make looks better

* move branch label also on milestone/{id} page

* [/issues page] Add milestone, Add Ref, Fix Assignees

* [repo issues page] reorder tasks, milestone and ref

5 years agoFix reading git notes from nested trees (#8026)
Filip Navara [Thu, 12 Sep 2019 01:14:41 +0000 (03:14 +0200)]
Fix reading git notes from nested trees (#8026)

* Fix reading notes from nested trees

The GIT documentation for notes states "Permitted pathnames have the
form ab/cd/ef/.../abcdef...: a sequence of directory names of two
hexadecimal digits each followed by a filename with the rest of
the object ID."

* Add test case

* Fix new lines

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 11 Sep 2019 21:28:55 +0000 (21:28 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix downloads url (#8153)
Johan Van de Wauw [Wed, 11 Sep 2019 21:10:50 +0000 (23:10 +0200)]
Fix downloads url (#8153)

The link without slash is not working

5 years agoRestrict repository indexing by glob match (#7767)
guillep2k [Wed, 11 Sep 2019 17:26:28 +0000 (14:26 -0300)]
Restrict repository indexing by glob match (#7767)

* Restrict repository indexing by file extension

* Use REPO_EXTENSIONS_LIST_INCLUDE instead of REPO_EXTENSIONS_LIST_EXCLUDE and have a more flexible extension pattern

* Corrected to pass lint gosimple

* Add wildcard support to REPO_INDEXER_EXTENSIONS

* This reverts commit 72a650c8e42f4abf59d5df7cd5dc27b451494cc6.

* Add wildcard support to REPO_INDEXER_EXTENSIONS (no make vendor)

* Simplify isIndexable() for better clarity

* Add gobwas/glob to vendors

* manually set appengine new release

* Implement better REPO_INDEXER_INCLUDE and REPO_INDEXER_EXCLUDE

* Add unit and integration tests

* Update app.ini.sample and reword config-cheat-sheet

* Add doc page and correct app.ini.sample

* Some polish on the doc

* Simplify code as suggested by @lafriks

5 years agoUpdate third-party-tools.en-us.md (#8148)
techknowlogick [Wed, 11 Sep 2019 04:16:11 +0000 (00:16 -0400)]
Update third-party-tools.en-us.md (#8148)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 10 Sep 2019 17:11:24 +0000 (17:11 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMake link last commit massages in repository home page and commit tables (#8006)
jaqra [Tue, 10 Sep 2019 09:03:30 +0000 (12:03 +0300)]
Make link last commit massages in repository home page and commit tables (#8006)

* Make link last commit massages in repository home page and commit tables

* Use RenderCommitMessageLink instead surround with a

* deleted __debug_bin file

* Exclude email to link from latest commit title

* Exclude email processor from commit table

Co-Authored-By: mrsdizzie <info@mrsdizzie.com>
* Add class parameter to a html element creator functions.
Make links underline dashed that are not commit

* fix tests

* Show dashed underline when also not hovered

5 years agoFix webhooks to use proxy from environment (#8116)
Lauris BH [Mon, 9 Sep 2019 16:21:07 +0000 (19:21 +0300)]
Fix webhooks to use proxy from environment (#8116)

5 years agoImplement webhook branch filter (#7791)
WGH [Mon, 9 Sep 2019 05:48:21 +0000 (08:48 +0300)]
Implement webhook branch filter (#7791)

* Fix validate() function to handle errors in embedded anon structs

* Implement webhook branch filter

See #2025, #3998.

5 years agoAdd option to initialize repository with labels (#6061)
John Olheiser [Sun, 8 Sep 2019 08:28:40 +0000 (03:28 -0500)]
Add option to initialize repository with labels (#6061)

* Add optional label sets on repo creation

* Fix CRLF

* Instead of hardcoding default, make it the helper

* Move label set init out of repo init

Add a new error for the router
Combine router label init with repo creation label init

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add issue labels to Swagger for repo creation

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update models/issue_label.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update models/issue_label.go

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 7 Sep 2019 14:55:43 +0000 (14:55 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd reviewrs as participants (#8121)
guillep2k [Sat, 7 Sep 2019 14:53:35 +0000 (11:53 -0300)]
Add reviewrs as participants (#8121)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 7 Sep 2019 11:19:22 +0000 (11:19 +0000)]
[skip ci] Updated translations via Crowdin

5 years ago1148: Take up the full width when viewing the diff in split view. (#8114)
pmdematagoda [Sat, 7 Sep 2019 11:17:42 +0000 (21:17 +1000)]
1148: Take up the full width when viewing the diff in split view. (#8114)

This replicates how the commit view works in split view.

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 6 Sep 2019 19:26:14 +0000 (19:26 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoChangelog for 1.9.3 (#8118)
guillep2k [Fri, 6 Sep 2019 18:52:53 +0000 (15:52 -0300)]
Changelog for 1.9.3 (#8118)

5 years agoFix Go 1.13 private repository go get issue (#8112)
Lunny Xiao [Fri, 6 Sep 2019 13:44:59 +0000 (21:44 +0800)]
Fix Go 1.13 private repository go get issue (#8112)

* Fix Go 1.13 invalid import path creation

Signed-off-by: Rutger Broekhoff <rutger@viasalix.nl>
* Apply suggested changes from #8100

Signed-off-by: Rutger Broekhoff <rutger@viasalix.nl>
5 years agoMove git diff codes from models to services/gitdiff (#7889)
Lunny Xiao [Fri, 6 Sep 2019 02:20:09 +0000 (10:20 +0800)]
Move git diff codes from models to services/gitdiff (#7889)

* move git diff codes from models to services/gitdiff

* fix template

* fix test

* fix template