Commit Graph

21 Commits (main)

Author SHA1 Message Date
Atefeh Mohseni Ejiyeh 88d1f60157 feat: [CODE-3406] Add lfs checks to git pre-receive objects processor (#3607) 2025-04-02 16:55:36 +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
Atefeh Mohseni Ejiyeh 0a573a566c feat: [CODE-2528]: Support Git LFS (#3506)
* Apply suggestion from code review
* Merge branch 'feature/GitLFSv1' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into feature/GitLFSv1
* pr comments
* Apply suggestion from code review
* PR comments and lints
* lints
* pr comments
* self review-code cleaning
* feat: [CODE-2528]: implement gcs download func (#3505)
* revert ui changes that sneaked into my pr
* rely on repoCore
* merge main into feature branch
* fix: parsing LFS OIDs in git (#3470)
* Detect missing lfs objects on pre-receive (#3378)
* use principal type to generate token for remote auth (#3385)
* Revert "feat: [PIPE-24548]: Add label creation to pullreq creation (#3276)"

This reverts commit 6391117c6137a574934b9adb57b46ca7d7feaa19.
* feat: [CODE-2528] Git LFS Over SSH (#3279)
* feat: [PIPE-24548]: Add label creation to pullreq creation (#3276)

* Refactor label select base const and its use
* Add created labels to create pr response
* Merge remote-tracking branch 'origin/main' into dd
2025-03-11 21:14:13 +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 2f8900e463 [code-1946] initial work on ssh server (#2075) 2024-06-03 12:47:31 +00:00
Johannes Batzill bc568edd85 fix cleanup for failed repo create, cleanup summary git api (#2064) 2024-05-24 00:38:29 +00:00
Darko Draskovic adf041d747 Add repo summary endpoint (#2037) 2024-05-23 18:45:28 +00:00
Enver Biševac 723377482c [code-1822] Download repository as archive using `git archive` command (#2010) 2024-04-26 20:03:51 +00:00
Johannes Batzill 86537b2c39 Fix merge related issues (#2012) 2024-04-25 22:00:53 +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
Johannes Batzill 5652ca7bb3 Add Repo Path Listing API (#1197) 2024-04-10 20:04:08 +00:00
Atefeh Mohseni-Ejiyeh bd2e9f4899 [GITLEAKS] Support Secret Scanning in Git and Pre-receive Hook (#1155) 2024-03-28 05:49:04 +00:00
Enver Bisevac cecfecdb06 [code-1016] Replace `gitea` Usages (not wrapper) (#1063) 2024-03-26 20:31:30 +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 d96afd89bd Add additions and deletions stats to commit file response (#1015) 2024-02-07 16:07:53 +00:00
Enver Bisevac 7f7f8bf625 [code-1288] new diff api features [paths, line expanders] (#968) 2024-01-23 12:36:04 +00:00
Atefeh Mohseni-Ejiyeh 29f781201f support update default branch (#973) 2024-01-20 07:10:16 +00:00
Darko Draskovic c58e82672b Add func to git service to count repo objects and read repo size (#886) 2023-12-29 12:33:53 +00:00
Marko Gacesa 1899e70e56 detect force push (#856) 2023-12-07 10:25:08 +00:00
Enver Bisevac 67f560874d [maint] gitrpc package removed (#726) 2023-11-15 10:15:32 +00:00