Commit Graph

832 Commits (main)

Author SHA1 Message Date
Darko Draskovic cc64066d9a fix: [CODE-1277]: Fix response pr ret val on target branch change not updated (#3639)
* Fix response pr ret val on target branch change not updated
2025-04-04 14:09:47 +00:00
Deepak Bhatt 205a25900f feat: [CDE-693]: mv message map to enum package (#3636)
* fix: [CDE-693]: mv message map to enum package
2025-04-04 12:04:27 +00:00
Marko Gaćeša f2245fa79c feat: [CODE-3450]: fix openapi for pullreq count API (#3635)
* fix openapi for pullreq count API
2025-04-04 11:27:43 +00:00
Marko Gaćeša 28f012c577 feat: [CODE-3450]: add pullreq count API (#3624)
* add pullreq count API
2025-04-04 10:46:19 +00:00
Deepak Bhatt 80112d19fe fix: [CDE-703]: use name metadata field to generate pool identifier (#3633)
* fix: [CDE-703]: use name metadata field to generate pool identifier
2025-04-04 10:12:36 +00:00
Deepak Bhatt e7d7db57b4 feat: [CDE-693]: add gitspace events for delegate task submit and infra vm creation (#3616)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-693
* feat: [CDE-693]: add new gitspace events
* feat: [CDE-693]: add gitspace events for delegate task submit and infra vm creation
2025-04-04 07:17:52 +00:00
Atefeh Mohseni Ejiyeh 3c22d6342a fix: [CODE-3455] return full content on raw api for non-lfs content (#3625) 2025-04-03 20:03:56 +00:00
Abhinav Singh 6b521d3422 fix: [CODE-3440]: add fix for go get in cut out terminated path (#3618)
* fix: [CODE-3440]: add fix for go get in cut out terminated path
2025-04-02 21:29:22 +00:00
Atefeh Mohseni Ejiyeh d3261ebc20 feat: [CODE-2528]: Update raw and get-content APIs to download lfs objects (#3549) 2025-04-02 21:28:41 +00:00
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
Deepak Bhatt edcad7b744 fix: [CDE-706]: add ip-config for generating pool identifier (#3612)
* fix: [CDE-706]: lint
* fix: [CDE-706]: add ip-config for generating pool identifier
2025-04-02 12:55:00 +00:00
Marko Gaćeša 444aafdb0b feat: [CODE-2947]: add user events and metric handlers (#3597) 2025-03-28 20:06:47 +00:00
Darko Draskovic 60a182e515 feat: [CODE-1277]: Add support for PR target branch change (#3579)
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Add openapi spec for opChangeTargetBranch
* Fix updateMergeData args
* Refactor ChangeTargetBranch to use verifyBranchExistence and git.GetRefPath
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Refactor instumentation and event payload
* Change instrumentation and event payload
* Add target-branch-changed event
* Get new merge base and clear merge related fields
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Add merge check to target branch change
* Merge remote-tracking branch 'origin/main' into dd/change-target-branch
* Add new PullReqActivityType and EventType for audit track
* Add support for PR target branch change
2025-03-28 16:04:15 +00:00
Darko Draskovic cc2a63b797 feat: [CODE-3293]: Add create compound label activity on PR creation label assignments (#3603)
* Add PullRequestActivityLabelBase
* Merge remote-tracking branch 'origin/main' into dd/compound-label-activity
* Add create compound label activity on PR creation label assignments
2025-03-28 15:29:01 +00:00
Deepak Bhatt e518dc7f41 feat: [CDE-697]: Add async flow when gitspace agent fails to perform action (#3602)
* feat: [CDE-697]: fix stop async flow
* feat: [CDE-697]: Add async flow when gitspace agent fails to perform action
2025-03-28 13:15:20 +00:00
Deepak Bhatt d79d292d87 feat: [CDE-699]: modify infra provider create resource api (#3600)
* feat: [CDE-697]: make cpu, memory and network as empty if nil
* feat: [CDE-699]: add comment
* feat: [CDE-699]: modify infra provider create resource api
2025-03-28 10:21:54 +00:00
Vikyath Harekal 963197214e feat: [CDE-698]: Store gateway host in infra provisioned for full sync (#3598)
* feat: [CDE-698]: Remove unwanted changes
* feat: [CDE-698]: Store gateway host in infra provisioned for full sync
2025-03-27 05:11:25 +00:00
Marko Gaćeša 5c05642cce feat: [CODE-3405]: use case insensitive email matching for codeowners (#3596)
* use case insensitive email matching for codeowners
2025-03-26 16:22:25 +00:00
Johannes Batzill 91c4ccf3b7 fix: [CODE-3393]: Fix PR creation when no codeowner file exists for being adding as reviewers (#3583) 2025-03-21 03:37:39 +00:00
Johannes Batzill 9d5ceb0033 fix: [CODE-3379]: Remove PR author from default reviewer evaluation (#3578) 2025-03-20 19:33:56 +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
Johannes Batzill 9882bf0ae4 feat: [CODE-3372]: Return default reviewers in 'Users' field of branch protection rules (#3571) 2025-03-18 18:29:31 +00:00
Vikyath Harekal b65baf9511 feat: [CDE-690]: Move gitspace status to error if infra status is error (#3569)
* feat: [CDE-690]: Address comments
* feat: [CDE-690]: Move gitspace status to error if infra status is error
2025-03-18 16:49:48 +00:00
Tudor Macari 89b2a19837 feat: [AH-1077]: Change secretSpaceId from int to int64 (#3553)
* feat: [AH-1077]: fix tests
* resolve conflicts
* feat: [AH-1077]: Change secretSpaceId from int to int64
2025-03-18 11:47:49 +00:00
Marko Gaćeša d708de0730 fix: [CODE-2947]: add posthog (#3528)
* changed the object-verb separator char
* change env var name for the PH API key
* add events for repo import and migrate
* rename pr "open" to "create""
* resolve pr comments
* add posthog
2025-03-18 11:31:51 +00:00
Dhruv Dhruv b0de915ae2 feat: [CDE-669]: Integrating gitspaces and infra providers with delete spaces functionality. (#3558)
* Addressing review comments.
* Rebasing
* Removing reliance on space paths for gitspace service.
* feat: [CDE-669]: Integrating gitspaces and infra providers with soft delete spaces functionality.
2025-03-18 08:00:25 +00:00
Vikyath Harekal 10a3e8bbc0 feat: [CDE-679]: Pass infra config metadata to infra provider methods (#3550)
* feat: [CDE-679]: return err
* feat: [CDE-679]: fix provider
* feat: [CDE-679]: merge
* feat: [CDE-679]: Pass infra config metadata to infra provider methods
* feat: [CDE-679]: Pass infra config metadata to infra provider methods
* feat: [CDE-661]: set starting state by default in resume
* Merge branch 'main' into hybrid
* feat: [CDE-661]: fix host and port (#3511)

* feat: [CDE-661]: fix host and port
* feat: [CDE-661]: fix host and port
* feat: [CDE-661]: send remove request for hybrid (#3500)

* feat: [CDE-661]: add debug logs
* feat: [CDE-661]: send remove request for hybrid
* feat: [CDE-661]: Fetch gateway host from infra config (#3494)

* feat: [CDE-661]: fix wiring
* feat: [CDE-661]: Fetch gateway host from infra config
* Merge branch 'main' into hybrid
* feat: [CDE-636]: Fixing infra provider config update logic.
* feat: [CDE-636]: Adding config metadata to infra provider methods parameters.
* feat: [CDE-636]: Adding config metadata to infra provider methods parameters.
* feat
2025-03-13 10:40:05 +00:00
Vikyath Harekal 7f9c549b95 feat: [CDE-681]: Add column if not exists (#3552)
* feat: [CDE-681]: Drop column if exists
* feat: [CDE-681]: Add column if not exists
2025-03-13 05:32:12 +00:00
Vikyath Harekal fb0387e64f feat: [CDE-681]: fix migration numbers (#3551)
* feat: [CDE-681]: fix migration numbers
2025-03-13 04:49:35 +00:00
Arvind Choudhary f660d8b0cd feat: [AH-994]: Updated Client setup details. Update pypi to python (#3547)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-994-client-setup-details-update
* [AH-994]: Merge conflict fixed
* [AH-994]: Merge conflict fixed
* [AH-994]: Updated makefile
* [AH-994]: Merge conflict fixed
* [AH-994]: Updated Client setup details. Update pypi to python
2025-03-13 04:45:55 +00:00
Tudor Macari a0461fd870 feat: [AH-1067]: use internal webhook secret (#3539)
* feat: [AH-1067]: change var name
* feat: [AH-1067]: change var name
* feat: [AH-1067]: fix lint issues
* feat: [AH-1067]: use internal webhook secret
2025-03-12 21:00:50 +00:00
Johannes Batzill bcc9fc50f1 fix: [CODE-3338]: remove pr author from list of reviewers in activities (#3536) 2025-03-12 16:26:28 +00:00
Marko Gaćeša f365ba6713 fix: [CODE-3272]: revert delete of source branch in merge git call (#3542)
* revert delete of source branch in merge git call
2025-03-12 14:48:32 +00:00
Vikyath Harekal ff18742bdd feat: [CDE-681]: Find infra from DB and status from GCP (#3538) (#3540)
* feat: [CDE-681]: Find infra from DB and status from GCP (#3538)

* Merge branch 'hybrid' into CDE-681
* feat: [CDE-681]: fix lint
* feat: [CDE-681]: fix lint
* feat: [CDE-681]: merge
* feat: [CDE-681]: fix wiring
* feat: [CDE-681]: handle delete and fallback for it
* feat: [CDE-681]: handle delete and fallback for it
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: merge
* feat: [CDE-661]: set starting state by default in resume
* Merge branch 'main' into hybrid
* feat: [CDE-661]: fix host and port (#3511)

* feat: [CDE-661]: fix host and port
* feat: [CDE-661]: fix host and port
* feat: [CDE-661]: send remove request for hybrid (#3500)

* feat: [CDE-661]: add debug logs
* feat: [CDE-661]: send remove request for hybrid
* feat:
2025-03-12 10:43:31 +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
Tudor Macari 6da9821bc7 feat: [AH-933]: implement webhook execution (#3444)
* feat: [AH-933]: implement webhook execution
* feat: [AH-933]: implement webhook execution
2025-03-11 21:08:21 +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
Marko Gaćeša 75ec960ef2 feat: [CODE-3021]: preserve pullreq updated on ResetMergeCheckStatus (#3530)
* preserve pullreq updated on ResetMergeCheckStatus
2025-03-10 10:52:08 +00:00
Sourabh Awashti 660738e8ab feat:[AH-1011]: Changes for HAR license check (#3520)
* feat:[AH-1011]: fix checks
* feat:[AH-1011]: Changes for HAR license check
2025-03-10 10:36:50 +00:00
Dhruv Dhruv 45d2a72d20 fix: [CDE-668]: Fixing the usage of last used field in gitspace instance. (#3524)
* Fixing formatting.
* fix: [CDE-668]: Fixing the usage of last used field in gitspace instance.
2025-03-07 09:41:47 +00:00
Dhruv Dhruv 4d7c6addde feat: [CDE-660]: Adding support for listing and (soft) deleting infra provider configs. (#3502)
* Fixing gitspace instance state enum.
* feat: [CDE-660]: Adding support for listing and (soft) deleting infra provider configs.
2025-03-04 06:35:19 +00:00
Darko Draskovic bb82438965 feat: [CODE-3278]: Add PR activity for reviewers that were added on PR creation (#3499)
* Reuse PullRequestActivityPayloadReviewerAdd and amend it with PrinciaplIDs
* Remove unused and redundant activity (sub)type
* Merge remote-tracking branch 'origin/main' into dd/pr-reviewer-creation-activity
* Replace store individual activity per reviewer added with store batch
* Add PR activity for reviewers that were added on PR creation
2025-03-03 16:07:01 +00:00
Karan Saraswat 50caca099f feat: [CODE-3205]: restrict importing duplicate repos while importing (#3471)
* feat: [CODE-3205]: restrict importing duplicating repos while importing
2025-03-02 04:55:16 +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 d5db990c82 techdebt: [CODE-3276]: remove direct usage of SpacePathStore (#3495)
* remove direct usage of SpacePathStore
2025-02-28 14:18:30 +00:00
Darko Draskovic 98c18995f0 feat: [CODE-3235]: Send notifications to reviwers added on pullreq create (#3489)
* Send notifications to reviwers added on pullreq create
2025-02-27 15:53:08 +00:00
Dhruv Dhruv 26cda57360 feat: [CDE-636]: Adding config metadata to infra provider methods parameters. (#3487)
* feat: [CDE-636]: Fixing infra provider config update logic.
* feat: [CDE-636]: Adding config metadata to infra provider methods parameters.
* feat: [CDE-636]: Adding config metadata to infra provider methods parameters.
2025-02-27 14:35:48 +00:00
Darko Draskovic cad0fbdf98 feat: [CODE-3256]: Add merge verify rule info related to minimum required approvals count for default reviewers (#3483)
* Merge remote-tracking branch 'origin/main' into dd/merge-verify-rules
* Replace princiapl ids with infos in merge verify response
* Populate DefaultReviewerApprovalsResponse with principal ids and current count
* Add MergeVerifyRulesResponse type
2025-02-26 17:56:59 +00:00
Arvind Choudhary 2489ff8e15 fix: [AH-865]: Updated encode logic to support multiple separators in the path (#3465)
* [AH-865]: Updated tests
* [AH-865]: Updated tests
* [AH-865]: Updated test flow
* [AH-865]: Simplying code:
* [AH-865]: Formatting fixed
* [AH-865]: Updated encode logic to support multiple separators in the path
2025-02-26 02:27:52 +00:00