Commit Graph

10217 Commits (fe79b13ab2ce9526fae10a5257b4e171cae30ecb)
 

Author SHA1 Message Date
6543 1c35353c53
implemet Cache for Stopwatches.APIFormat() ()
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
6543 f10d3ea803
[Vendor] Fix Version Compare Lib ()
* switch to patched fork

* vendor

* reference upstream lib and use replace in go.mod

* reference upstream lib and use replace in go.mod

* Apply suggestions from code review

* vendor

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
GiteaBot 67ec27150e [skip ci] Updated translations via Crowdin
zeripath 69b8d7ba19
use assignment in tests ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
GiteaBot 78509b5f9b [skip ci] Updated translations via Crowdin
techknowlogick 9a17e2830b
refactor repo_stats to use os.pipe ()
* refactor repo_stats to use os.pipe

* woops. missing reader.

* stdout not stderr, woops

* Fix copyright date and ensure that the stderr is collected

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

Co-authored-by: Andrew Thornton <art27@cantab.net>
GiteaBot 913ac9cacd [skip ci] Updated translations via Crowdin
6543 1ea1cade85
Add Created & Updated to Milestone ()
* Add Created and Updated to Milestone table and expose via API

* Expose to UI - To Overloaded ?!?

* fix unit test

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
GiteaBot 7404786420 [skip ci] Updated translations via Crowdin
6543 bc11caff94
[Vendor] Switch go-version lib ()
* vendor: switch from "mcuadros/go-version" to "hashicorp/go-version"

* Adapt P1

* simplify

* fix lint

* adapt

* fix lint & rm old code

* no deadlock

* rm RWMutex and check GoVersion only 1-time

* Copyright header

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
zeripath 9fdb4f887b
Update to go-org 1.3.2 ()
* Update to go-org 1.3.2

Fix 

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

* Fix unit test

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

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
GiteaBot e80eda7d01 [skip ci] Updated translations via Crowdin
Jochen Peters 385433d2f4
additional data for type StopWatch in swagger api ()
* additional data for type StopWatch in swagger api

* fix lint-backend issue with gofmt

* fix format in v1_json with 'make generate-swagger'

* using issue.LoadRepo() instead of getRepositoryByID()

Co-authored-by: jochen@homeland <no-go@localhost>
Co-authored-by: zeripath <art27@cantab.net>
6543 dba5d82f86
Expose Attachemnt Settings by API ()
close 
techknowlogick bab1204db4
Use pre-built hugo binary in release step ()
* Use pre-built hugo binary in release step

* decrease verbosity of tar
Lunny Xiao b51bd7f1d6
Refactor webhook payload convertion ()
* Refactor webhook payload convertion

* Fix lint

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
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>
GiteaBot 9837b598fc [skip ci] Updated translations via Crowdin
techknowlogick 144de79c1b
Add details re: Kanban ()
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>
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>
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>
GiteaBot 45c0ec3152 [skip ci] Updated translations via Crowdin
6543 fb603825f5
Test ignore migration rate limitation error ()
6543 ca81b6528b
UI: Inform user what meaning hourglass on reviews has ()
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lauris BH e710a34981
Add spent time to referenced issue in commit message ()
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>
6543 d7456106bf
fix go1.15 lint error in modules/public/public.go ()
Co-authored-by: Lauris BH <lauris@nix.lv>
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>
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>
GiteaBot 42a5e39b3b [skip ci] Updated translations via Crowdin
silverwind 844d9b46f3
Update JS dependencies ()
- Added some new octicons
- Add explicit less dependency as required by upstream
- Enable es2021 environment in eslint
GiteaBot 6d6b5ceaa5 [skip ci] Updated translations via Crowdin
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>
GiteaBot 8fa7a4b511 [skip ci] Updated translations via Crowdin
Lunny Xiao f1a7cd6757
Remove GOPATH set up on hacking ()
GiteaBot baa93855e8 [skip ci] Updated translations via Crowdin
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>
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 1f47ccfacd.

* 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>
Lunny Xiao 514201af5d
Upgrade xorm to v1.0.4 ()
zeripath 702e98c5ec
Set TLS minimum version to 1.2 ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
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>
GiteaBot ed81a95a84 [skip ci] Updated translations via Crowdin
zeripath dead2a9b2d
Escape failed highlighted code ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
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>
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>
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>
GiteaBot 3ecd030cd5 [skip ci] Updated translations via Crowdin
赵智超 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>
GiteaBot ea775e67fb [skip ci] Updated translations via Crowdin