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
Darko Draskovic
ec12dda66b
fix: [CODE-3315]: Rename parameter max to maxCount ( #3529 )
...
* Rename parameter max to maxCount
2025-03-07 15:23:28 +00:00
Marko Gaćeša
164fa4153d
feat: [CODE-3309]: move shared repo root dir to the same parent dir as the repos ( #3517 )
...
* removed the not-exist error check for MkdirAll
* move shared repo root dir to the same parent dir as the repos
2025-03-05 21:16:00 +00:00
Marko Gaćeša
b347c0f347
fix: [CODE-3307]: remove invalid file from repo if copy from sharedrepo fails ( #3515 )
...
* remove invalid file from repo if copy from sharedrepo fails
2025-03-05 21:00:43 +00:00
Atefeh Mohseni Ejiyeh
2480779cdc
fix: [CODE-3249]: Silent not found error on delete git repository ( #3477 )
2025-03-01 01:55:35 +00:00
Marko Gaćeša
01956e255a
fix: [CODE-3173]: remove zero reference updated check ( #3408 )
...
* remove zero reference updated check
2025-02-11 10:39:11 +00:00
Marko Gaćeša
530a707052
feat: [CODE-3076]: update several refs on merge ( #3355 )
...
* resolve pr comments
* update several refs on merge
2025-02-03 10:52:01 +00:00
Atefeh Mohseni Ejiyeh
a75e6ec4ec
fix: [CODE-2501] Return 200 with an empty list for commits on non-existing references ( #3366 )
2025-02-01 02:28:29 +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
Enver Biševac
d131a4f2aa
feat: [CODE-3112]: write response using pkt error format in service pack and advertise refs ( #3348 )
...
* write to response pkt error format in service pack
2025-01-30 08:33:28 +00:00
Atefeh Mohseni Ejiyeh
9f9505dbb6
fix: [CODE-2501] fix handling non-cmd errors ( #3305 )
2025-01-21 22:15:29 +00:00
Marko Gaćeša
40dd6a19ed
feat: [CODE-3061]: make git functions return not found if commit is not found ( #3304 )
...
* linter fix
* make git functions return not found if commit is not found
2025-01-21 16:15:41 +00:00
Enver Biševac
0a042b66e5
feat: [code-2984]: fix datarace on branch and tag counts, improved cmd package with mutex ( #3202 )
...
* requested changes
* fix datarace on beanch and tag counts, improved cmd package with mux
2024-12-25 13:22:48 +00:00
Atefeh Mohseni Ejiyeh
a6bb491688
fix: [CODE-2501] Handle Internal Server Error When Querying Non-existing Git References ( #3136 )
2024-12-13 02:27:30 +00:00
Enver Biševac
8c5a5b6716
feat: [code-2296] minor improvements on command package ( #3046 )
...
* Merge remote-tracking branch 'origin/main' into eb/code-2296
* requested changes
* added unit test and description
* refactor command parser
* minor improvements on command package
2024-12-07 17:10:47 +00:00
Darko Draskovic
f0d58cdda7
fix: [CODE-2833]: Ignore Redis related cache errors when get/set key ( #3059 )
...
* Ignore Redis related cache errors when get/set key
2024-11-28 18:19:12 +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
Marko Gaćeša
f1eb44a30a
feat: [CODE-2531]: ignore not found error in delete repo ( #3023 )
...
* remove err==NotFound check in controller layer
* ignore not found error in delete repo
2024-11-22 10:24:00 +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
Johannes Batzill
ccce5ad646
fix: [CODE-2717]: Modify Sync to take DefaultBranch as input ( #2962 )
2024-11-11 23:18:28 +00:00
Andreas Deininger
ff2da8563e
[GH] Fix typos ( #3566 )
...
This PR fixes various typos i spotted in the project.
2024-11-07 11:34:07 -08:00
Marko Gaćeša
d79a1a290c
feat: [PIPE-21976]: add flattened directory listing ( #2869 )
...
* remove unused parameter
* updated open api to include flatten_driectories param
* add flattened directory listing
2024-10-30 13:26:42 +00:00
Marko Gaćeša
7d58dcca04
feat: [CODE-2618]: remove old unused code from git/operations.go ( #2863 )
...
* remove old unused code from git/operations.go
2024-10-24 15:49:20 +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
Johannes Batzill
5cbd33bd5d
feat: [PIPE-22535]: Include previous commit in blame ( #2812 )
2024-10-17 18:21:51 +00:00
Marko Gaćeša
069a35a4d8
feat: [CODE-2484]: add API to squash commits on a branch ( #2793 )
...
* add openapi entry for squash
* minor fixes
* squash api
2024-10-15 16:49:02 +00:00
Johannes Batzill
966cd70c4a
fix: [CODE-2489]: Expand detection of repo not found cases in git error parsing ( #2797 )
2024-10-09 22:53:10 +00:00
Marko Gaćeša
2892378036
feat: [CODE-1474]: add check PR rebaseability ( #2763 )
...
* update migration number
* rename UpdateConflict->UpdateMergeOutcome
* small fixes
* handle mergeability for all merge methods
* alway separate rebaseability check
* add check PR rebaseability
2024-10-04 12:36:32 +00:00
Marko Gaćeša
8dac8c2797
feat: [CODE-2335]: add dryrun option for rebase API ( #2721 )
...
* dryrun rebase
2024-09-23 14:46:17 +00:00
Marko Gaćeša
7c83c5520e
feat: [CODE-2385]: add fast-forward merge ( #2718 )
...
* add fast-forward merge
2024-09-23 11:34:19 +00:00
Karan Saraswat
644678f50c
feat: [CODE-2339]: Send sha in delete branch API and fix dry run rules behaviour ( #2672 )
...
* go lint issues and added return in the Deletebranch method
* removed the comment
* fixed go lint issues
* fixed query param in swagger
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into ks/CODE-2339
* feat: [CODE-2339]: Send sha in delete branch API and fix dry run rules behaviour
2024-09-09 11:45:18 +00:00
Enver Biševac
61c794da0b
feat: unrealted histories error handling ( #2642 )
...
* comments added
* return proper status and message for unrelated history
* code cleanup
* requested changes
* feat: unrealted histories error handling
2024-09-06 11:41:21 +00:00
Marko Gaćeša
ffe585f8c4
add missing error check in CommitFiles ( #2605 )
...
* add missing error check in CommitFiles
2024-08-28 12:51:18 +00:00
Enver Biševac
7c2c732c9f
fix complex file extensions like tar.gz ( #2143 )
...
* fix complex file extensions like tar.gz
2024-07-15 14:41:58 +00:00
Marko Gaćeša
4ac42fc6c9
Add additions and deletions to PRs ( #2196 )
2024-07-11 10:01:17 +00:00
Darko Draskovic
fe7b1941ef
Add omitempty to stats and run get change info for changes and types in parallel ( #2105 )
2024-06-14 15:41:53 +00:00
Enver Biševac
2f8900e463
[code-1946] initial work on ssh server ( #2075 )
2024-06-03 12:47:31 +00:00
Johannes Batzill
43897cd593
Fix DiffCut For New File ( #2065 )
2024-05-24 01:10:29 +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
Darko Draskovic
d4ca33b82d
Temporary rename info/alternates so --batch-all-objects doesn't follow it ( #2039 )
2024-05-20 18:43:52 +00:00
Marko Gaćeša
fdd401c989
fix: [CODE-1858]: fix reading too long lines in diff hunk headers ( #2036 )
2024-05-16 11:37:38 +00:00
Johannes Batzill
423801d51a
[Secret Scanning] Add basic support for gitleaksignore ( #2030 )
2024-05-09 22:00:03 +00:00
Johannes Batzill
f6614fe151
Minor Fixes ( #2028 )
2024-05-09 00:01:52 +00:00
Enver Biševac
fb5e38dd2c
[code-1822-maint] add validation method to git archive params ( #2016 )
2024-04-26 22:54:08 +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
9e7f80ebe0
Code Suggestions - Backend Support ( #2006 )
2024-04-26 16:54:50 +00:00
Johannes Batzill
86537b2c39
Fix merge related issues ( #2012 )
2024-04-25 22:00:53 +00:00