Commit Graph

82 Commits

Author SHA1 Message Date
Johannes Batzill
59e3bff412 fix missed error and linting errors 2023-06-26 11:37:08 -07:00
Akhilesh Pandey
2408203893 Merge branch 'akp/reviewer-delete' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#157) 2023-06-23 17:48:46 +00:00
Akhilesh Pandey
9ebc5c1bea CODE-548: Update search to prID 2023-06-23 00:47:19 +05:30
Akhilesh Pandey
699156d56d CODE-548: API support to remove reviewers from pull request 2023-06-22 22:31:52 +05:30
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
Johannes Batzill
36e8bdb368 [GITHA] Introduce Generic store Package (#143) 2023-06-20 00:26:40 +00:00
Johannes Batzill
06067d4f6c Fix Linting errors (#142) 2023-06-15 21:27:06 +00:00
Marko Gaćeša
d3d48d5dba migrate code comments on PR reopen 2023-06-14 15:34:33 +02:00
Marko Gaćeša
33b90299f8 leave payload untouched for deleted comments 2023-05-18 18:13:12 +02:00
Enver Bisevac
8ab5185263 fixed linter issues 2023-05-17 21:56:23 +02:00
Marko Gacesa
3a1d192a78 Merge branch 'mg/pr/forbid-pr-with-no-changes' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#77) 2023-05-17 15:01:44 +00:00
Marko Gaćeša
b8ebe97079 forbid creating a PR with no changes 2023-05-17 16:56:20 +02:00
Enver Bisevac
7edc3d087b sqaush and merge message same as PR title 2023-05-17 16:05:43 +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
Marko Gaćeša
2cfe58c699 block merge if there are unresolved comments 2023-05-12 13:53:29 +02:00
Marko Gaćeša
8c329715dc submit review API requires commit SHA 2023-05-09 13:54:48 +02:00
Marko Gaćeša
59b7cf5e69 comment status API 2023-05-08 16:03:23 +02: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
8aea16d96a add headers with SHAs for PR raw diff API 2023-04-27 18:40:52 +02:00
Marko Gaćeša
be3b68e577 make merge base SHA not nullable 2023-04-27 13:12:54 +02:00
Johannes Batzill
0de0d2fcef updating permission check to april milestone 2023-04-19 09:24:38 -07:00
Enver Bisevac
fffb37bfa2 Merge branch 'eb/rbac' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#25) 2023-04-19 15:29:46 +00:00
Johannes Batzill
89bb0f6b99 update gitRPC getBlob api to stream blob content, add 'raw' api. 2023-04-18 11:39:59 -07:00
Enver Bisevac
b092c1b8df added go-rbac dependency 2023-04-18 03:10:30 +02:00
Marko Gaćeša
13e4ffe522 Add code comments 2023-04-13 14:12:01 +02: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
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
Enver Bisevac
2b4f06d465 [fix] pr create now returns 409 on duplicate (#296) 2023-02-03 01:13:21 +01:00
Enver Bisevac
f7099d5923 [fix] Pull Req creation for existing PR (#292) 2023-02-02 18:13:34 +01:00
Marko Gaćeša
9dfad8b5e1 Added column comment_count to the PR entity (#280) 2023-02-02 11:31:22 +01:00
Enver Bisevac
43bd045e47 [fix] PR diff files api returns empty body (#285) 2023-02-02 00:05:46 +01:00
Enver Bisevac
e2b350e704 [maint] pr statistic is in pr response now (#269) 2023-01-31 15:21:05 +01:00
Marko Gaćeša
ce322ec596 Writing pull req activities in controllers (#263) 2023-01-31 12:34:18 +01:00
Enver Bisevac
baa3822acc [SCM-55] initial work on PR metadata (#262) 2023-01-31 02:08:23 +01:00
Marko Gaćeša
4277c4c66b Simplify handling of PR events (#253) 2023-01-27 16:27:03 -08:00
Enver Bisevac
1f86b3c73d [fix] merge commit is blocked with dbtx mutex lock (#245) 2023-01-26 13:41:45 +01:00
Marko Gaćeša
825336d0e4 Added missing context in some of the log calls (#250) 2023-01-25 14:06:48 +01:00
Marko Gaćeša
7a92d8e110 PR events and PR head ref (#244) 2023-01-25 11:19:58 +01:00
Marko Gaćeša
09902b02a3 Extended create PR API with IsDraft field (#242) 2023-01-23 19:49:01 +01:00
Johannes Batzill
085e63422b [MISC] Explicitly type PullReqActivity.Payload (#233) 2023-01-20 12:29:13 -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
95a77e072e [MISC] Fix badrequest error in merge API (#231) 2023-01-18 18:17: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