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

5 years agofeat: highlight issue references with : (#8101)
Rinat [Fri, 6 Sep 2019 00:39:54 +0000 (03:39 +0300)]
feat: highlight issue references with : (#8101)

* feat: highlight issue references with :

e.g. #1287: my commit msg
e.g. ABC-1234: my commit msg

* ref: update model regex to consistent with issueNumericPattern

* test: check highlight issue with : in commits messages

5 years agoAdded AppVeyor to the list of CI/CD working with Gitea (#8104)
Feodor Fitsner [Thu, 5 Sep 2019 20:48:35 +0000 (13:48 -0700)]
Added AppVeyor to the list of CI/CD working with Gitea (#8104)

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

5 years agoMake AllowedUsers configurable in sshd_config (#8094)
jpellegrini [Thu, 5 Sep 2019 20:20:55 +0000 (17:20 -0300)]
Make AllowedUsers configurable in sshd_config (#8094)

docker/root/usr/bin/entrypoint already allows for the specification
of USER, USER_UID, USER_GID. But since AllowedUsers is hardcoded in
sshd_config, one cannot log in as a user different ftom git.
This change substitutes ${USER} for git in the sshd_config template.

Signed-off-by: Jeronimo Pellegrini <j_p@aleph0.info>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 5 Sep 2019 09:28:34 +0000 (09:28 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoDisplay description of 'make this repo private' as help text, not as tooltip (#8097)
micw [Thu, 5 Sep 2019 09:13:51 +0000 (11:13 +0200)]
Display description of 'make this repo private' as help text, not as tooltip (#8097)

5 years agoFix broken link (#8091)
nu_no [Wed, 4 Sep 2019 22:31:43 +0000 (00:31 +0200)]
Fix broken link (#8091)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 4 Sep 2019 19:55:18 +0000 (19:55 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUse vendored go-swagger (#8087)
Antoine GIRARD [Wed, 4 Sep 2019 19:53:54 +0000 (21:53 +0200)]
Use vendored go-swagger (#8087)

* Use vendored go-swagger

* vendor go-swagger

* revert un wanteed change

* remove un-needed GO111MODULE

* Update Makefile

Co-Authored-By: techknowlogick <matti@mdranta.net>
5 years agoStrict name matching for Repository.GetTagID() (#8074)
guillep2k [Wed, 4 Sep 2019 05:48:17 +0000 (02:48 -0300)]
Strict name matching for Repository.GetTagID() (#8074)

* Strict name matching for Repository.GetTagID()

* Perform make swagger-check swagger-validate vendor

* Add test for GetTagID()

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

5 years agoFixes deformed emoji in pull request reviews (#8047)
Mario Lubenka [Tue, 3 Sep 2019 17:08:30 +0000 (19:08 +0200)]
Fixes deformed emoji in pull request reviews (#8047)

* Fixes deformed emoji in pull request comments or reviews

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Generate css via command

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 3 Sep 2019 15:48:35 +0000 (15:48 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd API endpoint for accessing repo topics (#7963)
David Svantesson [Tue, 3 Sep 2019 15:46:24 +0000 (17:46 +0200)]
Add API endpoint for accessing repo topics (#7963)

* Create API endpoints for repo topics.

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

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

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

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

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Can't use FindTopics when looking for a single repo topic, as it doesnt use exact match

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add PUT ​/repos​/{owner}​/{repo}​/topics and remove GET ​/repos​/{owner}​/{repo}​/topics

* Ignore if topic is sent twice in same request, refactoring.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix topic dropdown with api changes.

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

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Update API documentation

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Better way to handle duplicate topics in slice

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Make response element TopicName an array of strings, instead of using an array of TopicName

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add test cases for API Repo Topics.

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

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

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix unit tests after adding some more topics to the test fixture.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Update models/topic.go

Limit multiple if else if ...

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* Engine as first parameter in function

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* Replace magic numbers with http status code constants.

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

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Test one read with login and one with token

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add some more tests

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Apply suggestions from code review

Use empty struct for efficiency

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Add test case to check access for user with write access

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Fix access, repo admin required to change topics

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Correct first test to be without token

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Any repo reader should be able to access topics.

* No need for string pointer

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 3 Sep 2019 12:45:01 +0000 (12:45 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAvoid ambiguity of branch/directory names for the git-diff-tree command (#8066)
Mura Li [Tue, 3 Sep 2019 12:42:01 +0000 (20:42 +0800)]
Avoid ambiguity of branch/directory names for the git-diff-tree command (#8066)

5 years agoAdd merged commit id on pull view when it's merged (#8062)
Lunny Xiao [Tue, 3 Sep 2019 06:29:36 +0000 (14:29 +0800)]
Add merged commit id on pull view when it's merged (#8062)

5 years agoAdd change title notification for issues (#8061)
guillep2k [Tue, 3 Sep 2019 02:35:31 +0000 (23:35 -0300)]
Add change title notification for issues (#8061)

5 years agoSearch Commits via Commit Hash (#7400)
Gary Kim [Mon, 2 Sep 2019 23:38:04 +0000 (23:38 +0000)]
Search Commits via Commit Hash (#7400)

* search commits via commit hash

Signed-off-by: Gary Kim <gary@garykim.dev>
* Also include all option for hash search

Signed-off-by: Gary Kim <gary@garykim.dev>
* Remove code duplication in commit search

Signed-off-by: Gary Kim <gary@garykim.dev>
* Add case ignore to commit hash search

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years agoMake encoding tests independent of LOCALE settings (#8018)
guillep2k [Mon, 2 Sep 2019 23:08:07 +0000 (20:08 -0300)]
Make encoding tests independent of LOCALE settings (#8018)

* Make encoding tests independent of LOCALE settings

* Fix fmt

* Force CI to restart

5 years agoAdd tooltip for the visibility checkbox in /repo/create (#8025)
Mura Li [Mon, 2 Sep 2019 22:29:04 +0000 (06:29 +0800)]
Add tooltip for the visibility checkbox in /repo/create (#8025)

* Add tooltip for the visibility checkbox in /repo/create

* Change the tooltip wording

* Update options/locale/locale_en-US.ini

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agoUpdate JS dependencies (#8051)
silverwind [Mon, 2 Sep 2019 21:02:53 +0000 (23:02 +0200)]
Update JS dependencies (#8051)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 2 Sep 2019 19:13:44 +0000 (19:13 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMake CI work (#8057)
guillep2k [Mon, 2 Sep 2019 19:12:29 +0000 (16:12 -0300)]
Make CI work (#8057)

* Use export GOPROXY=https://goproxy.cn before build

* Add go version to generate command

* Reproduced the entire build procedure - see notes

I've used:

sudo go clean -i -r -cache -testcache -modcache
make clean
make generate
make golangci-lint
make revive
make swagger-check
make swagger-validate
make test-vendor            <--- this now fails
make vendor                 <--- this now produced changes
git commit -a               <--- this commit

* Add fix from #8059 to complete CI tests

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 2 Sep 2019 16:14:21 +0000 (16:14 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd strike to old header on comment (#8046)
jaqra [Mon, 2 Sep 2019 16:11:23 +0000 (19:11 +0300)]
Add strike to old header on comment (#8046)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 29 Aug 2019 21:33:03 +0000 (21:33 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoPropose some references about ci/cd solutions compatibles with gitea (#7996)
Km [Thu, 29 Aug 2019 21:30:12 +0000 (23:30 +0200)]
Propose some references about ci/cd solutions compatibles with gitea (#7996)

* Propose some references about ci/cd solutions compatibles with gitea

* No note about theirs integration level, only a starting point.

* Update docs/content/doc/advanced/ci-cd.en-us.md

Improve text

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Improve link to CI solutions

Update docs/content/doc/advanced/ci-cd.en-us.md

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update docs/content/doc/advanced/ci-cd.en-us.md

Typo in name :/

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Remove redundant empty line

* Invite user to consult new CI/CD page

* Link target CI tools

* Jenkins and its plugin

* Update docs/content/doc/advanced/third-party-tools.en-us.md

Simplify link CI/CD

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

Typo

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Provide gitea documentation about drone usage

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

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Apply suggestions from code review

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agoAdd Ability for User to Customize Email Notification Frequency (#7813) 4824/head
Gary Kim [Thu, 29 Aug 2019 14:05:42 +0000 (14:05 +0000)]
Add Ability for User to Customize Email Notification Frequency (#7813)

* Add Backend Logic for Toggling Email Notification

This commit adds the backend logic for
allowing users to enable or disable email
notifications. The implementation ensures
that only issue notification emails get disabled
and important emails are still sent regardless
of the setting.

The UI to toggle this setting has not yet been
implemented.

* Add UI and complete user email notification enable

This commit completes the functionality to allow
users to disable their own email notifications.

Signed-off-by: Gary Kim <gary@garykim.dev>
* Add Third Option for Only Email on Mention

Signed-off-by: Gary Kim <gary@garykim.dev>
* Readd NOT NULL to new preference string

Signed-off-by: Gary Kim <gary@garykim.dev>
* Add Tests and Rewrite Comment

Signed-off-by: Gary Kim <gary@garykim.dev>
* Allow admin to set default email frequency

Signed-off-by: Gary Kim <gary@garykim.dev>
* Add new config option to docs

Signed-off-by: Gary Kim <gary@garykim.dev>
* Fix a few mistakes

Signed-off-by: Gary Kim <gary@garykim.dev>
* Only update required columns

Signed-off-by: Gary Kim <gary@garykim.dev>
* Simplify an error check

Signed-off-by: Gary Kim <gary@garykim.dev>
* Make email_notification_preference column in DB be VARCHAR(20)

Signed-off-by: Gary Kim <gary@garykim.dev>
* Handle errors

Signed-off-by: Gary Kim <gary@garykim.dev>
* Update models/migrations/v93.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agoFix vendor modules.txt (#8032)
Lauris BH [Thu, 29 Aug 2019 13:16:09 +0000 (16:16 +0300)]
Fix vendor modules.txt (#8032)

5 years agoUpdate to mod enabled version goquery (#8021)
Antoine GIRARD [Thu, 29 Aug 2019 03:18:42 +0000 (05:18 +0200)]
Update to mod enabled version goquery (#8021)

* update to mod enabled version goquery

* manually set appengine new release

5 years agoUpdate github.com/lafriks/xormstore and tidy up mod.go (#8020)
guillep2k [Wed, 28 Aug 2019 21:17:14 +0000 (18:17 -0300)]
Update github.com/lafriks/xormstore and tidy up mod.go (#8020)

5 years agoFix make-generate using non-vendor packages (#8008)
Mura Li [Wed, 28 Aug 2019 20:18:15 +0000 (04:18 +0800)]
Fix make-generate using non-vendor packages (#8008)

5 years agoChanged black to white for (read) number label on issue list (#8000)
jaqra [Wed, 28 Aug 2019 10:20:52 +0000 (13:20 +0300)]
Changed black to white for (read) number label on issue list (#8000)

* Changed black color to blue for read number label on issue list page

* Change color to white

5 years agoUpdate swagger to 0.20.1 (#8010)
Antoine GIRARD [Wed, 28 Aug 2019 06:55:22 +0000 (08:55 +0200)]
Update swagger to 0.20.1  (#8010)

* update swagger to 0.20.1

* fiw swagger version for validate

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 28 Aug 2019 02:26:14 +0000 (02:26 +0000)]
[skip ci] Updated translations via Crowdin

5 years agokeep blame view buttons sequence consistent with normal view when view a file (#8007)
Lunny Xiao [Wed, 28 Aug 2019 02:23:18 +0000 (10:23 +0800)]
keep blame view buttons sequence consistent with normal view when view a file (#8007)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 27 Aug 2019 23:01:14 +0000 (23:01 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMove line number to :before attr to hide from search on browser (#8002)
jaqra [Tue, 27 Aug 2019 22:59:05 +0000 (01:59 +0300)]
Move line number to :before attr to hide from search on browser (#8002)

* Move line number to :before attr to hide from search on browser

* Use same variable in WriteString

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 27 Aug 2019 20:36:39 +0000 (20:36 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUse "Pull Request" instead of "Merge Request" (#8003)
kolaente [Tue, 27 Aug 2019 20:33:48 +0000 (22:33 +0200)]
Use "Pull Request" instead of "Merge Request" (#8003)

Signed-off-by: kolaente <k@knt.li>
5 years agoBump eslint-utils from 1.3.1 to 1.4.2 (#7993)
dependabot[bot] [Tue, 27 Aug 2019 04:29:25 +0000 (00:29 -0400)]
Bump eslint-utils from 1.3.1 to 1.4.2 (#7993)

Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agoFixes #7945 - makes sure we are only getting tag refs (#7990)
Richard Mahn [Tue, 27 Aug 2019 03:11:24 +0000 (23:11 -0400)]
Fixes #7945 - makes sure we are only getting tag refs (#7990)

5 years agoRetry create issue to cope with duplicate keys (#7898)
guillep2k [Tue, 27 Aug 2019 02:17:23 +0000 (23:17 -0300)]
Retry create issue to cope with duplicate keys (#7898)

* Retry create issue to cope with duplicate keys

* Use  .SetExpr().Where().Insert()

5 years agoFix adding default Telegram webhook (#7972)
Gary Kim [Mon, 26 Aug 2019 22:59:10 +0000 (22:59 +0000)]
Fix adding default Telegram webhook (#7972)

* Fix adding default Telegram webhook

Fixes #7932

Signed-off-by: Gary Kim <gary@garykim.dev>
* Run goimports

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years agoAdds details about what tags can use the Git tags API (#7989)
Richard Mahn [Mon, 26 Aug 2019 19:52:04 +0000 (15:52 -0400)]
Adds details about what tags can use the Git tags API (#7989)

5 years agoswagger/fix: []string are not enum by swagger definition (#7916)
Antoine GIRARD [Mon, 26 Aug 2019 18:13:10 +0000 (20:13 +0200)]
swagger/fix: []string are not enum by swagger definition (#7916)

* []string are not enum by swagger definition

* apply suggestion of @guillep2k

* re-generate swagger file

5 years agoAPI method to list all commits of a repository (#6408)
Mike Schwörer [Mon, 26 Aug 2019 14:09:10 +0000 (16:09 +0200)]
API method to list all commits of a repository (#6408)

* Added API endpoint ListAllCommits (/repos/{owner}/{repo}/git/commits)

Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* Fixed failing drone build

Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* Implemented requested changes (PR reviews)

Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* gofmt

Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* Changed api route from "/repos/{owner}/{repo}/git/commits" to "/repos/{owner}/{repo}/commits"

* Removed unnecessary line

* better error message when git repo is empty

* make generate-swagger

* fixed removed return

* Update routers/api/v1/repo/commits.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update routers/api/v1/repo/commits.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
* go fmt

* Refactored common code into ToCommit()

* made toCommit not exported

* added check for userCache == nil

5 years agoRun CORS handler first for /api routes (#7967)
Tamal Saha [Mon, 26 Aug 2019 11:33:06 +0000 (04:33 -0700)]
Run CORS handler first for /api routes (#7967)

Signed-off-by: Tamal Saha <tamal@appscode.com>
5 years ago[Branch View] show "New Pull Request" Button only if posible (#7977)
6543 [Mon, 26 Aug 2019 10:47:41 +0000 (12:47 +0200)]
[Branch View] show "New Pull Request" Button only if posible (#7977)

* add check Commits Ahead is gt 0

* code format
to start drone-ci test again
and formate code is also nice :)

5 years agoInclude description in repository search. (#7942)
David Svantesson [Sun, 25 Aug 2019 17:06:36 +0000 (19:06 +0200)]
Include description in repository search. (#7942)

* Add description in repository search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Refactor SearchRepositoryByName with a general function SearchRepository

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Allow to specify if description shall be included in API repo search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add new app.ini setting for whether to search within repo description.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Search keyword in description (if setting enabled) on:
 - Explore page
 - Organization profile page
 - User profile page
 - Admin repo page

Do not search keyword in description on:
 - Any non-keyword search (not relevant)
 - Incremental search (uses API)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Put parameters related to keyword directly after it

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add test cases for including (and not including) repository description in search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Rename test function from TestSearchRepositoryByName to TestSearchRepository.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Make setting SEARCH_REPO_DESCRIPTION default to true

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years agoAbort syncrhonization from LDAP source if there is some error. (#7960)
David Svantesson [Sat, 24 Aug 2019 18:53:37 +0000 (20:53 +0200)]
Abort syncrhonization from LDAP source if there is some error. (#7960)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years agoAdd support for DEFAULT_ORG_MEMBER_VISIBLE (#7669)
guillep2k [Sat, 24 Aug 2019 12:28:59 +0000 (09:28 -0300)]
Add support for DEFAULT_ORG_MEMBER_VISIBLE (#7669)

* Add support for DEFAULT_ORG_MEMBER_VISIBLE

* Correct formatting

* Improved description in cheat sheet.

* Add test for DefaultOrgMemberVisible

* Remove dead code

5 years agoMove database settings from models to setting (#7806)
Lunny Xiao [Sat, 24 Aug 2019 09:24:45 +0000 (17:24 +0800)]
Move database settings from models to setting (#7806)

* move database settings from models to setting

* update docs

* fix checkout pr

* fix tests

* fix lint

* remove unsupported tidb options

* correct wrong variable name

* remove tidb totally

5 years agoDocument possibility to limit API Repo search to topics only. (#7957)
David Svantesson [Sat, 24 Aug 2019 03:17:10 +0000 (05:17 +0200)]
Document possibility to limit API Repo search to topics only. (#7957)

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