Akhilesh Pandey
71ffa224f0
[CODE-621]: Add check to prevent last and only admin deletion ( #205 )
2023-07-25 04:03:43 +00:00
Johannes Batzill
c7e3620de9
[Tags] Improvements towards creation / listing /deletion ( #220 )
2023-07-25 00:04:47 +00:00
Hitesh Aringa
914050c8a1
[CODE-631]: use parent ref in space membership ( #226 )
2023-07-24 21:21:09 +00:00
Hitesh Aringa
bc5945f8ba
[CODE-631]: parent ref changes ( #214 )
2023-07-24 21:10:45 +00:00
Akhilesh Pandey
0539a21719
[CODE-617]: Create new component for system controller and move configs API to it
2023-07-24 20:01:41 +05:30
Marko Gaćeša
9c8e578d90
typo fixes
2023-07-24 15:10:56 +02:00
Akhilesh Pandey
8800af5245
[CODE-617]: Update endpoint and handler to be universal
2023-07-21 23:24:00 +05:30
Johannes Batzill
baa4eb5ac9
feat: [CODE-626,CODE-627]: space membership API&DB ( #194 )
2023-07-20 21:20:56 +00:00
Akhilesh Pandey
ac375ff3fa
[CODE-617]: Create common function for registration check to reuse the logic
2023-07-20 22:36:52 +05:30
Akhilesh Pandey
b8c239ed6d
[CODE-617]: Lint issues
2023-07-20 19:03:25 +05:30
Akhilesh Pandey
fe9bc1a4db
[CODE-617]: Add API support to registration check
2023-07-20 18:48:30 +05:30
Akhilesh Pandey
cff02b9d90
[CODE-617]: Lint fixes
2023-07-20 17:49:02 +05:30
Akhilesh Pandey
e93e4500a0
[CODE-617]: Move disable logic to handler and remove todo for it
2023-07-20 16:47:21 +05:30
Akhilesh Pandey
9fb093bad3
Merge branch 'main' into akp/CODE-617
2023-07-20 16:35:43 +05:30
Akhilesh Pandey
4c92c32c0a
[CODE-617]: Add env variable in Gitness to allow/disallow sign-ups
2023-07-20 16:34:07 +05:30
Johannes Batzill
45026edf2b
Merge branch 'akp/deprecate-formvalue' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #188 )
2023-07-19 00:01:25 +00:00
Johannes Batzill
ac84328a6b
remove default value and allow empty grants
2023-07-18 16:54:40 -07:00
Johannes Batzill
478ae74e49
make grants optional for pat/sat create APIs
2023-07-18 16:45:33 -07:00
Akhilesh Pandey
6b764b4eb0
[CODE-619]: Move update admin route from user to users ( #207 )
2023-07-18 19:08:52 +00:00
Akhilesh Pandey
d582d09ee1
CODE-620: Make admin password optional during startup ( #204 )
2023-07-18 13:09:26 +00:00
Akhilesh Pandey
e26e578da2
CODE-623: API to logout a user and delete the session token from database ( #202 )
2023-07-18 10:19:00 +00:00
Akhilesh Pandey
0cd95e7400
[CODE-619]: Remove unused function
2023-07-18 15:33:41 +05:30
Akhilesh Pandey
d55ff28174
Update error message when unable to parse user_uid
2023-07-18 15:31:56 +05:30
Akhilesh Pandey
a57f4f22a9
Update user-admin update API to use the user_uid instead of user_id
2023-07-18 15:20:57 +05:30
Akhilesh Pandey
ee683aa2c8
Update struct attribute names and pass register logic from handler to controller
2023-07-18 00:57:06 +05:30
Akhilesh Pandey
03cc7de4f2
CODE-619: Update API to use UserID from Path
2023-07-14 20:50:00 +05:30
Akhilesh Pandey
29a9194437
CODE-619: Add Handler and Route for Service update admin
2023-07-14 20:12:57 +05:30
Akhilesh Pandey
07b04f2d77
CODE-619: Add Handler and Route for Service update admin
2023-07-14 20:10:43 +05:30
Hitesh Aringa
ed7458d7b7
Reviewer repo access ( #195 )
2023-07-13 22:45:02 +00:00
Johannes Batzill
e354f560a5
Replace QueryParamAsPositiveInt64 with QueryParamAsPositiveInt64OrDefault where the parameter is optional ( #191 )
2023-07-13 05:46:16 +00:00
Johannes Batzill
5543fba0b4
[GIHA] Introduce githa
custom githook binary ( #186 )
2023-07-12 15:49:06 +00:00
Akhilesh Pandey
959fb7b462
CODE-610: Remove FormValue and start using Query().Get() for all APIs doing get requests and sync required parameters in swagger schema
2023-07-12 21:16:07 +05:30
Akhilesh Pandey
e1b6be7655
CODE-610: Update swagger schema ( #181 )
2023-07-11 11:35:00 +00:00
Akhilesh Pandey
2dd4d73da5
CODE-385: Fix delete response ( #170 )
2023-06-28 16:13:25 +00:00
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
Johannes Batzill
e1a24699c3
CODE-385: Search and Add reviewers to Database API ( #126 )
2023-06-15 20:26:36 +00:00
Marko Gaćeša
d3d48d5dba
migrate code comments on PR reopen
2023-06-14 15:34:33 +02:00
Atefeh Mohseni-Ejiyeh
7cb37db6c6
disable delete repo API from backend ( #119 )
2023-06-12 17:05:31 +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
6810a60297
techdebt: [CODE-318]: remove commits v2
2023-06-07 12:29:53 -07:00
Abhinav Singh
23f299fb64
techdebt: [CODE-318]: remove commits v2
2023-06-07 12:26:26 -07:00
Akhilesh Pandey
24a9888cfc
feat: Update HTTP status code to 201 when returning from successful create operations
2023-06-01 15:09:17 +05:30
atefeh
2b77e3aad6
code 281- get source router from the handler
2023-05-25 11:07:06 -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
atefeh
c88de09a2a
code cleaning
2023-05-22 17:04:30 -07:00
Enver Bisevac
2b38f2697a
fix 500 rbac error
2023-05-22 15:36:35 +02:00
Marko Gaćeša
33b90299f8
leave payload untouched for deleted comments
2023-05-18 18:13:12 +02:00
Enver Bisevac
8e1d602d9c
fix linter errors
2023-05-18 15:23:57 +02:00
Atefeh Mohseni-Ejiyeh
ce533985c4
Merge branch 'code281' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #67 )
2023-05-18 02:11:51 +00:00
atefeh
7d18a2b56a
code 281 validation of JWT token for CI integration
2023-05-17 19:10:06 -07:00
Abhinav Singh
a6615c91a2
feat: [CODE-200]: list commits with date filter
2023-05-17 15:22:59 -07: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
Abhinav Singh
7d3443850b
feat: [CODE-200]: list commits with date filter
2023-05-17 14:09:58 -07: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
b1898d3bb8
Merge branch 'eb/squash-merge-msg' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #76 )
2023-05-17 14:07:21 +00:00
Enver Bisevac
7edc3d087b
sqaush and merge message same as PR title
2023-05-17 16:05:43 +02:00
Marko Gaćeša
9f4e45be74
fix swagger reviewer API response
2023-05-17 13:40:29 +02:00
Abhinav Singh
1765fef3fd
feat: [CODE-200]: list commits with date filter
2023-05-17 02:10:38 -07:00
Abhinav Singh
0f650f8c28
feat: [CODE-200]: list commits with date filter
2023-05-17 01:59:46 -07: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
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
Akhilesh Pandey
f41b918129
feat: [CODE-199]: Update success status code to 204
2023-05-12 22:04:10 +05:30
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
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
Atefeh Mohseni-Ejiyeh
4b0dd89a6b
Merge branch 'atmsn/code165' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness ( #52 )
2023-05-09 18:52:03 +00:00
Marko Gaćeša
4f4e6e7786
fix few linter issues
2023-05-09 18:53:38 +02:00
atefeh
a309f4ec9b
CODE 165-API for delete a space subspaces and their repositories
2023-05-09 09:21:25 -07:00
Marko Gaćeša
8c329715dc
submit review API requires commit SHA
2023-05-09 13:54:48 +02: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
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
cd9b8f1413
add raw api to swagger and regenerate web/services
2023-04-18 12:17:22 -07: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
atefeh
309a1a612a
fix gitrpc error handling in controller
2023-04-03 11:35:51 -07: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
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
Enver Bisevac
fd08fa9775
[maint] api for PR metadata added ( #319 )
2023-02-12 21:39:56 -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
b0c8c91c08
[MISC] Hide email from public principals
API. ( #314 )
2023-02-06 11:33:41 -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
bf9906c4ce
[API] Add principals
API, move users
to admin
, simplify user/service/serviceaccount validation ( #300 )
2023-02-03 00:15:11 -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
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
Enver Bisevac
43bd045e47
[fix] PR diff files api returns empty body ( #285 )
2023-02-02 00:05:46 +01:00
Johannes Batzill
83c24913d3
[Webhook] Add pullreq_created
and pullreq_reopened
webhook triggers ( #283 )
2023-02-01 13:52:36 -08:00
Johannes Batzill
f78777f1d4
[MISC] Fix InternalError
for invalid resource ids in path ( #278 )
2023-01-31 19:08:30 -08: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
Johannes Batzill
7da9bce7c1
[Githook] Add GitHook binary ( #259 )
...
This PR adds a githook sub-package to our cmd packages, introducing the githook binary.
The binary is linked as pre-receie/update/post-receive by gitrpc if configured.
This is required to have a gitrpc deployment without requiring the one-in-all gitness binary on the same machine.
2023-01-27 13:04:58 -08: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
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
Johannes Batzill
2227e13e7d
[MISC] Fix Swagger and Regenerate WEB Services ( #246 )
2023-01-24 15:46:49 -08: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
43c497f59c
[MISC] Move webhooks to 'services' package ( #232 )
2023-01-18 19:08:03 -08: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
Marko Gaćeša
ec4003e331
Handling branch events for PRs ( #221 )
2023-01-18 13:26:20 +01:00
Hitesh Aringa
66cc979334
[SCM-61]: sort in webhook list api ( #199 )
...
* [SCM-61]: order by in webhook api
* [SCM-61]: comment change
* [SCM-61]: added query filter on display name
2023-01-17 09:59:27 -08:00
Marko Gaćeša
8151b4591e
PR change state API; Removed rejected state ( #220 )
2023-01-17 16:04:30 +01:00
Enver Bisevac
aafec0a9dc
fix merge-base in diff ( #206 )
2023-01-17 12:36:57 +01:00
Marko Gaćeša
6705c7234d
feat: [SCM-60]: return number of duplicate PR, unique partial index for PR branch uniqueness ( #214 )
2023-01-17 11:42:33 +01:00
Marko Gaćeša
3e92132d83
execute the list PRs API in a readonly tx ( #215 )
2023-01-17 11:42:08 +01:00
Marko Gaćeša
e5dc9754cd
default list of PR states should be empty ( #210 )
2023-01-13 18:47:42 -08:00
Marko Gaćeša
bacda596fa
Added Correct method for enum types ( #194 )
2023-01-13 13:59:53 +01: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
3ee51e29a4
[MISC] move custom filter/sort parsing methods to their respective files
2023-01-12 23:08:45 -08:00
Johannes Batzill
65c59d0b5b
[MISC] Fix review bugs, regenerate swagger from latest service, fix webhook.has_secret in swagger ( #198 )
...
This change contains the following changes:
- allow submitting reviews without comment for approve
- fix openapi for /reviews api and fix UI calls for submitting reviews
- fix recently broken openapi for webhook (it removed has_secret field as part of openapi refactor)
- fix fatal submit review bug (we passed repo.UID not repo.GitUID to gitrpc - not sure how that ever worked?)
- add missing merge pr activity to list of all pr activity enum values
- return all PR states by default
- show Open PRs by default (instead of all) and fix state filtering query
- regenerate code services based on latest swagger
- fix UI code to work with regenerated code service
2023-01-12 22:39:38 -08:00
Hitesh Aringa
fe00db23f9
[SCM-35]: default branch delete protection ( #183 )
...
* [SCM-35]: default branch delete protection
2023-01-12 09:59:09 -08:00
Marko Gaćeša
8909037ec7
enum types should have Enum() method ( #192 )
2023-01-12 17:13:03 +01:00
Johannes Batzill
5b55f48772
[Tags] Adding EVENT and WEBHOOK Support For Tags ( #185 )
...
Adding tagcreated, tagupdated, and tagdeleted events.
Adding tag_created, tag_updated, and tag_deleted webhooks
2023-01-11 20:56:00 -08:00
Johannes Batzill
d4d74f0f44
[SWAGGER] update swagger with latest webhook changes and re-render web services ( #184 )
2023-01-11 17:41:01 -08:00
Johannes Batzill
a74d779dc4
[Webhook] Add display_name/description/latest_execution_result to webhook ( #180 )
...
This PR adds the following fields to webhooks:
- 'DisplayName' - the display name of the webhook for easier recognition in UI (no uniqueness guarantees)
- 'Description' - an (optional) description of the webhook
- 'LatestExecutionResult' - contains the result of the latest execution of the webhook
2023-01-11 17:11:10 -08:00
Enver Bisevac
81196ce3e9
fix pr merge openapi path
2023-01-11 18:49:32 +01: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
Johannes Batzill
a426cdd69b
[GIT] Add Support for Other Git Clients ( #171 )
2023-01-10 14:35:09 -08: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
1a84e19ce4
[MISC] Add internal API URL to url.Provider
( #168 )
2023-01-06 14:17:41 -08:00
Johannes Batzill
5cb824debd
[feat]: Add Git Server Hook Support ( #159 )
...
This change is adding git server hook components:
- githook CLI implementation
- githook api handlers
- githook controler
2023-01-06 12:15:11 -08:00
Marko Gaćeša
65b49a933a
pull request reviewers ( #167 )
2023-01-06 20:29:20 +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
06721dcf20
[Techdebt] merge user/service/serviceaccount stores into single principal store ( #160 )
...
This change merges the `UserStore`, `ServiceStore`, and `ServiceAccountStore` into a single `PrincipalStore`.
2023-01-05 15:58:18 -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
d61e876de0
[FIX] Add repo_pullreq_seq to pullreq read APIs ( #158 )
2023-01-05 01:06:55 -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
9f7d6cc857
Added payload to create/update PR comment API ( #152 )
2023-01-04 12:26:25 +01:00
Marko Gaćeša
98ac3d130d
techdebt: [SCM-43]: Using opt lock to generate PR number ( #151 )
2023-01-04 12:24:17 +01:00
Enver Bisevac
72485456ab
swagger ref added for rawdiff
2023-01-02 10:56:32 +02:00
Marko Gaćeša
a79e187a88
DB & API refactor: Use snake case ( #144 )
...
Update DB and API to follow Harness Standard
2022-12-29 13:53:08 -08:00
Johannes Batzill
1337f729e7
[Webhook] Add Swagger ( #145 )
...
This change adds webhook APIs to swagger and regenerates the web service clients based on the latest swagger.
2022-12-28 14:42:13 -08:00
Johannes Batzill
44ec7ceb07
[Webhook] Add API and DB Basics ( #142 )
...
This change introduces:
- webhook type / store / controller / handler
- webhookExecution type / store / controller / handler
- foreign key fix for sqlite3
2022-12-28 13:07:48 -08:00
Marko Gaćeša
f14731455d
Add parent_id column to the pullreq_activities DB table ( #143 )
2022-12-28 18:51:34 +01:00
Marko Gaćeša
da53331ca1
PR comment: edit and delete APIs ( #138 )
2022-12-27 14:55:53 +01:00
Marko Gaćeša
b5bdeb8538
create comment API ( #137 )
2022-12-27 11:46:49 +01:00
Marko Gaćeša
7fc77396a9
Pull request timeline feature: DB and the list API ( #136 )
2022-12-26 12:17:38 +01:00
Marko Gaćeša
8f5e579001
rename DB table pullreq to pullreqs; added version ( #130 )
2022-12-22 20:21:15 +01:00
Enver Bisevac
22b0595476
initial work on raw diff ( #129 )
2022-12-22 14:30:31 +01: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
204548169d
pullreq: update API ( #122 )
2022-12-13 16:13:27 +01:00
Marko Gaćeša
fe9118e074
PullReq list API: Added pagination headers ( #121 )
2022-12-09 17:02:45 +01:00
Marko Gaćeša
6bde210adf
added branch params to PR list API ( #119 )
2022-12-09 15:45:02 +01:00
Marko Gaćeša
15163f3daa
pullreq: dedicated struct for pulling data from DB ( #116 )
2022-12-08 12:52:31 +01:00
Marko Gaćeša
efcb047f46
pullreq refactor: fix linter issues ( #115 )
2022-12-07 14:22:44 +01:00
Marko Gaćeša
9e86875217
Returning author and merger info for PRs ( #114 )
2022-12-07 14:03:17 +01: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
Marko Gaćeša
a50e9a9951
fix list pullreq API openapi spec ( #110 )
2022-12-02 14:29:10 +01:00
Enver Bisevac
c64874143d
allow line endings from input
2022-11-30 23:30:41 +01:00
Enver Bisevac
7a54ef9d65
fix with file content on commit, fix linter, removed unused provider
2022-11-30 22:36:01 +01:00
Marko Gaćeša
1f4ac7e4b4
pullreq: list API ( #99 )
2022-11-30 13:56:29 +01:00
Marko Gaćeša
49cd521593
comment fix ( #98 )
2022-11-29 17:00:28 +01:00
Marko Gaćeša
1eba93695b
feat: pull requests ( #89 )
...
* feat: pull requests, data layer
* pull requests: api layer
* add pull request number
* added auth check
2022-11-29 13:51:59 +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
Enver Bisevac
86716b4a0c
[bug] authentication on push to public repo ( #74 )
...
* authentication on push to public repo
* receivepack or uploadpack this should also be enum.PermissionRepoEdit or enum.PermissionRepoView
* accountID used for realm
2022-11-15 21:59:58 +01:00