]> source.dussan.org Git - gitea.git/log
gitea.git
4 years agoFix for a wrong URL in activity page of repository. (Using config url instead of...
Flutterlice [Wed, 1 Jan 2020 00:54:21 +0000 (05:54 +0500)]
Fix for a wrong URL in activity page of repository. (Using config url instead of an actual one) (#9571)

4 years agoUpdate default issue template (#9568)
mrsdizzie [Tue, 31 Dec 2019 19:30:46 +0000 (14:30 -0500)]
Update default issue template (#9568)

Some small changes:

* Include text if approve/comment/request changes on PR
* List filename for review comments
* Bold username when mentioned

This will stop empty body messages when approving PR on gitea.com

4 years ago[API] Fix 9544 | return 200 when reaction already exist (#9550)
6543 [Tue, 31 Dec 2019 08:21:21 +0000 (09:21 +0100)]
[API] Fix 9544 | return 200 when reaction already exist (#9550)

* add ErrReactionAlreadyExist

* extend CreateReaction

* reaction already exist = 200

* extend FindReactionsOptions

* refactor swagger options/definitions

* fix swagger-validate

* Update models/error.go

Co-Authored-By: zeripath <art27@cantab.net>
* fix test PART1

* extend FindReactionsOptions with UserID option

* catch error on test

* fix test PART2

* format ...

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoupdate swagger info (#9558)
6543 [Tue, 31 Dec 2019 04:11:15 +0000 (05:11 +0100)]
update swagger info (#9558)

4 years agoChange markdown rendering from blackfriday to goldmark (#9533)
zeripath [Tue, 31 Dec 2019 01:53:28 +0000 (01:53 +0000)]
Change markdown rendering from blackfriday to goldmark  (#9533)

* Move to goldmark

Markdown rendering moved from blackfriday to the goldmark.

Multiple subtle changes required to the goldmark extensions to keep
current rendering and defaults.

Can go further with goldmark linkify and have this work within markdown
rendering making the link processor unnecessary.

Need to think about how to go about allowing extensions - at present it
seems that these would be hard to do without recompilation.

* linter fixes

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoProvide Default messages for merges (#9393)
zeripath [Mon, 30 Dec 2019 23:34:11 +0000 (23:34 +0000)]
Provide Default messages for merges (#9393)

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Dec 2019 17:14:49 +0000 (17:14 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoIn SimpleMDE check if trigger exists before call (#9545)
zeripath [Mon, 30 Dec 2019 17:11:50 +0000 (17:11 +0000)]
In SimpleMDE check if trigger exists before call (#9545)

4 years ago[BugFix] use default avatar for ghost user (fix 500 error) (#9536)
6543 [Sun, 29 Dec 2019 14:24:50 +0000 (15:24 +0100)]
[BugFix] use default avatar for ghost user (fix 500 error) (#9536)

* remove since it is there for 3years

* fix 500 error for ghost avatar

* dont insert "-1" in any case to issue.poster_id

* fix lint

* Test: ghost avatar link

* fix test

* Revert "remove since it is there for 3years"

This reverts commit fd9ad05159c84ba804b126d2a959963d82578b22.

* Revert "dont insert "-1" in any case to issue.poster_id"

This reverts commit 05469ab6d815a6cc6478a256018b9ed1a12749e0.

Co-authored-by: zeripath <art27@cantab.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 29 Dec 2019 12:34:39 +0000 (12:34 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoremove since it is there for 3years (#9538)
6543 [Sun, 29 Dec 2019 12:32:31 +0000 (13:32 +0100)]
remove since it is there for 3years (#9538)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 28 Dec 2019 23:35:29 +0000 (23:35 +0000)]
[skip ci] Updated translations via Crowdin

4 years ago[Fix] Release attachment should use DownloadURL() not Name (#9529)
6543 [Sat, 28 Dec 2019 23:33:13 +0000 (00:33 +0100)]
[Fix] Release attachment should use DownloadURL() not Name (#9529)

* Handle if two or more attachments have the same name
* previously only the first could be downloaded - now each is downloadable
* dos also take care of  #6506 (fix was: #6512)
* use func DownloadURL() at issue attatchments too

4 years agogo-mssqldb UPDATE (#9522)
6543 [Sat, 28 Dec 2019 17:14:38 +0000 (18:14 +0100)]
go-mssqldb UPDATE (#9522)

4 years agoFix repository issues pagination bug when there are more than one label filter (...
Lunny Xiao [Sat, 28 Dec 2019 14:43:46 +0000 (22:43 +0800)]
Fix repository issues pagination bug when there are more than one label filter (#9512)

4 years agoDelete conflicting file (#9526)
techknowlogick [Sat, 28 Dec 2019 10:43:03 +0000 (05:43 -0500)]
Delete conflicting file (#9526)

Case collision with other jboss file

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoRefactor webhooks to reduce code duplication (#9422)
Cornel [Sat, 28 Dec 2019 08:55:09 +0000 (16:55 +0800)]
Refactor webhooks to reduce code duplication (#9422)

* Start webhook refactoring to reduce code duplication

* More webhook refactoring

* Unify webhook release messages

* Fix webhook release link

* Remove sql import

* More webhook refactoring

* More webhook refactoring

* Webhook tests extended

* Fixed issue opened webhook

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoResolve deprecated INI conversion (#9525)
techknowlogick [Sat, 28 Dec 2019 03:37:26 +0000 (22:37 -0500)]
Resolve deprecated INI conversion (#9525)

Per https://github.com/go-ini/ini/blob/8fe474341f7eedd6804eda75896c8f3e4b5dc36a/deprecated.go#L24

4 years agoStop various tests from adding to the source tree (#9515)
zeripath [Sat, 28 Dec 2019 02:08:05 +0000 (02:08 +0000)]
Stop various tests from adding to the source tree (#9515)

Instead of just adding test generated files to .gitignore prevent
them from being produced in the first place.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoAdd contrib/environment-to-ini (#9519)
zeripath [Sat, 28 Dec 2019 00:49:42 +0000 (00:49 +0000)]
Add contrib/environment-to-ini (#9519)

* Add contrib/environment-to-ini

This contrib command provides a mechanism to allow arbitrary setting
of ini values using the environment variable in a more docker standard
fashion.

Environment variable keys should be structured as:

"GITEA__SECTION_NAME__KEY_NAME"

Use of the command is explained in the README.

Partial fix for #350
Closes #7287

* Update contrib/environment-to-ini/environment-to-ini.go

Co-Authored-By: 6543 <6543@obermui.de>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
4 years ago[Fix] AllowedReaction code (#9518)
6543 [Fri, 27 Dec 2019 23:43:56 +0000 (00:43 +0100)]
[Fix] AllowedReaction code (#9518)

* optimize

* CI.restart()

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: zeripath <art27@cantab.net>
4 years agoIgnore empty avatars in v115.go (#9520)
zeripath [Fri, 27 Dec 2019 22:57:38 +0000 (22:57 +0000)]
Ignore empty avatars in v115.go (#9520)

* Ignore empty avatars

* fixup! Ignore empty avatars

4 years agoProperly enforce gitea environment for pushes (#9501)
zeripath [Fri, 27 Dec 2019 21:15:04 +0000 (21:15 +0000)]
Properly enforce gitea environment for pushes (#9501)

#8982 attempted to enforce the gitea environment for pushes - unfortunately it tested the settings before they were actually read in - and therefore does not do that!

4 years ago[API] Extend times API (#9200)
6543 [Fri, 27 Dec 2019 20:30:58 +0000 (21:30 +0100)]
[API] Extend times API (#9200)

Extensively extend the times API.

close #8833; close #8513; close #8559

4 years agoFix deleted branch isn't removed when push the branch again (#9516)
Lunny Xiao [Fri, 27 Dec 2019 19:17:37 +0000 (03:17 +0800)]
Fix deleted branch isn't removed when push the branch again (#9516)

4 years agoFix user avatar name (#8547)
Masudur Rahman [Fri, 27 Dec 2019 18:27:59 +0000 (00:27 +0600)]
Fix user avatar name (#8547)

Migrate avatar names to include user ID and the md5 hash.

4 years agoRemove and recreate the hooks to set them executable with the umask (#9502)
zeripath [Fri, 27 Dec 2019 16:41:49 +0000 (16:41 +0000)]
Remove and recreate the hooks to set them executable with the umask (#9502)

Fix #9091

4 years agoRemove unnecessary loading of settings in update hook (#9496)
zeripath [Fri, 27 Dec 2019 15:21:33 +0000 (15:21 +0000)]
Remove unnecessary loading of settings in update hook (#9496)

This PR simply makes update an empty command rather than needlessly load the settings for each reference.

4 years agoFix SetExpr failed (#9506)
Lunny Xiao [Fri, 27 Dec 2019 14:18:07 +0000 (22:18 +0800)]
Fix SetExpr failed (#9506)

4 years agoCorrect a language error in reverse proxy doc (#9455)
Erwan Colin [Fri, 27 Dec 2019 12:17:26 +0000 (13:17 +0100)]
Correct a language error in reverse proxy doc (#9455)

* Correct a language error in reverse proxy doc

* Apply suggestions from code review

Co-Authored-By: zeripath <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
4 years agoalpine 3.11 (#9440)
techknowlogick [Fri, 27 Dec 2019 00:52:32 +0000 (19:52 -0500)]
alpine 3.11 (#9440)

4 years agoRemove obsolete file private/push_update.go (#9503)
David Svantesson [Thu, 26 Dec 2019 18:20:38 +0000 (19:20 +0100)]
Remove obsolete file private/push_update.go (#9503)

4 years agoPush update after branch is restored (#9416)
Mario Lubenka [Thu, 26 Dec 2019 13:17:31 +0000 (14:17 +0100)]
Push update after branch is restored (#9416)

* Push update after branch is restored

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Apply suggestions from code review

Use name from deletedBranch

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoBatch hook pre- and post-receive calls (#8602)
zeripath [Thu, 26 Dec 2019 11:29:45 +0000 (11:29 +0000)]
Batch hook pre- and post-receive calls (#8602)

* make notifyWatchers work on multiple actions

* more efficient multiple notifyWatchers

* Make CommitRepoAction take advantage of multiple actions

* Batch post and pre-receive results

* Set batch to 30

* Auto adjust timeout & add logging

* adjust processing message

* Add some messages to pre-receive

* Make any non-200 status code from pre-receive an error

* Add missing hookPrintResults

* Remove shortcut for single action

* mistaken merge fix

* oops

* Move master branch to the front

* If repo was empty and the master branch is pushed ensure that that is set as the default branch

* fixup

* fixup

* Missed HookOptions in setdefaultbranch

* Batch PushUpdateAddTag and PushUpdateDelTag

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago[Docs] Clarify HTTPS Termination Proxy on Using Reverse Proxy to Enable HTTPS (#9491)
Bagas Sanjaya [Thu, 26 Dec 2019 05:05:05 +0000 (12:05 +0700)]
[Docs] Clarify HTTPS Termination Proxy on Using Reverse Proxy to Enable HTTPS (#9491)

* Clarification note for HTTPS termination proxy method

* Textual grammar edit

* Mention ROOT_URL

* Apply suggestion by mrsdizzie

Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoUpgrade lato fonts to v16. (#9498)
Lunny Xiao [Thu, 26 Dec 2019 04:11:39 +0000 (12:11 +0800)]
Upgrade lato fonts to v16. (#9498)

* Upgrade lato fonts to v16

* Upgrade lato fonts to v16

* fix bug

4 years agoAdd debug option to serv to help debug problems (#9492)
zeripath [Wed, 25 Dec 2019 15:44:57 +0000 (15:44 +0000)]
Add debug option to serv to help debug problems (#9492)

* Add debug option to serv to help debug problems

* fixup! Add debug option to serv to help debug problems

4 years agofix datarace on issue indexer queue (#9490)
Lunny Xiao [Wed, 25 Dec 2019 09:44:09 +0000 (17:44 +0800)]
fix datarace on issue indexer queue (#9490)

4 years agoTrigger webhook when deleting a branch after merging a PR (#9424)
Brad Albright [Wed, 25 Dec 2019 05:59:41 +0000 (23:59 -0600)]
Trigger webhook when deleting a branch after merging a PR (#9424)

* fixed so when deleting a branch after merging a PR, a webhook is triggered

* changed to use pr.HeadRepo instead of ctx.Repo when sending webhook for a deletion of branch after merging pr

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoadding calls to issue.LoadRepo() prior to calling issue.HTMLURL() (#9484)
Brad Albright [Tue, 24 Dec 2019 23:46:16 +0000 (17:46 -0600)]
adding calls to issue.LoadRepo() prior to calling issue.HTMLURL() (#9484)

4 years agoWrap the code indexer (#9476)
zeripath [Tue, 24 Dec 2019 07:26:34 +0000 (07:26 +0000)]
Wrap the code indexer (#9476)

* Wrap the code indexer

In order to prevent a data race in the code indexer it must be wrapped
with a holder otherwise it is possible to Search/Index on an
incompletely initialised indexer, and search will fail with a nil
pointer until the repository indexer is initialised.

Further a completely initialised repository indexer should not be closed
until Termination otherwise actions in Hammer/Shutdown phases could
block or be lost.

Finally, there is a complex dance of shutdown etiquette should the index
initialisation fail. This PR restores that.

* Always return err if closed whilst waiting

Co-authored-by: techknowlogick <matti@mdranta.net>
4 years agoUpdate CONTRIBUTING.md to include building JS (#9454)
sunboyy [Tue, 24 Dec 2019 05:28:58 +0000 (12:28 +0700)]
Update CONTRIBUTING.md to include building JS (#9454)

* Update CONTRIBUTING.md to include building JS

Signed-off-by: sunboyy <sura_sun@hotmail.com>
* Edit minimum Node.js version in CONTRIBUTING.md

Signed-off-by: sunboyy <sura_sun@hotmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
4 years agoClean-up typo that made an app.ini.sample comment not a comment. (#9480)
rektide [Tue, 24 Dec 2019 04:41:46 +0000 (23:41 -0500)]
Clean-up typo that made an app.ini.sample comment not a comment. (#9480)

4 years ago[API] Extend contents with dates (#9464)
6543 [Tue, 24 Dec 2019 02:33:52 +0000 (03:33 +0100)]
[API] Extend contents with dates (#9464)

* extend CommitTree func

* make sure Date NOT nil

* spell corection

Co-Authored-By: zeripath <art27@cantab.net>
* add TEST

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agoUse Req.URL.RequestURI() to cope with FCGI urls (#9473)
zeripath [Tue, 24 Dec 2019 00:11:12 +0000 (00:11 +0000)]
Use Req.URL.RequestURI() to cope with FCGI urls (#9473)

* Use Req.URL.RequestURI() to cope with FCGI urls

* Add debug logging statement when forbidden in internal API.

4 years agoDelete extra Matlab ignore file (#9479)
John Olheiser [Mon, 23 Dec 2019 23:31:36 +0000 (17:31 -0600)]
Delete extra Matlab ignore file (#9479)

4 years agoPrefix all user-generated IDs in markup (#9477)
John Olheiser [Mon, 23 Dec 2019 22:38:50 +0000 (16:38 -0600)]
Prefix all user-generated IDs in markup (#9477)

* Prefix all user-generated IDs in markup
* Add user-content- to IDs in unit-tests
* fixup markdown_test.go
* update the hrefs for the wiki test
* Add blackfriday extension regex

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoUpdate matlab gitignore? (#9478)
John Olheiser [Mon, 23 Dec 2019 20:45:43 +0000 (14:45 -0600)]
Update matlab gitignore? (#9478)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 23 Dec 2019 12:34:47 +0000 (12:34 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoRefactor code indexer (#9313)
Lunny Xiao [Mon, 23 Dec 2019 12:31:16 +0000 (20:31 +0800)]
Refactor code indexer (#9313)

* Refactor code indexer

* fix test

* fix test

* refactor code indexer

* fix import

* improve code

* fix typo

* fix test and make code clean

* fix lint

4 years agoSet default ssh.minimum_key_sizes (#9466)
mrsdizzie [Sun, 22 Dec 2019 22:46:35 +0000 (17:46 -0500)]
Set default ssh.minimum_key_sizes (#9466)

The minimum key size defaults weren't set as suggested in app.ini.sample
so if you enabled MINIMUM_KEY_SIZE_CHECK it would always fail since
there would be no matching values to check against. This pr adds the
default values that should have been there.

Should fix #9465

4 years agoAdd ActionCommentPull action (#9456)
mrsdizzie [Sun, 22 Dec 2019 08:29:26 +0000 (03:29 -0500)]
Add ActionCommentPull action (#9456)

* Add ActionCommentPull action

Adds ActionCommentPull action to distinguish between a comment on an
issue and on a pull request

* Update modules/notification/action/action.go

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agofixed bug in GitTreeBySHA where pulling items from a page other than page 1 would...
Brad Albright [Sun, 22 Dec 2019 00:16:21 +0000 (18:16 -0600)]
fixed bug in GitTreeBySHA where pulling items from a page other than page 1 would fail because the wrong var was used to set the entries to return (#9459)

4 years agoIssue with Migration rule v111 (#9449)
Marge Bouvier [Sat, 21 Dec 2019 10:12:39 +0000 (11:12 +0100)]
Issue with Migration rule v111 (#9449)

* Issue with Migration rule v111

I was facing some issues with migration rule v111

* Update v111.go

Fix pgsql test cases

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
4 years agoFix wrong notification on merge (#9450)
guillep2k [Fri, 20 Dec 2019 22:31:05 +0000 (19:31 -0300)]
Fix wrong notification on merge (#9450)

4 years agoApache configuration for Let's Encrypt webroot validation (#9438)
NZTim [Fri, 20 Dec 2019 17:58:26 +0000 (06:58 +1300)]
Apache configuration for Let's Encrypt webroot validation (#9438)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 20 Dec 2019 17:10:13 +0000 (17:10 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoSwagger info corrections (#9441)
6543 [Fri, 20 Dec 2019 17:07:12 +0000 (18:07 +0100)]
Swagger info corrections (#9441)

* use numbers and not http.Status___ enum

* fix test

* add many missing swagger responses

* code format

* Deletion Sould return 204 ...

* error handling improvements

* if special error type ... then add it to swagger too

* one smal nit

* invalidTopicsError is []string

* valid swagger specification 2.0
 - if you add responses swagger can tell you if you do it right :+1:

* use ctx.InternalServerError

* Revert "use numbers and not http.Status___ enum"

This reverts commit b1ff386e2418ed6a7f183e756b13277d701278ef.

* use http.Status* enum everywhere

4 years agoResponse for context on retry database connection (#9444)
Lunny Xiao [Fri, 20 Dec 2019 05:39:33 +0000 (13:39 +0800)]
Response for context on retry database connection (#9444)

4 years agochore: update license list (#9436)
Antoine GIRARD [Fri, 20 Dec 2019 00:17:25 +0000 (01:17 +0100)]
chore: update license list (#9436)

go run scripts/generate-licenses.go

Co-authored-by: zeripath <art27@cantab.net>
4 years agochore: update gitignore list (#9437)
Antoine GIRARD [Thu, 19 Dec 2019 23:04:12 +0000 (00:04 +0100)]
chore: update gitignore list (#9437)

Updated the gitignore list with the command : `go run scripts/generate-gitignores.go`

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 19 Dec 2019 21:50:14 +0000 (21:50 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix NewCommitStatus (#9434)
John Olheiser [Thu, 19 Dec 2019 21:46:53 +0000 (15:46 -0600)]
Fix NewCommitStatus (#9434)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoAdd migration to sanitize repository original_url (#9423)
mrsdizzie [Thu, 19 Dec 2019 09:49:48 +0000 (04:49 -0500)]
Add migration to sanitize repository original_url (#9423)

* Add migration to sanitize repository original_url

During a large code move in #6200 the OriginalURL field was
accidentially changed to be populated with the CloneAddr field which
will contain the username and/or password provided during a migration.

This behavior was fixed in previous PR #9097 and this migration will
remove any authentication details that were stored in the database
between those two.

* use net/url to rebuild URL instead of strings.Replace

* Update models/migrations/migrations.go

* changes per lunny

* make fmt

4 years agoFix background reactions in the arc-green theme (#9421)
Alexey 〒erentyev [Thu, 19 Dec 2019 03:35:03 +0000 (06:35 +0300)]
Fix background reactions in the arc-green theme (#9421)

* Fixed arc-green theme reactions background

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Added MD5 AppVer

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
4 years agochore: update github.com/couchbase/gomemcached and github.com/couchbase/go-couchbase...
Antoine GIRARD [Thu, 19 Dec 2019 02:03:26 +0000 (03:03 +0100)]
chore: update github.com/couchbase/gomemcached and github.com/couchbase/go-couchbase (#9419)

4 years agoAdd .ignore file for search tools (#9417)
silverwind [Wed, 18 Dec 2019 23:34:23 +0000 (00:34 +0100)]
Add .ignore file for search tools (#9417)

* Add .ignore file for search tools

Tools like `rg` [1] and `ag` [2] support a `.ignore` file which defines
files that are ignored during a recursive search. This adds the file
which makes recursive file searches in the code base ignore files that
are generally not desirable to search in like bindata, vendored files
and compiled frontend assets.

[1] https://github.com/BurntSushi/ripgrep/
[2] https://github.com/ggreer/the_silver_searcher

* add leading slash

* remove files already in .gitignore

4 years agoUse OriginalURL insead of CloneAddr in migration logging (#9418)
mrsdizzie [Wed, 18 Dec 2019 21:49:56 +0000 (16:49 -0500)]
Use OriginalURL insead of CloneAddr in migration logging (#9418)

CloneAddr will contain username and password credentials and they will
get stored in system notices about failed migrations (and logs if trace
is set). Replace with OriginalURL that doesn't have those.

4 years agoChange PR commits and diffs to use base repo rather than forked (#3648)
Keith Rutkowski [Wed, 18 Dec 2019 18:37:44 +0000 (13:37 -0500)]
Change PR commits and diffs to use base repo rather than forked (#3648)

Change the repository referenced when displaying commits or diffs in
pull request to the base repository.  The forked repository may not be
readable by users who can read the base repository.  See discussion for
(#3356).

4 years agoAddress minor portability issues (#9414)
dankm [Wed, 18 Dec 2019 17:47:11 +0000 (11:47 -0600)]
Address minor portability issues (#9414)

* Add os specific sed for FreeBSD.

* Replace hardcoded "make" with $(MAKE)

Some systems don't use GNU make by default, and use something like
gnumake or gmake. Respect that when determining the make version.

4 years agoAdd warning to docs in order to avoid template mismatches (#9411)
pseudocoder [Wed, 18 Dec 2019 15:48:33 +0000 (17:48 +0200)]
Add warning to docs in order to avoid template mismatches (#9411)

* DOCS: add mention of swagger api reference

It's(swagger api link) mentioned vaguely in the FAQ but IMHO missing from API usage page.

* Add warning to avoid template mismatches

Related to https://github.com/go-gitea/gitea/issues/9320

4 years ago[Vendor Update] go-swagger v0.20.1 -> v0.21.0 (#9410)
6543 [Wed, 18 Dec 2019 15:05:30 +0000 (16:05 +0100)]
[Vendor Update] go-swagger v0.20.1 -> v0.21.0 (#9410)

* Update go-swagger v0.20.1 -> v0.21.0

* go mod tidy

4 years agoHide not allowed Reactions (#9387)
6543 [Wed, 18 Dec 2019 13:07:36 +0000 (14:07 +0100)]
Hide not allowed Reactions (#9387)

* Hide not allowed Reactions

* filter in query :D

* use `

Co-Authored-By: Alexey 〒erentyev <axifnx@gmail.com>
* update xorm v0.8.0 -> v0.8.1

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 18 Dec 2019 12:33:32 +0000 (12:33 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoRemove unsued struct (#9405)
Lauris BH [Wed, 18 Dec 2019 12:10:40 +0000 (14:10 +0200)]
Remove unsued struct (#9405)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 18 Dec 2019 10:02:07 +0000 (10:02 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix Slack webhook payload title generation to work with Mattermost (#9378)
Cornel [Wed, 18 Dec 2019 10:01:00 +0000 (18:01 +0800)]
Fix Slack webhook payload title generation to work with Mattermost (#9378)

* Fix Slack webhook payload title generation to work with Mattermost by using a markdown link instead of html

* Fix Slack webhook attachment title and title link handling

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 18 Dec 2019 04:02:12 +0000 (04:02 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix some SimpleMDE (#9400)
John Olheiser [Wed, 18 Dec 2019 03:59:59 +0000 (21:59 -0600)]
Fix some SimpleMDE (#9400)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoswitch to fomantic-ui (#9374)
techknowlogick [Tue, 17 Dec 2019 21:34:11 +0000 (16:34 -0500)]
switch to fomantic-ui (#9374)

4 years agoAdd description to labels on create issue (#9392)
zeripath [Tue, 17 Dec 2019 20:02:17 +0000 (20:02 +0000)]
Add description to labels on create issue (#9392)

4 years agoFixed errors logging in dump.go (#9218)
Rychu [Tue, 17 Dec 2019 16:12:10 +0000 (17:12 +0100)]
Fixed errors logging in dump.go (#9218)

* Fixed errors logging in dump.go

* Replaced overlooked log.Fatal() with fatal()

* Run make fmt on dump.go

* Added missing new line to the fatal log

* Run make fmt on dump.go

4 years ago登陆 to 登录 (#9382)
ZHOU Cheng [Tue, 17 Dec 2019 13:06:54 +0000 (21:06 +0800)]
登陆 to 登录 (#9382)

4 years agoFixed show repositories filter (#9234) (#9379)
Alexey 〒erentyev [Tue, 17 Dec 2019 11:03:36 +0000 (14:03 +0300)]
Fixed show repositories filter (#9234) (#9379)

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
4 years agofix wrong migration (#9381)
Lunny Xiao [Tue, 17 Dec 2019 06:58:30 +0000 (14:58 +0800)]
fix wrong migration (#9381)

4 years agoSleep longer if request speed is over github limitation (#9335)
Lunny Xiao [Tue, 17 Dec 2019 04:16:54 +0000 (12:16 +0800)]
Sleep longer if request speed is over github limitation (#9335)

* Sleep longer if request speed is over github limitation

* improve code

* remove unused code

* fix lint

* Use github's rate limit remain value to determine how long to sleep

* Save reset time when finished github api request

* fix bug

* fix lint

* Add context.Context for sleep

* fix test

* improve code

* fix bug and lint

* fix import order

4 years agoAuthorizedKeysCommand should not query db directly (#9371)
zeripath [Tue, 17 Dec 2019 01:49:07 +0000 (01:49 +0000)]
AuthorizedKeysCommand should not query db directly (#9371)

* AuthorizedKeysCommand should not query db directly

* Update routers/private/internal.go

* Fix import order

4 years agoRemove text from action-only webhooks (#9377)
John Olheiser [Tue, 17 Dec 2019 00:28:19 +0000 (18:28 -0600)]
Remove text from action-only webhooks (#9377)

* Remove text from contextual webhooks

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Missed one in Telegram

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoFix double webhook for new PR (#9375)
John Olheiser [Mon, 16 Dec 2019 20:27:18 +0000 (14:27 -0600)]
Fix double webhook for new PR (#9375)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years agoAdd SimpleMDE to compare page for PRs (#9376)
John Olheiser [Mon, 16 Dec 2019 19:57:30 +0000 (13:57 -0600)]
Add SimpleMDE to compare page for PRs (#9376)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 16 Dec 2019 15:57:59 +0000 (15:57 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoAdd SimpleMDE and Fix Image Paste for Issue/Comment Editor (#9197)
Benno [Mon, 16 Dec 2019 15:56:35 +0000 (23:56 +0800)]
Add SimpleMDE and Fix Image Paste for Issue/Comment Editor (#9197)

* update #9132 and #8834 - add SimpleMDE for issue and fix image paste for comment editor

* attache tribute to simplemde

* update #9197 force simplemde file input event when backspace press

4 years agoChange target branch for pull request (#6488)
Mario Lubenka [Mon, 16 Dec 2019 06:20:25 +0000 (07:20 +0100)]
Change target branch for pull request (#6488)

* Adds functionality to change target branch of created pull requests

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Use const instead of var in JavaScript additions

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Check if branches are equal and if PR already exists before changing target branch

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Make sure to check all commits

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Print error messages for user as error flash message

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Disallow changing target branch of closed or merged pull requests

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Resolve conflicts after merge of upstream/master

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Change order of branch select fields

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Removes duplicate check

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Use ctx.Tr for translations

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Recompile JS

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Use correct translation namespace

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Remove redundant if condition

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Moves most change branch logic into pull service

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

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Add Ref to ChangesPayload for logging changed target branches
instead of creating a new struct

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Revert changes to go.mod

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Directly use createComment method

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Return 404 if pull request is not found. Move written check up

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

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Return client errors on change pull request target errors

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Return error in commit.HasPreviousCommit

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

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Test patch before persisting new target branch

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Update patch before testing (not working)

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Removes patch calls when changeing pull request target

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Removes unneeded check for base name

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Moves ChangeTargetBranch completely to pull service. Update patch status.

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Set webhook mode after errors were validated

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Update PR in one transaction

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Move logic for check if head is equal with branch to pull model

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

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adjust CreateComment method call

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
4 years agoUse ioutil.TmpDir for new created temp directory (#9368)
Lunny Xiao [Mon, 16 Dec 2019 05:17:55 +0000 (13:17 +0800)]
Use ioutil.TmpDir for new created temp directory (#9368)

* Use os.TmpDir for new created temp directory

* fix error message

4 years agoremove unused method and rename createcommentWithNoAction (#9367)
Lunny Xiao [Mon, 16 Dec 2019 03:54:24 +0000 (11:54 +0800)]
remove unused method and rename createcommentWithNoAction (#9367)

4 years agoRefactor comment (#9330)
Lunny Xiao [Sun, 15 Dec 2019 21:57:34 +0000 (05:57 +0800)]
Refactor comment (#9330)

* Refactor comment

* fix test

* improve code

4 years agoFix cache problem on dashboard (#9358)
Lunny Xiao [Sun, 15 Dec 2019 20:44:23 +0000 (04:44 +0800)]
Fix cache problem on dashboard (#9358)

4 years agoCombine Drone release steps (#9338)
silverwind [Sun, 15 Dec 2019 18:06:36 +0000 (19:06 +0100)]
Combine Drone release steps (#9338)

* Combine Drone release steps

Fixes missing JS/CSS because drone did unwanted parallelization of the
js/css task and the generate task. Combined the tasks into one and made
'make release' work standalone.

Fixes: https://github.com/go-gitea/gitea/issues/9324
Fixes: https://github.com/go-gitea/gitea/issues/9362
* move js/css to generate dependencies

* remove unneccessary go-all target

* remove go target as well

4 years agoFix the intermittent TestGPGGit failures (#9360)
zeripath [Sun, 15 Dec 2019 16:21:16 +0000 (16:21 +0000)]
Fix the intermittent TestGPGGit failures (#9360)

* Fix the intermittent TestGPGGit failures

Reattempt to open the listener if the port is busy with a delay up to a second
Switch from generating a private key each time, just use a known good key

4 years agoAdd /milestones endpoint (#8733)
Brad Albright [Sun, 15 Dec 2019 14:20:08 +0000 (08:20 -0600)]
Add /milestones endpoint (#8733)

Create a /milestones endpoint which basically serves as a dashboard view for milestones, very similar to the /issues or /pulls page.

Closes #8232