Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
4885397
oauth2 additional scopes
marcellmars Oct 2, 2024
33da8f1
no setting requirement for additional grant scopes
marcellmars Oct 10, 2024
667c8cc
Merge branch 'main' into oauth2-granular-scopes
marcellmars Oct 25, 2024
2c56714
Refactor the DB migration system slightly (#32344)
wxiaoguang Oct 27, 2024
4497ac1
Fix db engine (#32351)
wxiaoguang Oct 27, 2024
960869e
Migrate vue components to setup (#32329)
anbraten Oct 28, 2024
990fd45
Suggestions for issues (#32327)
anbraten Oct 29, 2024
8cb7aae
Optimize branch protection rule loading (#32280)
6543 Oct 29, 2024
2706557
Fix clean tmp dir (#32360)
lunny Oct 29, 2024
3041406
remove unused call to $.HeadRepo in view_title template (#32317)
bohde Oct 30, 2024
79d63f7
Add new [lfs_client].BATCH_SIZE and [server].LFS_MAX_BATCH_SIZE confi…
rremer Oct 30, 2024
baec377
Fix undefined errors on Activity page (#32378)
cloudchamb3r Oct 30, 2024
62ce7fc
Fix absolute-date (#32375)
wxiaoguang Oct 30, 2024
440cba6
Respect UI.ExploreDefaultSort setting again (#32357)
6543 Oct 30, 2024
d0de783
Fix toAbsoluteLocaleDate and add more tests (#32387)
wxiaoguang Oct 30, 2024
ed3d87e
Fix the missing menu in organization project view page (#32313)
yp05327 Oct 30, 2024
abcac26
refactor: remove redundant err declarations (#32381)
alexandear Oct 30, 2024
1d5e81c
Fix suggestions for issues (#32380)
wxiaoguang Oct 30, 2024
65db92f
Update JS and PY dependencies (#32388)
silverwind Oct 31, 2024
b3efee9
Update go dependencies (#32389)
wxiaoguang Oct 31, 2024
19beedc
Fix a number of typescript issues (#32308)
silverwind Oct 31, 2024
70c85dd
Fix `missing signature key` error when pulling Docker images with `SE…
Zettat123 Oct 31, 2024
baad896
Add artifacts test fixture (#30300)
kdumontnu Nov 1, 2024
7b578b8
Refactor tests to prevent from unnecessary preparations (#32398)
wxiaoguang Nov 1, 2024
68ebf96
improve performance of diffs (#32393)
bohde Nov 2, 2024
89c5736
Replace DateTime with DateUtils (#32383)
wxiaoguang Nov 2, 2024
b4e08e0
Fix created_unix for mirroring (#32342)
lunny Nov 2, 2024
784f464
Fix git error handling (#32401)
wxiaoguang Nov 2, 2024
05e7a65
Replace DateTime with proper functions (#32402)
wxiaoguang Nov 2, 2024
a1b0385
Refactor repo legacy (#32404)
wxiaoguang Nov 3, 2024
2ac493d
Make LFS http_client parallel within a batch. (#32369)
rremer Nov 4, 2024
5f33651
Add some handy markdown editor features (#32400)
wxiaoguang Nov 4, 2024
a5f8bd8
Refactor markup package (#32399)
wxiaoguang Nov 4, 2024
8212728
Refactor DateUtils and merge TimeSince (#32409)
wxiaoguang Nov 4, 2024
13e319f
Refactor template ctx and render utils (#32422)
wxiaoguang Nov 5, 2024
61b44f9
Refactor RepoRefByType (#32413)
wxiaoguang Nov 5, 2024
4b90f99
Only query team tables if repository is under org when getting assign…
lunny Nov 5, 2024
347fffc
Fix milestone deadline and date related problems (#32339)
lunny Nov 5, 2024
2d8f5e6
Use 8 as default value for git lfs concurrency (#32421)
wxiaoguang Nov 5, 2024
1169162
Correctly query the primary button in a form (#32438)
wxiaoguang Nov 6, 2024
4aa0c3c
Updated tokenizer to better matching when search for code snippets (#…
bsofiato Nov 6, 2024
e61ba7b
Include file extension checks in attachment API (#32151)
kemzeb Nov 6, 2024
c14dc65
Add new index for action to resolve the performance problem (#32333)
lunny Nov 6, 2024
7f55aad
Move AddCollabrator and CreateRepositoryByExample to service layer (#…
lunny Nov 7, 2024
a2e9ed3
Support quote selected comments to reply (#32431)
wxiaoguang Nov 7, 2024
42a5d6d
Add new event commit status creation and webhook implementation (#27151)
lunny Nov 7, 2024
295bcfc
Only provide the commit summary for Discord webhook push events (#32432)
kemzeb Nov 7, 2024
60fbe04
Split issue sidebar into small templates (#32444)
wxiaoguang Nov 8, 2024
773d040
Refactor issue page info (#32445)
wxiaoguang Nov 8, 2024
3030905
Fix broken releases when re-pushing tags (#32435)
Zettat123 Nov 8, 2024
473ab5a
Refactor language menu and dom utils (#32450)
wxiaoguang Nov 8, 2024
1c656ff
Fix issue sidebar (#32455)
wxiaoguang Nov 8, 2024
0c42d88
Add reviewers selection to new pull request (#32403)
CalK16 Nov 9, 2024
d406da7
Fix mermaid diagram height when initially hidden (#32457)
silverwind Nov 9, 2024
b1ae78e
Refactor sidebar label selector (#32460)
wxiaoguang Nov 10, 2024
75152db
Refactor sidebar assignee&milestone&project selectors (#32465)
wxiaoguang Nov 10, 2024
ca8ca8c
Add a doctor check to disable the "Actions" unit for mirrors (#32424)
Zettat123 Nov 10, 2024
172e2a4
Add `DEFAULT_MIRROR_REPO_UNITS` and `DEFAULT_TEMPLATE_REPO_UNITS` opt…
Zettat123 Nov 11, 2024
0afff76
Calculate `PublicOnly` for org membership only once (#32234)
6543 Nov 11, 2024
f7cbb80
Move some functions from issue.go to standalone files (#32468)
lunny Nov 11, 2024
185e1f4
Harden runner updateTask and updateLog api (#32462)
ChristopherHX Nov 11, 2024
9a3cdb3
Fix a number of typescript issues (#32459)
silverwind Nov 11, 2024
afea8b7
Refactor LFS SSH and internal routers (#32473)
wxiaoguang Nov 12, 2024
cf73089
cargo registry - respect renamed dependencies (#32430)
usbalbin Nov 12, 2024
9b95175
Limit org member view of restricted users (#32211)
6543 Nov 12, 2024
b2aecb1
Fix test fixtures for user2/lfs.git (#32477)
wxiaoguang Nov 12, 2024
fc0771b
Update `github.com/meilisearch/meilisearch-go` (#32484)
silverwind Nov 12, 2024
d43c2e2
Update JS and PY dependencies (#32482)
silverwind Nov 12, 2024
b01fa60
Disable Oauth check if oauth disabled (#32368)
lunny Nov 12, 2024
cb817e1
Fix LFS route mock, realm, middleware names (#32488)
wxiaoguang Nov 13, 2024
c155d0f
Perf: add extra index to notification table (#32395)
BoYanZh Nov 13, 2024
d852a8a
Bump CI,Flake and Snap to Node 22 (#32487)
silverwind Nov 13, 2024
d280204
Fix nil panic if repo doesn't exist (#32501)
wxiaoguang Nov 14, 2024
4160316
Refactor render system (#32492)
wxiaoguang Nov 14, 2024
a7a8f4a
Reimplement GetUserOrgsList to make it simple and clear (#32486)
lunny Nov 14, 2024
62869b8
Trim title before insert/update to database to match the size require…
lunny Nov 14, 2024
44c6a26
Remove jQuery import from some files (#32512)
wxiaoguang Nov 14, 2024
ebaf67f
Reduce integration test overhead (#32475)
bohde Nov 14, 2024
7902c01
Add avif image file support (#32508)
wxiaoguang Nov 15, 2024
d1574da
Fix incorrect project page CSS class (#32510)
wxiaoguang Nov 15, 2024
9a60268
Fix oauth2 error handle not return immediately (#32514)
lunny Nov 15, 2024
29aabe4
Remove transaction for archive download (#32186)
lunny Nov 15, 2024
8666feb
Fix `recentupdate` sorting bugs (#32505)
Zettat123 Nov 15, 2024
7341c75
Improve testing and try to fix MySQL hanging (#32515)
wxiaoguang Nov 15, 2024
742a255
Fix large image overflow in comment page (#31740)
charles7668 Nov 15, 2024
193ac86
Fix and refactor markdown rendering (#32522)
wxiaoguang Nov 16, 2024
fd5badc
Fix basic auth with webauthn (#32531)
lunny Nov 16, 2024
d3af46a
Use better name for userinfo structure (#32544)
lunny Nov 18, 2024
b66e71a
Refactor find forks and fix possible bugs that weak permissions check…
lunny Nov 18, 2024
a8a6841
Refactor markup render system (#32533)
wxiaoguang Nov 18, 2024
1f89ae7
Refactor push mirror find and add check for updating push mirror (#32…
lunny Nov 18, 2024
c53f38c
Fix some places which doesn't repsect org full name setting (#32243)
lunny Nov 18, 2024
e6fab4c
oauth2 additional scopes
marcellmars Oct 2, 2024
e2a0187
onlyPublicGroups compiled from form & in db.Find
marcellmars Nov 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ plugins:
- "@stylistic/eslint-plugin-js"
- "@typescript-eslint/eslint-plugin"
- eslint-plugin-array-func
- eslint-plugin-deprecation
- eslint-plugin-github
- eslint-plugin-i
- eslint-plugin-no-jquery
Expand Down Expand Up @@ -248,6 +247,7 @@ rules:
"@typescript-eslint/no-base-to-string": [0]
"@typescript-eslint/no-confusing-non-null-assertion": [2]
"@typescript-eslint/no-confusing-void-expression": [0]
"@typescript-eslint/no-deprecated": [2]
"@typescript-eslint/no-dupe-class-members": [0]
"@typescript-eslint/no-duplicate-enum-values": [2]
"@typescript-eslint/no-duplicate-type-constituents": [2, {ignoreUnions: true}]
Expand Down Expand Up @@ -359,7 +359,6 @@ rules:
default-case-last: [2]
default-case: [0]
default-param-last: [0]
deprecation/deprecation: [2]
dot-notation: [0]
eqeqeq: [2]
for-direction: [2]
Expand Down Expand Up @@ -816,6 +815,7 @@ rules:
unicorn/catch-error-name: [0]
unicorn/consistent-destructuring: [2]
unicorn/consistent-empty-array-spread: [2]
unicorn/consistent-existence-index-check: [0]
unicorn/consistent-function-scoping: [2]
unicorn/custom-error-definition: [0]
unicorn/empty-brace-spaces: [2]
Expand Down Expand Up @@ -892,10 +892,12 @@ rules:
unicorn/prefer-dom-node-text-content: [2]
unicorn/prefer-event-target: [2]
unicorn/prefer-export-from: [0]
unicorn/prefer-global-this: [0]
unicorn/prefer-includes: [2]
unicorn/prefer-json-parse-buffer: [0]
unicorn/prefer-keyboard-event-key: [2]
unicorn/prefer-logical-operator-over-ternary: [2]
unicorn/prefer-math-min-max: [2]
unicorn/prefer-math-trunc: [2]
unicorn/prefer-modern-dom-apis: [0]
unicorn/prefer-modern-math-apis: [2]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
python-version: "3.12"
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- run: pip install poetry
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/pull-db-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,15 @@ jobs:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
# the bitnami mysql image has more options than the official one, it's easier to customize
image: bitnami/mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: true
ALLOW_EMPTY_PASSWORD: true
MYSQL_DATABASE: testgitea
ports:
- "3306:3306"
options: >-
--mount type=tmpfs,destination=/bitnami/mysql/data
elasticsearch:
image: elasticsearch:7.5.0
env:
Expand Down Expand Up @@ -188,7 +191,8 @@ jobs:
- name: run migration tests
run: make test-mysql-migration
- name: run tests
run: make integration-test-coverage
# run: make integration-test-coverage (at the moment, no coverage is really handled)
run: make test-mysql
env:
TAGS: bindata
RACE_ENABLED: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
check-latest: true
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend frontend deps-backend
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
check-latest: true
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend deps-backend
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-tag-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
check-latest: true
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend deps-backend
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-tag-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
check-latest: true
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- run: make deps-frontend deps-backend
Expand Down
27 changes: 11 additions & 16 deletions assets/go-licenses.json

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions build/generate-emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ func (e Emoji) MarshalJSON() ([]byte, error) {
}

func main() {
var err error

flag.Parse()

// generate data
Expand Down Expand Up @@ -83,8 +81,6 @@ var replacer = strings.NewReplacer(
var emojiRE = regexp.MustCompile(`\{Emoji:"([^"]*)"`)

func generate() ([]byte, error) {
var err error

// load gemoji data
res, err := http.Get(gemojiURL)
if err != nil {
Expand Down
14 changes: 6 additions & 8 deletions cmd/serv.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,10 @@ func fail(ctx context.Context, userMessage, logMsgFmt string, args ...any) error
if !setting.IsProd {
_, _ = fmt.Fprintln(os.Stderr, "Gitea:", logMsg)
}
if userMessage != "" {
if unicode.IsPunct(rune(userMessage[len(userMessage)-1])) {
logMsg = userMessage + " " + logMsg
} else {
logMsg = userMessage + ". " + logMsg
}
if unicode.IsPunct(rune(userMessage[len(userMessage)-1])) {
logMsg = userMessage + " " + logMsg
} else {
logMsg = userMessage + ". " + logMsg
}
_ = private.SSHLog(ctx, true, logMsg)
}
Expand Down Expand Up @@ -288,10 +286,10 @@ func runServ(c *cli.Context) error {
if allowedCommands.Contains(verb) {
if allowedCommandsLfs.Contains(verb) {
if !setting.LFS.StartServer {
return fail(ctx, "Unknown git command", "LFS authentication request over SSH denied, LFS support is disabled")
return fail(ctx, "LFS Server is not enabled", "")
}
if verb == verbLfsTransfer && !setting.LFS.AllowPureSSH {
return fail(ctx, "Unknown git command", "LFS SSH transfer connection denied, pure SSH protocol is disabled")
return fail(ctx, "LFS SSH transfer is not enabled", "")
}
if len(words) > 2 {
lfsVerb = words[2]
Expand Down
24 changes: 23 additions & 1 deletion custom/conf/app.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ RUN_USER = ; git
;; Maximum number of locks returned per page
;LFS_LOCKS_PAGING_NUM = 50
;;
;; When clients make lfs batch requests, reject them if there are more pointers than this number
;; zero means 'unlimited'
;LFS_MAX_BATCH_SIZE = 0
;;
;; Allow graceful restarts using SIGHUP to fork
;ALLOW_GRACEFUL_RESTARTS = true
;;
Expand Down Expand Up @@ -1003,6 +1007,14 @@ LEVEL = Info
;; The set of allowed values and rules are the same as DEFAULT_REPO_UNITS.
;DEFAULT_FORK_REPO_UNITS = repo.code,repo.pulls
;;
;; Comma separated list of default mirror repo units.
;; The set of allowed values and rules are the same as DEFAULT_REPO_UNITS.
;DEFAULT_MIRROR_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.wiki,repo.projects,repo.packages
;;
;; Comma separated list of default template repo units.
;; The set of allowed values and rules are the same as DEFAULT_REPO_UNITS.
;DEFAULT_TEMPLATE_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects,repo.packages
;;
;; Prefix archive files by placing them in a directory named after the repository
;PREFIX_ARCHIVE_FILES = true
;;
Expand Down Expand Up @@ -1900,7 +1912,7 @@ LEVEL = Info
;ENABLED = true
;;
;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
;ALLOWED_TYPES = .csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip
;ALLOWED_TYPES = .avif,.cpuprofile,.csv,.dmp,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.json,.jsonc,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.webp,.xls,.xlsx,.zip
;;
;; Max size of each file. Defaults to 2048MB
;MAX_SIZE = 2048
Expand Down Expand Up @@ -2638,6 +2650,16 @@ LEVEL = Info
;; override the azure blob base path if storage type is azureblob
;AZURE_BLOB_BASE_PATH = lfs/

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; settings for Gitea's LFS client (eg: mirroring an upstream lfs endpoint)
;;
;[lfs_client]
;; Limit the number of pointers in each batch request to this number
;BATCH_SIZE = 20
;; Limit the number of concurrent upload/download operations within a batch
;BATCH_OPERATION_CONCURRENCY = 8

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; settings for packages, will override storage setting
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
gzip

# frontend
nodejs_20
nodejs_22

# linting
python312
Expand Down
Loading