Commit graph

10601 commits

Author SHA1 Message Date
silverwind e1535c74cc
Add 'make watch' ()
* Add 'make watch'

This combines frontend and backend watch into a single command that runs
them in parallel on on SIGINT terminates both.

Termination is not super-clean but I guess it does not have to.

* move to tools/, trap more signals, remove gnu-specific flag

* simplify

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-04 20:55:06 -04:00
GiteaBot 9837b598fc [skip ci] Updated translations via Crowdin 2020-09-04 22:47:21 +00:00
techknowlogick 144de79c1b
Add details re: Kanban () 2020-09-04 18:46:21 -04:00
zeripath bda9e51fef
Remove async pre-empt hack if go >= 1.15 ()
Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-04 14:59:19 -04:00
techknowlogick 482b0e6d47
Bump min required golang to 1.13 ()
* Bump min required golang to 1.13

* Update config.yaml

* Update Makefile

* per silverwind feedback

* per silverwind

Co-authored-by: zeripath <art27@cantab.net>
2020-09-04 14:12:01 -04:00
6543 2a52aeec49
API: Expose its limitation settings ()
* API: Expose its limitation settings

* TESTs

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-04 14:10:15 -04:00
GiteaBot 45c0ec3152 [skip ci] Updated translations via Crowdin 2020-09-04 17:30:03 +00:00
6543 fb603825f5
Test ignore migration rate limitation error () 2020-09-04 13:28:36 -04:00
6543 ca81b6528b
UI: Inform user what meaning hourglass on reviews has ()
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-04 12:36:37 -04:00
Lauris BH e710a34981
Add spent time to referenced issue in commit message () 2020-09-04 11:37:37 -04:00
zeripath 4c557eff5d
Add github api token option to generate-license & generate-gitignore ()
* Add github api token option to generate-license & generate-gitignore

Without api toke, Will face rate limit sometimes.

Signed-off-by: a1012112796 <1012112796@qq.com>

* Use Basic authentication with tokens

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

Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-04 10:02:37 -04:00
6543 d7456106bf
fix go1.15 lint error in modules/public/public.go ()
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-09-04 16:15:54 +03:00
6543 f083bd70df
Changelog for 1.12.4 release () ()
* Changelog for 1.12.4 release ()


Co-authored-by: zeripath <art27@cantab.net>

* update gitea version in docs

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: zeripath <art27@cantab.net>
2020-09-03 23:44:34 -04:00
6543 6c5266c9ca
[BugFix] Fix comment broken issue ref dependence ()
* deleteIssuesByRepoID: delete related CommentTypeRemoveDependency & CommentTypeAddDependency comments too

* Ignore ErrIssueNotExist on comment.LoadDepIssueDetails()

* Add migration

* Ignore 'dependent_issue_id = 0' case

* exchange as per @lunny

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-04 09:36:56 +08:00
GiteaBot 42a5e39b3b [skip ci] Updated translations via Crowdin 2020-09-03 21:27:49 +00:00
silverwind 844d9b46f3
Update JS dependencies ()
- Added some new octicons
- Add explicit less dependency as required by upstream
- Enable es2021 environment in eslint
2020-09-04 00:26:50 +03:00
GiteaBot 6d6b5ceaa5 [skip ci] Updated translations via Crowdin 2020-09-03 18:59:33 +00:00
zeripath 5c0697ad1e
Use argon as default password hash algorithm ()
* Restrict TLS connections to 1.2 minimum

* Set Argon2 as the default KDF

* Fix user.yml

* Remove TLS minversion changes

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

* Add migration as per @techknowlogick

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

* set the password algo in the fixtures

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

* Remove the v148 migration - it needs recreate table to change the defaults

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

Co-authored-by: Nadim Kobeissi <nadim@symbolic.software>
2020-09-03 14:58:31 -04:00
GiteaBot 8fa7a4b511 [skip ci] Updated translations via Crowdin 2020-09-03 10:12:22 +00:00
Lunny Xiao f1a7cd6757
Remove GOPATH set up on hacking () 2020-09-03 11:11:23 +01:00
GiteaBot baa93855e8 [skip ci] Updated translations via Crowdin 2020-09-03 07:36:13 +00:00
6543 ad4a644fb3
Migrations: Gitlab Add Reactions Support for Issues & MergeRequests ()
* fix migrations: gitlab_test

* more stable test

* Get Reactions to Pulls

* Reactions for Issues

* Comments are still hard

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-09-03 10:35:17 +03:00
S7evinK 7af2ccd511
Avoid sending "0 new commits" webhooks ()
* Avoid sending "0 new commits" webhook

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Revert "Avoid sending "0 new commits" webhook"

This reverts commit 1f47ccfacd81470e2c33a02bb8d255172aa4ec08.

* Move commit count check to more central place

* Make tests pass

* Update modules/webhook/webhook.go

Co-authored-by: Lauris BH <lauris@nix.lv>

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-02 22:46:02 -04:00
Lunny Xiao 514201af5d
Upgrade xorm to v1.0.4 () 2020-09-03 02:58:04 +01:00
zeripath 702e98c5ec
Set TLS minimum version to 1.2 ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-09-02 23:37:49 +01:00
zeripath 5fd9f72104
When reading expired sessions - expire them ()
* When reading expired sessions - expire them

Update to latest macaron/session following merge of
https://gitea.com/macaron/session/pulls/11

Also remove old memory provider as 11 updates the memory provider to
make it unnecessary.

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

* and macaron/session/pulls/12

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-09-02 17:10:35 -04:00
GiteaBot ed81a95a84 [skip ci] Updated translations via Crowdin 2020-09-02 20:20:42 +00:00
zeripath dead2a9b2d
Escape failed highlighted code ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-09-02 16:19:42 -04:00
Daniel Aleksandersen 72eeb13e4d
Set avatar image dimensions ()
Set the avatar image dimensions to help browsers
avoid layout reflows. Helps page load performance and
user experience (less content jank).

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-02 14:42:28 -04:00
zeripath 714ab71ddc
Ensure that all migration requests are cancellable ()
* Ensure that all migration requests are cancellable

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

* Use WithContext as RequestWithContext is go 1.14

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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-02 13:49:25 -04:00
6543 84eac6ed6c
Add make targed generate-license & generate-gitignore + Update ()
* Add make targed generate-license & generate-gitignore

* Update Gitignores & Licenses

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-02 12:57:08 -04:00
GiteaBot 3ecd030cd5 [skip ci] Updated translations via Crowdin 2020-09-02 16:56:15 +00:00
赵智超 3981f1b127
Remove duplicate logic in initListSubmits ()
* Remove duplicate logic in initListSubmits

Using the same logic to handle Choosing reviewers and assignees as
choosing label. It's the first step of .

Signed-off-by: a1012112796 <1012112796@qq.com>

* fix choose block

* fix nit

* try fix bug

* simple code

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-02 12:55:13 -04:00
GiteaBot ea775e67fb [skip ci] Updated translations via Crowdin 2020-09-02 15:02:44 +00:00
Martin a0c4c1ce0d
Fixes cli error for Asciidoctor ()
The original fix for  introduced illegal arguments for Asciidoctor, causing no rendering at all. This PR fixes the command line arguments so that Asciidoctor properly renders the text. See https://asciidoctor.org/docs/user-manual/#piping-content-through-the-cli as reference.
2020-09-02 11:01:28 -04:00
6543 3270e7a443
[Vendor] update go-swagger v0.21.0 -> v0.25.0 ()
* Update go-swagger

* vendor
2020-09-01 10:01:23 -04:00
GiteaBot 66843f2237 [skip ci] Updated translations via Crowdin 2020-08-31 17:13:45 +00:00
zeripath 82b71881d8
Ensure repoNames are lowercased in serv ()
 missed lowering the provided repoPath.

(Additionally make a few fixes to the way the debug flag works.)

Fix 
Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-08-31 18:12:49 +01:00
GiteaBot 807a41ca9a [skip ci] Updated translations via Crowdin 2020-08-30 22:55:54 +00:00
zeripath 58f57b3b6c
Escape provider name in oauth2 provider redirect ()
Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-08-30 23:55:01 +01:00
Lunny Xiao 9bc69ff26e
Support elastic search for code search ()
* Support elastic search for code search

* Finished elastic search implementation and add some tests

* Enable test on drone and added docs

* Add new fields to elastic search

* Fix bug

* remove unused changes

* Use indexer alias to keep the gitea indexer version

* Improve codes

* Some code improvements

* The real indexer name changed to xxx.v1

Co-authored-by: zeripath <art27@cantab.net>
2020-08-30 19:08:01 +03:00
zeripath d257485bc0
Rename models.ProtectedBranchRepoID to models.EnvRepoID and ensure EnvPusherEmail is set ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-08-30 08:24:39 +01:00
zeripath 17fbbe97d7
Do not disable commit changes button on repost ()
If the user has pressed commit changes and the post has failed - do not disable
the commit changes button.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-08-29 17:32:46 -04:00
zeripath 9abc16a280
fix documentation for REFRESH_TOKEN_EXPIRATION_TIME ()
REFRESH_TOKEN_EXPIRATION_TIME refers to the refresh token not the access token

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-08-29 23:02:38 +03:00
silverwind 7187fdbb1c
Update eslint config ()
- Remove unneeded "Tribute" global
- Separate Node and Browser environments
- Update environment to es2020 to enable new globals like "BigInt"
2020-08-29 16:34:00 +01:00
Mike L afd89b1767
Dark theme for line numbers in blame view () 2020-08-29 13:41:04 +03:00
Mike L e1eee2d00a
Avoid unnecessary system-ui expansion ()
* Avoid unnecessary system-ui expansion (fix )

* extract config to static object

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-08-28 19:41:28 -04:00
zeripath 7ba6fea0b7
Use shellquote to unpack arguments to gitea serv ()
Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-08-28 20:55:25 +01:00
GiteaBot 274f9233ab [skip ci] Updated translations via Crowdin 2020-08-28 17:40:33 +00:00
Mike L 1fe909757c
Apply to top right reaction picker ()
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-08-28 13:39:41 -04:00