Abhinav Singh
a6615c91a2
feat: [CODE-200]: list commits with date filter
2023-05-17 15:22:59 -07: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
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
be3b68e577
make merge base SHA not nullable
2023-04-27 13:12:54 +02: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
Marko Gaćeša
c7c36e49e1
Add git blame API ( #346 )
2023-03-09 12:55:23 +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
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
9bec905a65
[MISC] Always create system service principal ( #309 )
2023-02-03 19:18:29 -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
Marko Gaćeša
9dfad8b5e1
Added column comment_count to the PR entity ( #280 )
2023-02-02 11:31:22 +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
8f82c0ce4e
[Webhook] Add Support for PR Branch Updated ( #267 )
2023-01-31 13:07:48 -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
fe3d6d5990
Added num_merged_pulls ( #240 )
2023-01-25 11:21:19 +01:00
Johannes Batzill
085e63422b
[MISC] Explicitly type PullReqActivity.Payload ( #233 )
2023-01-20 12:29:13 -08: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
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
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
4881eb3863
allow empty value in enum sanitize if default is defined ( #209 )
2023-01-13 19:03:25 +01:00
Marko Gaćeša
ce55d3349c
added merge commit sha fields to PR ( #205 )
2023-01-13 14:49:24 +01:00
Marko Gaćeša
bacda596fa
Added Correct method for enum types ( #194 )
2023-01-13 13:59:53 +01:00
Johannes Batzill
eabdf2ab86
[MISC] Show merged after PR got merged ( #201 )
2023-01-13 00:35:41 -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
Marko Gaćeša
8909037ec7
enum types should have Enum() method ( #192 )
2023-01-12 17:13:03 +01:00
Johannes Batzill
155563615b
[MISC] Minor Cleanup in types
+ enum
Package ( #186 )
2023-01-11 23:16:07 -08: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
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
Marko Gaćeša
24e03c03e0
Added principal info cache ( #173 )
...
* added principal info cache
* updated code based on the PR comments
* updated implementation of deduplicate()
* minor changes
* [K, T] -> [K, V]
2023-01-11 20:32:37 +01:00