20 Commits
Author SHA1 Message Date
Darko Draskovic da360f84f4 fix: [CODE-5067]: Add file size limits to settings and push rules verification (#4994)
* 21b8bb Move private bellow and simplify sort

* 717d56 Use FileSizeLimit *int64 in repoSettings

* 7d3ca6 Merge remote-tracking branch 'origin' into dd/fix-repo-settings-file-size

* 6f9740 Distinguish “user explicitly set the file size limit” vs “it’s the default 100MB

* c96cac Simplify githook file size exceeded message

* 352841 Merge remote-tracking branch 'origin' into dd/fix-repo-settings-file-size

* bbdb42 Merge remote-tracking branch 'origin' into dd/fix-repo-settings-file-size

* f50f59 Reintroduce SizeLimit in and FileInfos and Total out for backwards compatibility

* 9ccf1e Fix blocked by settings internal principal committer mismatch

* d349f8 Separate settings checks struct from rules checks

* 4476fb Store each file info only at the highest limit it exceeds to avoid repetition

* 029236 Exit early on repo inactive and no checks needed

* 4fd163 Fix merge conflicts

* 09960c Merge remote-tracking branch 'origin/main' into dd/fix-repo-settings-file-size

* 0f49b5 Add Si
2026-03-05 16:29:47 +00:00
Marko Gaćeša 63bc8d78c7 feat: [CODE-2548]: small commit/tag data related improvements (#3875)
* small commit data related improvements
2025-06-11 15:40:22 +00:00
Marko Gaćeša 01968a8f85 feat: [CODE-2548]: refactor git layer commit handling (#3870)
* refactor git layer commit handling
2025-06-11 10:15:00 +00:00
Marko Gaćeša db66e6143e feat: [CODE-2548]: parse git object signature (#3862)
* parse git object signature
2025-06-10 13:40:12 +00:00
Darko Draskovic 07224c37de feat: [CODE-3352]: Add git pre-receive preprocessor (#3535)
* Replace map[string]string with []CommitInfo in FindCommitterMismatchOutput
* Merge remote-tracking branch 'origin/main' into dd/pre-preceive-preprocessor
* Merge remote-tracking branch 'origin/main' into dd/pre-preceive-preprocessor
* Add total to FindCommitterMismatchOutput
* Reuse changedRefs for only deleted branches on push check
* Merge remote-tracking branch 'origin/main' into dd/pre-preceive-preprocessor
* Fix typo commiter -> committer
* Rename listAllObjects in listGitObjDir and loop thru dirs outside listGitObjDir
* Use line with commiter prefix to find commiter email
* Merge remote-tracking branch 'origin/main' into dd/pre-preceive-preprocessor
* Merge remote-tracking branch 'origin/main' into dd/pre-preceive-preprocessor
* Rename vars and add total to findOversizeFiles
* Use CatFileBatch instead of git show info to find commiter emails and remove unused CatFileBatchCheck
* Use WithAlternateObjectDirs in findCommiterEmailsMismatch
* Merge remote-tracking branch 'origin/mai
2025-03-18 20:21:28 +00:00
Darko Draskovic 8e08be96fe fix: [CODE-3288]: Revert "Block any push that contains commits not committed by the user (#3512)" (#3532)
* Revert "feat: [CODE-3288]: Block any push that contains commits not committed by the user (#3512)"

This reverts commit 53000fe59d.
2025-03-10 16:49:41 +00:00
Darko Draskovic 53000fe59d feat: [CODE-3288]: Block any push that contains commits not committed by the user (#3512)
* Move output error init and error print outside of refupdates loop
* Merge remote-tracking branch 'origin/main' into dd/git-commiter
* Merge remote-tracking branch 'origin/main' into dd/git-commiter
* Merge remote-tracking branch 'origin/main' into dd/git-commiter
* Return commit sha email map and print user commiter mismatches
* Merge remote-tracking branch 'origin/main' into dd/git-commiter
* Move user commiter match check into separate func/file and add user_commiter_match setting
* Address empty repo push case
* Add GetBranchCommiterEmails func
* Add alt obj dirs to git GetCommit and getCommit
* Block any push that contains commits not committed by the user
2025-03-10 12:43:23 +00:00
Enver Biševac 92e39dee79 feat: [CODE-3129]: add ignore whitespace for diff (#3327)
* better parsing of query param ignore_whitespace
* replace hideWhitespace with ignoreWhitespace
* replace rest client literals with vars
* added openapi
* add ignore whitespace for diff
2025-01-31 21:48:57 +00:00
Marko Gaćeša ad8f74ce71 feat: [CODE-2531]: replace os.IsNotExist(err) with error.Is(err, fs.ErrNotExist) (#3036)
* replace os.IsNotExist(err) with error.Is(err, fs.ErrNotExist)
2024-11-22 12:17:56 +00:00
Darko Draskovic 335eaa73c1 feat: [CODE-2498]: Add time and author filter params to list commits page (#3000)
* Remove redundant consts and annotate errors
* Add a Regex bool field to the api.CommitFilter
* Add use author/commiter regex bool to list commit filter
* Merge branch 'main' into dd/commit-time-author-filter
* Add commiter IDs
* Merge branch 'main' into dd/commit-time-author-filter
* Merge branch 'main' into dd/commit-time-author-filter
* Merge branch 'main' into dd/commit-time-author-filter
* Add regex quote for author
* Add time and author filter params to list commits page
2024-11-21 10:31:32 +00:00
Marko Gaćeša 8c5e7546c3 feat: [CODE-2567]: improve git commit message handling (#2849)
* make the change backward compatible
* improve git commit message handling
2024-10-24 10:08:36 +00:00
Darko Draskovic d4ca33b82d Temporary rename info/alternates so --batch-all-objects doesn't follow it (#2039) 2024-05-20 18:43:52 +00:00
Darko Draskovic e2689a3b40 Add push file size limit and report func (and use it in githook) (#1173) 2024-04-24 16:31:18 +00:00
Enver Bisevac cecfecdb06 [code-1016] Replace gitea Usages (not wrapper) (#1063) 2024-03-26 20:31:30 +00:00
Johannes Batzill a6bfe6235f [MISC] Fix naming inconsistencies for FileDiffStatus (#1128) 2024-03-21 01:39:02 +00:00
Darko Draskovic 564a0fef61 Add support for listing commit related per file stats (#1116) 2024-03-20 18:31:48 +00:00
Darko Draskovic 8150be7a3b Add commit diff stat to list commits (#1062) 2024-02-23 11:27:06 +00:00
Johannes Batzill dd11c0eff5 Fix Rebase implementation (#1049) 2024-02-20 17:45:09 +00:00
Abhinav Singh e0f8248ead feat: files in webhook payload (#1013) 2024-02-06 02:06:43 +00:00
Enver Bisevac 67f560874d [maint] gitrpc package removed (#726) 2023-11-15 10:15:32 +00:00