40 Commits

Author SHA1 Message Date
Abhinav Singh
f41b8bc7ce Merge remote-tracking branch 'origin' into abhinav/CODE-200 2023-05-17 14:10:24 -07:00
Enver Bisevac
8ab5185263 fixed linter issues 2023-05-17 21:56:23 +02:00
Abhinav Singh
943708dcc7 feat: [CODE-200]: list commits with date filter 2023-05-17 01:39:35 -07:00
Enver Bisevac
7c6a28ecd1 Merge branch 'ap/add-tag-api' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#36) 2023-05-16 15:35:52 +00:00
Abhinav Singh
a901efa5e6 Merge branch 'ap/delete-tag' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#68) 2023-05-15 19:45:34 +00:00
Akhilesh Pandey
527b3e18fa Add Validate to Service and Handler 2023-05-15 22:14:55 +05:30
Enver Bisevac
25a0f31df6 rebase and merge implementation 2023-05-15 18:12:55 +02:00
Enver Bisevac
4c4035d1e3 Merge branch 'eb/code-174' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#63) 2023-05-12 15:57:52 +00:00
Enver Bisevac
74c3c856a8 squash merge option added 2023-05-12 14:33:02 +02:00
Abhinav Singh
24fab5b3bf should have old path new path param to determine if we moved or got moved. 2023-05-09 13:29:56 -07:00
Abhinav Singh
59a7cdf8a8 feat: [CODE-260]: commit api should have path filter 2023-05-08 22:54:00 -07:00
Marko Gaćeša
96942f13b6 fix line numbers for code comments 2023-04-28 13:55:58 +02:00
Marko Gaćeša
be3b68e577 make merge base SHA not nullable 2023-04-27 13:12:54 +02:00
Johannes Batzill
89bb0f6b99 update gitRPC getBlob api to stream blob content, add 'raw' api. 2023-04-18 11:39:59 -07:00
Marko Gaćeša
13e4ffe522 Add code comments 2023-04-13 14:12:01 +02:00
Enver Bisevac
75ec201c2b Merge branch 'eb/gitrpc_error_handling' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#8) 2023-03-21 10:19:21 +00:00
Marko Gaćeša
c7c36e49e1 Add git blame API (#346) 2023-03-09 12:55:23 +01:00
Enver Bisevac
56d8f304a6 gitrpc error handling - initial work 2023-03-06 16:36:19 +01:00
Johannes Batzill
9d894c79cc [MERGE] Enhance PR Merge (Check) Fields. (#342) 2023-02-14 20:18:10 -08:00
Enver Bisevac
13a456e357 [scm-58] Add merge-check and Integrate with PR (#318)
Co-authored-by: Johannes Batzill <johannes.batzill@harness.io>
2023-02-11 23:22:12 -08:00
Johannes Batzill
c5d92b498b [API] Add GetCommit API (#291) 2023-02-01 18:50:54 -08:00
Enver Bisevac
baa3822acc [SCM-55] initial work on PR metadata (#262) 2023-01-31 02:08:23 +01:00
Johannes Batzill
e2d10d06cf [MISC] Move to alpine/git:2.36.3 (#238) 2023-01-21 16:23:04 -08:00
Marko Gaćeša
d6ce1bc762 Added gitrpc.UpdateRef (#236) 2023-01-20 17:06:35 +01:00
Enver Bisevac
6a7cc4e518 [scm-63] fix for empty commits and diff in PR (#228) 2023-01-20 02:27:51 +01:00
Johannes Batzill
ee0aae4e75 [GIT] Return 404 for listcommit in case ref isn't found (#230) 2023-01-18 17:42:18 -08:00
Enver Bisevac
aafec0a9dc fix merge-base in diff (#206) 2023-01-17 12:36:57 +01:00
Johannes Batzill
e448c6f763 [GIT] Fix commit API for empty repo, remove unused functions 2023-01-16 10:22:49 -08:00
Johannes Batzill
c827fa5e66 [MISC] Webhook Creation Default To Secure, Fix PR/Compare Commit Listing, Fix Merge Commit Message (#203)
This change is fixing a few things on both UI and backend side:
- update webhook creation screen to default to enable ssl verification (secure by default should always be the move)
- fix pr/compare commit listing to show correct diffs the head branch is ahead of the base branch (NOTE: THIS ONLY SHOWS THE LATEST 20 COMMITS - NO PAGINATION ADDED)
- fix merge commit message to contain the correct head branch, source repo path and pr numbers (similar'ish to github)
2023-01-13 02:49:39 -08:00
Enver Bisevac
2c62dda460 [maint] added ReadTree method to git adapter (#174)
* added ReadTree method in git adapter

* minor fix and rebase to main
2023-01-11 00:32:51 +01:00
Enver Bisevac
2f5339ece5 merge operation refactored (#172) 2023-01-10 13:54:08 +01:00
Enver Bisevac
63de576d08 [feat] initial work on merging PR (#170)
* initial work on merging PR

* code refactored based on requested changes

* requested changes
2023-01-10 02:09:43 +01:00
Johannes Batzill
6c567b38d0 [MISC] Move GitRPC to Read/WriteRequest, Update Create/Delete Branch to use Push, Setup githook Symlink, Accept Incoming X-Request-Id (#157) 2023-01-05 11:03:35 -08:00
Johannes Batzill
7ada1af3aa [API] Add after Support to Commit Listing (#155) 2023-01-04 16:59:43 -08:00
Johannes Batzill
1f1118f624 [Webhook] Add Event Processing and Retrigger (#148)
This change includes:
- webhook event processor (includes actual webhook execution)
- webhook retrigger API allowing to retrigger previous webhook executions
2023-01-04 14:43:36 -08:00
Marko Gaćeša
8bdb31a4e2 checking branch existence in PR create (#105)
* checking branch existence in PR create
* added new methods to gitrpc: existence check for branch and tag
2022-12-06 12:26:12 +01:00
Enver Bisevac
630c9b553f ordering imports linter and writer (#85) 2022-11-22 23:42:39 +01:00
Johannes Batzill
60f0ea969d [API] Add API For Commit Divergence Calulation (#77)
This commit contains the following changes:
- Add `commits/calculate_divergence` API to calculate commit divergence of reference pairs
- Rename `serviceAccounts` to `service_accounts` to follow REST best practices
2022-11-16 16:53:31 -08:00
Johannes Batzill
c55c53deab [API] Add Create + Delete Branch API (+ Basic GIT Error Propagation) (#70)
This change adds the following:
- create / delete branch
- basic error propagation from git to user (notfound, conflict, invalidinput)
- create repo root folder in server instead of service constructor
2022-11-10 20:57:31 -08:00
Enver Bisevac
578dd13d8d [maint] eb/gitrpc refactor (#51)
* pull/push impl done

* Basic auth for harness

* gitrpc as top level package

* New ctor for package

* gitrpcserver instead of server2
2022-11-03 13:17:03 +01:00