Johannes Batzill
2369983dfe
[GITHA] Add Repo Hashing to gitrpc
( #156 )
2023-06-23 23:39:17 +00:00
Johannes Batzill
63c45cb0db
[GITHA] Prepare GITRPC for GITHA changes (HTTP Server, GRPC Operations: Sync, RemoteDefaultBranch, Deterministic CommitID) ( #153 )
2023-06-22 16:54:18 +00:00
Marko Gaćeša
4c7d31fb6c
improve tag API implementation
2023-06-21 12:47:20 +02:00
Johannes Batzill
06067d4f6c
Fix Linting errors ( #142 )
2023-06-15 21:27:06 +00:00
Johannes Batzill
e1a24699c3
CODE-385: Search and Add reviewers to Database API ( #126 )
2023-06-15 20:26:36 +00:00
Abhinav Singh
6de9c127e0
Merge branch 'abhinav/CODE-318' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #116 )
2023-06-09 12:58:12 +00:00
Marko Gaćeša
cdc1370564
feat: [CODE-389]: status checks API layer
2023-06-08 12:38:20 +02:00
Atefeh Mohseni-Ejiyeh
0df1335855
[HARNESS] Delete Space on Harness Account/Org/Project deletion ( #83 )
2023-06-08 00:09:34 +00:00
Abhinav Singh
23f299fb64
techdebt: [CODE-318]: remove commits v2
2023-06-07 12:26:26 -07:00
Abhinav Singh
45adfbe64e
backend change to remove rename commit from old file
2023-06-06 10:15:13 -07:00
Abhinav Singh
df29038e40
backend change to remove rename commit from old file
2023-06-05 22:33:35 -07:00
Akhilesh Pandey
d4baf9bc94
Merge branch 'ap/tag-changes' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #94 )
2023-05-30 10:02:12 +00:00
Akhilesh Pandey
a06e6e223e
fix: Update CreateTagRequest to include tagger details
2023-05-29 15:59:28 +05:30
Enver Bisevac
331221a2ef
Merge branch 'eb/code-280' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #99 )
2023-05-26 15:47:20 +00:00
Abhinav Singh
e482fad30e
feat: [CODE-345]: rename enhancement and committer addition
2023-05-24 02:41:35 -07:00
Abhinav Singh
f94dd30b53
feat: [CODE-345]: rename enhancement and committer addition
2023-05-24 02:30:20 -07:00
Abhinav Singh
a0ce4fe88e
feat: [CODE-345]: rename enhancement and committer addition
2023-05-23 18:02:31 -07:00
Marko Gaćeša
56e0c642bd
handle no trailing EOL git message
2023-05-23 15:28:52 +02:00
Akhilesh Pandey
9a1b539267
fix: [CODE-199]: Merge to main
2023-05-18 16:00:00 +05:30
Akhilesh Pandey
76b88933e5
fix: [CODE-199]: Minor, rename local variables to request
2023-05-18 09:41:14 +05:30
Abhinav Singh
f34f267084
feat: [CODE-200]: list commits with date filter
2023-05-17 15:12:44 -07:00
Abhinav Singh
73095da2bb
Update gitrpc/internal/gitea/commit.go
2023-05-17 21:50:37 +00:00
Abhinav Singh
7f6947f0ea
feat: [CODE-200]: list commits with date filter
2023-05-17 14:37:19 -07:00
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
Enver Bisevac
0d1fd8d9c5
return bad request if head and base branch have same commit sha
2023-05-17 17:05:11 +02:00
Abhinav Singh
05849f48e6
feat: [CODE-200]: list commits with date filter
2023-05-17 01:53:23 -07:00
Abhinav Singh
943708dcc7
feat: [CODE-200]: list commits with date filter
2023-05-17 01:39:35 -07:00
Enver Bisevac
8fcff7a25c
Merge branch 'ap/add-swagger-schema' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #71 )
2023-05-16 17:39:23 +00: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
d865f08eb0
Merge branch 'eb/code-174-fix' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #69 )
2023-05-12 17:12:03 +00:00
Enver Bisevac
3889cb891f
use enum from types
2023-05-12 19:01:29 +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
7dcccc323e
Merge branch 'abhinav/CODE-260' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #58 )
2023-05-10 21:06:57 +00: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
Marko Gaćeša
4f4e6e7786
fix few linter issues
2023-05-09 18:53:38 +02:00
Abhinav Singh
59a7cdf8a8
feat: [CODE-260]: commit api should have path filter
2023-05-08 22:54:00 -07:00
Atefeh Mohseni-Ejiyeh
fdc203cdf9
Merge branch 'atmsn/cleanup' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #14 )
2023-05-04 23:35:14 +00:00
atefeh
8b335d1573
code195 repo delete cleanup, and added a cron manager for cronjobs and unit tests
2023-05-04 09:10:10 -07:00
Marko Gaćeša
de0ab2bc75
return old/new-line-new values used to create cc
2023-05-04 11:08:24 +02: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
Atefeh Mohseni-Ejiyeh
7cdb681faa
Merge branch 'atmsn/delete-repo-bug-fix' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #18 )
2023-04-03 18:40:56 +00:00
atefeh
309a1a612a
fix gitrpc error handling in controller
2023-04-03 11:35:51 -07:00
Marko Gaćeša
a7183d108c
fix blame API result field naming
2023-04-03 09:43:16 +02:00
Atefeh Mohseni-Ejiyeh
5f211bdea5
Merge branch 'atmsn/delete-repo' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #11 )
2023-03-31 22:26:16 +00:00
atefeh
5a23824882
Code-161 Add Git Repo Deletion API (GitRPC) and handle creation failure
2023-03-31 15:19:45 -07:00
Enver Bisevac
5c266ad78f
fix for merge-check response
2023-03-30 20:51:25 +02:00
Enver Bisevac
e38b0ebc65
fix for branch create in empty repo, minor config changes for err shadow
2023-03-21 11:53:23 +01: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
b44948bd97
[MISC] Expose Content Encoding as Enum across APIs ( #359 )
2023-02-27 18:50:52 -08:00
Johannes Batzill
9d894c79cc
[MERGE] Enhance PR Merge (Check) Fields. ( #342 )
2023-02-14 20:18:10 -08:00
Johannes Batzill
ee035dfb3b
[MISC] Make Search Query Case-Insensitive for Repo/Space/PR/Webhook ( #330 )
2023-02-13 15:31:59 -08:00
Johannes Batzill
821610a375
[MISC] Support Branch Creation for Target Branch/Tag/Commit ( #327 )
2023-02-12 21:19:30 -08:00
Enver Bisevac
82b8679d6f
[fix] diff-stats api returns total commits and files changed in compare branches ( #323 )
2023-02-13 00:47:23 +01: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
89aa9cd70a
[GIT] Set Harness/Gitness as Committer for API Created Commits ( #310 )
2023-02-03 20:22:24 -08:00
Johannes Batzill
c5d92b498b
[API] Add GetCommit API ( #291 )
2023-02-01 18:50:54 -08:00
Johannes Batzill
fe83493623
[API] Add GetBranch API ( #290 )
2023-02-01 18:13:27 -08:00
Johannes Batzill
8f82c0ce4e
[Webhook] Add Support for PR Branch Updated ( #267 )
2023-01-31 13:07:48 -08:00
Enver Bisevac
baa3822acc
[SCM-55] initial work on PR metadata ( #262 )
2023-01-31 02:08:23 +01:00
Johannes Batzill
bfb0466b11
[MISC] Move configurations to their respective packages ( #256 )
2023-01-26 17:30:26 -08:00
Enver Bisevac
1f86b3c73d
[fix] merge commit is blocked with dbtx mutex lock ( #245 )
2023-01-26 13:41:45 +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
Johannes Batzill
335998505e
[MISC] Introduce PathStore and Move PathLogic to Controller Layer ( #226 )
...
This change is a follow up on the effort to remove transactions and sync stores from the database layer, and move them in the application layer. It is addressing the repo + space store.
The following changes are included:
- Introduce PathStore storing resource paths (repo + space)
- Add foreign key from path.repo_id/space_id to repo.id/space.id
- Add foreign key from repo/space.parent_id to space.id
- Remove repo_sync and space_sync
- Move path creation logic to repo/space controller (for both creating primary paths for new repos/spaces, as well as creating alias spaces)
- Reimplement repo/space moving on controller layer
2023-01-18 11:34:12 -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
Johannes Batzill
5e3837b9cf
[MISC] disable 'update' git hook ( #181 )
2023-01-11 17:09:46 -08:00
Johannes Batzill
d1dd518b3f
add commit details to webhook payload ( #175 )
2023-01-11 10:51:28 -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
2006f769c9
[Webhook] Add url.Provider, Add principal to branch webhooks ( #163 )
2023-01-06 01:57:26 -08: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
Enver Bisevac
22b0595476
initial work on raw diff ( #129 )
2022-12-22 14:30:31 +01:00
Johannes Batzill
7abcacdd2f
feat: Add Events Framework ( #120 )
...
This Commit adds:
- stream package (provides different implementation of stream producers and consumers)
+ Redis -> will be used for any non-local deployments
+ InMemory -> a VERY BASIC implementation that is used for local execution
- events package
+ GenericReporter -> responsible for reporting events, can be used to send any type of event and payload
+ GenericReader -> responsible for reading events from a stream, can be used to register handlers for any type of event and payload
+ ReaderFactory -> responsible for launching readers for any type of consumer group&name.
- webhook package
+ The wire frame of the webhook package.
- gitrpc/events package
+ defines event Reader/Reporter for events of category git
2022-12-16 13:37:08 -08:00
Johannes Batzill
3b120dd2b3
Add Zerolog Support to GITRPC ( #126 )
...
This change adds the following:
- Inject APP server zerolog RequestID as metadata into all gitrpc calls from client side.
- Inject Zerolog logger into context with common fields set (like service, method, requestID, ...). This allows for better request tracking within gitrpc, but also request tracking across services we extract the requestID send by the grpc client
- Modify http logs to use http. prefix for common http related logging annotations.
2022-12-16 08:39:10 -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
2b1bf42e3d
merged changes
2022-11-29 11:09:06 +01:00
Enver Bisevac
ee40f2af7a
title + description in commit files
2022-11-29 11:05:35 +01:00
Enver Bisevac
732e1914ae
minor refactoring and optimization
2022-11-25 18:58:20 +01:00
Enver Bisevac
630c9b553f
ordering imports linter and writer ( #85 )
2022-11-22 23:42:39 +01:00
Enver Bisevac
ad619c7e3c
[feat]ability to commit files using REST api ( #82 )
...
* initial work on commit files
* minor improvements, grpc server interceptors and more
* compare file old sha and current sha
* added some validation steps
* config immutable, introduce temp repos dir
* handler added to standalone
* fix CI linter, fix minor bug on update
* wire generator files
2022-11-22 19:24:40 +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
Johannes Batzill
c8cee4d250
[Misc] Preparation for Container Deployment ( #67 )
...
This change is fixing our docker file which is used to build our harness code image used for PR deployments.
Furthermore, the change contains some logging improvements that were added along the way of setting up the PR environment.
2022-11-09 23:03:40 -08:00