Commit Graph

464 Commits

Author SHA1 Message Date
Dhruv Dhruv
64268b96c3 feat: [CDE-69]: Making page and limit query params in openapi spec public. (#2114) 2024-06-16 03:41:10 +00:00
Johannes Batzill
6645c274d3 Ensure principal_uid_unique is updated with principal_uid (#2111) 2024-06-14 18:18:26 +00:00
Darko Draskovic
fe7b1941ef Add omitempty to stats and run get change info for changes and types in parallel (#2105) 2024-06-14 15:41:53 +00:00
Johannes Batzill
329181ed1a Update principal uid for user/sa/service (#2107) 2024-06-14 01:16:09 +00:00
Atefeh Mohseni Ejiyeh
b005db9920 fix: Return Unauthorized for /user endpoint APIs if session is anonymous (#2102) 2024-06-13 02:05:26 +00:00
Atefeh Mohseni Ejiyeh
bcb8e7e3ce fix import space API output repo type (#2099) 2024-06-12 23:43:14 +00:00
Enver Biševac
f0e12faa67 [code-2009] only if ssh is enabled show ssh url box (#2101) 2024-06-12 18:34:25 +00:00
Atefeh Mohseni Ejiyeh
7899ebd3a3 fix: duplicate openapi operation id for public access (#2087) 2024-06-10 16:48:47 +00:00
Dhruv Dhruv
26760cdbd2 Adding commands to alter cde tables (#2085) 2024-06-10 13:27:21 +00:00
Dhruv Dhruv
58bf870038 fix: [CDE-62]: Adding gitspaces FK post table creation in infra_provisioned table in postgres (#2084) 2024-06-07 13:37:46 +00:00
Johannes Batzill
d35db42583 Update CODEOWNERS to match github (#2069) 2024-06-06 16:58:01 +00:00
Dhruv Dhruv
7c2431c652 fix: [CDE-62]: Fixing foreign key constraint in gitspaces table, making gits_infra_provisioned_id nullable (#2079) 2024-06-05 13:40:06 +00:00
Enver Biševac
2f8900e463 [code-1946] initial work on ssh server (#2075) 2024-06-03 12:47:31 +00:00
Marko Gaćeša
ef18a7aff2 fix ssh key fingerprint (#2076) 2024-06-03 08:40:02 +00:00
Dhruv Dhruv
67be37cb08 feat: [CDE-62]: Introducing changes related to Gitspaces in Gitness (#2072) 2024-05-29 09:37:35 +00:00
Marko Gaćeša
0d72a20450 ssh public keys: db and api (#2058) 2024-05-27 14:26:21 +00:00
Karan Saraswat
8d5c83d035 fix: [CODE-1949]: fix for trigger filters not working (#2068) 2024-05-25 04:37:55 +00:00
Shubham Agrawal
226fc83849 fix: [CODE-1926]: Fix incorrect error code in openai commit files api (#2049) 2024-05-24 06:30:11 +00:00
Johannes Batzill
bc568edd85 fix cleanup for failed repo create, cleanup summary git api (#2064) 2024-05-24 00:38:29 +00:00
Johannes Batzill
1f43f091de Fix Sorting of PR Activity Listing (#2061) 2024-05-23 20:12:25 +00:00
Darko Draskovic
adf041d747 Add repo summary endpoint (#2037) 2024-05-23 18:45:28 +00:00
Atefeh Mohseni Ejiyeh
c365ef246a Support Public Access (#2021) 2024-05-23 04:56:26 +00:00
Atefeh Mohseni Ejiyeh
831cf18abc Exclude soft deleted spaces on membership listing (#2059) 2024-05-22 18:15:51 +00:00
Marko Gaćeša
0d1e536531 feat: [CODE-1788]: code comment block must start and end on the same side (#2053) 2024-05-22 15:42:47 +00:00
Atefeh Mohseni Ejiyeh
f66bfa153f fix: clone repos with .git prefix not found error (#2057) 2024-05-22 03:00:43 +00:00
Shubham Agrawal
a0ac3e86c5 fix: [CODE-1924]: Add support for keyword search recursively in space paths (#2048) 2024-05-21 05:58:50 +00:00
Johannes Batzill
38553bca7b Lock pr number for dryrun instead of across whole repo (#2038) 2024-05-20 18:45:09 +00:00
Darko Draskovic
d4ca33b82d Temporary rename info/alternates so --batch-all-objects doesn't follow it (#2039) 2024-05-20 18:43:52 +00:00
Johannes Batzill
6da5c93706 Only allow admin to bypass rules if bypassing is allowed (#2047) 2024-05-17 22:32:35 +00:00
Karan Saraswat
ca0148816a feat: [CODE-1908]: Worked on ADO import functionality review comments (#2044) 2024-05-16 06:30:35 +00:00
Darko Draskovic
8049651963 Temporarily comment out file size check (#2040) 2024-05-15 16:26:10 +00:00
Johannes Batzill
ea49937a1e [MISC] Fix routing for gitXXX and apiXXX space names (#2035) 2024-05-14 00:02:57 +00:00
Karan Saraswat
a489b28ed8 feat: [CODE-1876]: adding azure driver for importing azure repos (#2025) 2024-05-13 11:26:32 +00:00
Darko Draskovic
e31f33adde Add comment mentions metadata and return id to principal info mapping in list activity response (#2024) 2024-05-10 23:22:59 +00:00
Johannes Batzill
423801d51a [Secret Scanning] Add basic support for gitleaksignore (#2030) 2024-05-09 22:00:03 +00:00
Johannes Batzill
f6614fe151 Minor Fixes (#2028) 2024-05-09 00:01:52 +00:00
Abhinav Singh
cfddbeb143 feat: add desc to webhooks (#2022) 2024-05-06 18:41:17 +00:00
Abhinav Singh
a576087694 feat: add etag for raw api (#2018) 2024-05-03 20:03:37 +00:00
Abhinav Singh
7103d88109 feat: convert to private for export (#2020) 2024-04-30 23:28:39 +00:00
Enver Biševac
ed97ff8398 [code-1822-maint] minor requested changes (#2017) 2024-04-26 23:51:26 +00:00
Enver Biševac
723377482c [code-1822] Download repository as archive using git archive command (#2010) 2024-04-26 20:03:51 +00:00
Johannes Batzill
915cf2cbb9 Minor Change to Match Commit API (#2015) 2024-04-26 19:32:45 +00:00
Johannes Batzill
9e7f80ebe0 Code Suggestions - Backend Support (#2006) 2024-04-26 16:54:50 +00:00
Johannes Batzill
86537b2c39 Fix merge related issues (#2012) 2024-04-25 22:00:53 +00:00
Akhilesh Pandey
4748966078 feat: [CODE-1741]: add new API endpoint for principal find operation (#1227) 2024-04-25 13:10:56 +00:00
Abhinav Singh
e528ce2370 fix: codeowner file parse error as first class error (#2003) 2024-04-24 19:53:21 +00:00
Darko Draskovic
e2689a3b40 Add push file size limit and report func (and use it in githook) (#1173) 2024-04-24 16:31:18 +00:00
Abhinav Singh
28ba149c74 fix: remove extra error for indexer on gitness (#2004) 2024-04-23 15:27:59 +00:00
suchsoon
d9b04d51c6
remove repetitive words (#3484) 2024-04-19 16:28:04 -07:00
Enver Bisevac
d31dd11fcf [code-1692] update repo settings audit log (#1231) 2024-04-19 09:43:51 +00:00
Johannes Batzill
a690fa4ebc small fixes (#1232) 2024-04-19 01:36:03 +00:00
Darko Draskovic
9699ec503d Add closed timestamp to pull req (#1222) 2024-04-17 20:24:04 +00:00
Enver Bisevac
2ce0f96b59 [code-1524] audit trail for import repositories (#1209) 2024-04-12 18:35:29 +00:00
Marko Gacesa
781b3547c0 refactor git hook calling and shared repo (#1200) 2024-04-12 09:48:35 +00:00
Akhilesh Pandey
fb78234a0f feat: [CODE-1741]: add new interface and controller method for principal fetch (#1206) 2024-04-12 05:30:08 +00:00
Johannes Batzill
8ed9457cd3 fix indentation for secret scan CLI output (#1201) 2024-04-10 20:04:19 +00:00
Johannes Batzill
5652ca7bb3 Add Repo Path Listing API (#1197) 2024-04-10 20:04:08 +00:00
Abhinav Singh
aff7391e08 feat: add multi user created by filter (#1190) 2024-04-09 09:30:26 +00:00
Enver Bisevac
227aac90b5 [code-1524] audit trails package (#1176) 2024-04-08 21:13:57 +00:00
Atefeh Mohseni-Ejiyeh
fea9e46dc8 Mitigate racing condition between create repos and delete space (#1178) 2024-04-08 19:14:10 +00:00
Atefeh Mohseni-Ejiyeh
aa330928dd Restore the space to its exact state at the time of deletion (#1180) 2024-04-08 18:19:07 +00:00
Abhinav Singh
f20189812b feat: list pr time filter (#1188) 2024-04-05 23:17:33 +00:00
Johannes Batzill
c5383940bd Integrate approvals.RequireLatestcommit to merge dryrun (#1183) 2024-04-04 22:39:23 +00:00
Atefeh Mohseni-Ejiyeh
b64f4c41fa Update default branch on empty repo for first commit (#1122) 2024-04-04 01:16:43 +00:00
Atefeh Mohseni-Ejiyeh
719db4483c Check limiter on restoring repo and spaces (#1174) 2024-04-03 00:36:57 +00:00
Johannes Batzill
b02da4b78a Improve secret scanning output (#1170) 2024-03-29 19:33:08 +00:00
Johannes Batzill
594cb3bae5 Add summary line to secret scan (#1167) 2024-03-29 04:01:06 +00:00
Johannes Batzill
e4db4dc4ff Enable Secret Scanning for Empty Repo (#1165) 2024-03-29 00:40:16 +00:00
Johannes Batzill
2eac3c3499 add custom comparison for setting_value in postgres (#1161) 2024-03-28 16:36:43 +00:00
Johannes Batzill
6093a4cab8 Put secret scanning behind setting (#1160) 2024-03-28 06:43:37 +00:00
Atefeh Mohseni-Ejiyeh
bd2e9f4899 [GITLEAKS] Support Secret Scanning in Git and Pre-receive Hook (#1155) 2024-03-28 05:49:04 +00:00
Johannes Batzill
39a998eacd Adding Repo Level Settings (#1145) 2024-03-28 03:36:15 +00:00
Johannes Batzill
e96ab4159b Add alternate_object_dirs support to githook handlers (#1141) 2024-03-26 23:52:49 +00:00
Abhinav Singh
96f35b6e01 feat: add repochecks (#1132) 2024-03-26 22:22:30 +00:00
Enver Bisevac
cecfecdb06 [code-1016] Replace gitea Usages (not wrapper) (#1063) 2024-03-26 20:31:30 +00:00
Darko Draskovic
8dc82433c5 Add generic pre/post receive extender (#1138) 2024-03-26 18:17:28 +00:00
Atefeh Mohseni-Ejiyeh
5d0d28e4a3 Support Space Soft Delete, Restore, and Purge (#1076) 2024-03-21 23:34:19 +00:00
Johannes Batzill
fd2f3c1e38 [MISC] Add customized commit message support to PR (#1126) 2024-03-21 06:41:12 +00:00
Johannes Batzill
a6bfe6235f [MISC] Fix naming inconsistencies for FileDiffStatus (#1128) 2024-03-21 01:39:02 +00:00
Abhinav Singh
16ef31bcb6 feat: support diff repo id check in harness code (#1123) 2024-03-21 00:38:18 +00:00
Darko Draskovic
564a0fef61 Add support for listing commit related per file stats (#1116) 2024-03-20 18:31:48 +00:00
Abhinav Singh
dae465a111 feat: self as codeowner can be skipped (#1124) 2024-03-20 00:41:02 +00:00
Darko Draskovic
e7436eef80 Add support for mentions in comments (#1064) 2024-03-15 20:54:25 +00:00
Johannes Batzill
a79a5ca489 [AUTHZ] Fix scope of permission checks for checks without resource (#1119) 2024-03-15 16:10:30 +00:00
Johannes Batzill
dc7b3bc79a [Rules] Expose extra Branch.PullReq fields on merge DryRyn as required by UI (#1117) 2024-03-13 23:37:10 +00:00
Abhinav Singh
e1927fd162 feat: fix repo rule swagger (#1103) 2024-03-07 01:07:26 +00:00
Shubham Agrawal
7ee761c632 Add non-regex search capability in keyword search (#1059) 2024-03-01 07:55:47 +00:00
Marko Gacesa
06109ccce7 space path InsertSegment() returns ID (#1082) 2024-02-29 14:47:22 +00:00
Johannes Batzill
73ffe71afe Log error translation under requestID to improve traceability (#1070) 2024-02-27 06:05:42 +00:00
Darko Draskovic
8150be7a3b Add commit diff stat to list commits (#1062) 2024-02-23 11:27:06 +00:00
Marko Gacesa
f8f1453de1 add new API: list status checks for a pullreq (#1042) 2024-02-22 10:39:25 +00:00
Atefeh Mohseni-Ejiyeh
24fbf49168 repo soft delete improvements (#1045) 2024-02-22 05:25:29 +00:00
Johannes Batzill
e7520a983b [SECURITY] move to latest swagger-ui version to fix url injection vulnerability (#1061) 2024-02-22 00:38:06 +00:00
Darko Draskovic
c949308596 List all Repos at Account level or Space Level recursively (#999) 2024-02-21 16:59:44 +00:00
Darko Draskovic
6f270eb3ae Add rule to block PR merge if changes are requested by reviewer (#1054) 2024-02-21 16:32:02 +00:00
Marko Gacesa
5d44bd0128 improve git push rule bypass messages (#1043) 2024-02-21 10:47:27 +00:00
Johannes Batzill
dd11c0eff5 Fix Rebase implementation (#1049) 2024-02-20 17:45:09 +00:00
Atefeh Mohseni-Ejiyeh
a6d017de02 soft delete improvements and bug fixes (#1044) 2024-02-15 01:32:59 +00:00
Atefeh Mohseni-Ejiyeh
fc9e77c91c Support soft delete, restore and purge repos plus a cleanup job for old deleted repos (#1005) 2024-02-14 01:39:39 +00:00
Atefeh Mohseni-Ejiyeh
a937793edb fix lint errors (#1034) 2024-02-09 01:15:15 +00:00
Darko Draskovic
d96afd89bd Add additions and deletions stats to commit file response (#1015) 2024-02-07 16:07:53 +00:00
Marko Gacesa
e3bf017f78 Rewrite of git merge (#1023) 2024-02-07 09:40:04 +00:00
Abhinav Singh
e0f8248ead feat: files in webhook payload (#1013) 2024-02-06 02:06:43 +00:00
Johannes Batzill
b173a7cbec [Swagger] Update Webhook URLs to webhook_identifier and add retrigger execution operation (#1019) 2024-02-03 01:59:47 +00:00
Abhinav Singh
87cae05747 feat: different openapi for harness code (#997) 2024-01-30 21:51:44 +00:00
Johannes Batzill
adf2046a94 [MISC] Move UID to Identifier to match Harness Standards (#992) 2024-01-29 23:29:53 +00:00
Enver Bisevac
f39852dc62 [fix] internal error should be always logged in error level (#982) 2024-01-24 12:28:01 +00:00
Enver Bisevac
7f7f8bf625 [code-1288] new diff api features [paths, line expanders] (#968) 2024-01-23 12:36:04 +00:00
Darko Draskovic
a4d47e12b2 Add integration tests for GetRootSpace, CountAll and GetSize spc and repo store methods (#969) 2024-01-22 16:44:15 +00:00
Atefeh Mohseni-Ejiyeh
29f781201f support update default branch (#973) 2024-01-20 07:10:16 +00:00
Abhinav Singh
92761a11ee fix: change created to be bigint (#978) 2024-01-20 04:38:01 +00:00
Abhinav Singh
60acd67047 fix: bump migration number (#977) 2024-01-20 00:03:08 +00:00
Abhinav Singh
837ba6f29d feat: add start and end time to check (#958) 2024-01-18 00:17:45 +00:00
Johannes Batzill
8be57c6f09 [MISC] fix repo delete for older repos that failed import (#972) 2024-01-17 19:10:10 +00:00
Johannes Batzill
5ad3f8567a Add support of git url redirect for custom git domain (#971) 2024-01-17 08:58:28 +00:00
Vistaar Juneja
5869c132e6 add support for container networks for pipelines (#962) 2024-01-15 15:02:04 +00:00
Johannes Batzill
123267c918 [MISC] Remove References From Diff Cut (#966) 2024-01-12 23:25:03 +00:00
Johannes Batzill
a892dda829 [CODE-1287] Improve PR Merge for canceled Request (#963) 2024-01-12 20:25:16 +00:00
Akhilesh Pandey
74def977f2 feat: add support for video formats to upload (#960) 2024-01-12 15:43:53 +00:00
Vistaar Juneja
76e3c06b6b Templates support for v1 pipelines (#955) 2024-01-12 11:02:31 +00:00
Darko Draskovic
38a2d43cbc Add repo and space store funcs for repo size and repo count (#957) 2024-01-11 17:39:05 +00:00
Darko Draskovic
9f69a4fee1 Add missing parameters to repo count limiter func (#944) 2024-01-09 17:20:27 +00:00
Shubham Agrawal
18c81b04b4 Fix repo sizing job cron (#948) 2024-01-08 09:19:30 +00:00
Vistaar Juneja
a27a1e4abb add support for starlark/jsonnet for drone v1 (#940) 2024-01-05 14:10:22 +00:00
Atefeh Mohseni-Ejiyeh
4c90cec3e5 remove default Admin account /environment variables (#938) 2024-01-03 18:31:47 +00:00
Darko Draskovic
dd49c18b2e Add a repo size limiter method to Unlimited limiter (#943) 2024-01-03 14:13:51 +00:00
Johannes Batzill
b6e031c447 [Webhook] Replace X-Gitness-Id in payload with X-Gitness-Uid (#937) 2023-12-29 17:30:20 +00:00
Johannes Batzill
53555544a2 [Webhook] Add UID field (#936) 2023-12-29 16:39:45 +00:00
Darko Draskovic
c58e82672b Add func to git service to count repo objects and read repo size (#886) 2023-12-29 12:33:53 +00:00
Atefeh Mohseni-Ejiyeh
14e241f764 delete single job func added to job package (#932) 2023-12-28 22:03:14 +00:00
Darko Draskovic
8de3020f22 Export unlimited resource limiter to Unlimited (#933) 2023-12-27 13:12:11 +00:00
Darko Draskovic
1a8e99f0b6 Add noop repo resource limiter to controller (#926) 2023-12-22 17:31:15 +00:00
Abhinav Singh
0ebee9af18 add pr link to webhooks (#929) 2023-12-20 20:21:27 +00:00
Abhinav Singh
8a47c11be5 feat: add pr merge webhook and trigger (#928) 2023-12-20 09:40:16 +00:00
Johannes Batzill
1d8d50a188 [Githook] Introduce InMemory Githook (#916) 2023-12-19 15:50:15 +00:00
Enver Bisevac
98a18210a1 [maint] in when tree entry is not found return PathNotFound error (#921) 2023-12-18 14:29:09 +00:00
Akhilesh Pandey
850672a2d7 feat: Add notification and templates support for pullreq state change [Merged/Closed/ReOpened] (#917) 2023-12-16 12:30:12 +00:00
Shubham Agrawal
35d8d29965 Fix error on no repo found during search (#918) 2023-12-16 03:35:27 +00:00
Akhilesh Pandey
880f62a857 feat: Add notifications support and templates for PR reviewer decision (#881) 2023-12-15 18:02:53 +00:00
Johannes Batzill
9a4e4fa74d WIP [Permissions] Allow anyone with view permission to add reviewers (#915) 2023-12-15 15:43:27 +00:00
Johannes Batzill
a5fd2ce3f8 fix linting error (#914) 2023-12-15 13:14:36 +00:00
Abhinav Singh
05af8b777b feat: refactor status check to create abstraction (#902) 2023-12-15 07:13:13 +00:00
Marko Gacesa
528ed2252a omit deleted comment threads (#901) 2023-12-14 12:47:20 +00:00
Marko Gacesa
551a2e478c create pr comment in tx (#903) 2023-12-14 12:27:47 +00:00
Marko Gacesa
5cfb1f5679 delete pr comment in tx (#900) 2023-12-14 12:27:38 +00:00
Johannes Batzill
e6f67bb6dd [CODEOWNERS] Fix NotFound Error Translation (#909) 2023-12-14 07:44:40 +00:00
Marko Gacesa
a7f11126fa remove gogit (#887) 2023-12-11 10:15:15 +00:00
Atefeh Mohseni-Ejiyeh
5aec7bf37f move job package to the top level (#883) 2023-12-08 17:06:44 +00:00
Abhinav Singh
b1bb7f0a0f fix: change gitrpc error status in codeowners (#876) 2023-12-07 13:30:07 +00:00
Marko Gacesa
1899e70e56 detect force push (#856) 2023-12-07 10:25:08 +00:00
Akhilesh Pandey
02aac02993 feat: process notification and send emails (#803) 2023-12-06 22:07:29 +00:00
Marko Gacesa
25d282073d return user info for rule bypass users (#867) 2023-12-05 19:04:04 +00:00
Johannes Batzill
2f64331707 [Pullreq] Allow DryRun for Draft PR (#857) 2023-12-01 17:27:56 +00:00
Johannes Batzill
d85ed52bc5 [Pullreq] Merge using PR Author Identity (#846) 2023-12-01 03:58:45 +00:00
Johannes Batzill
99c27f8fac [Pullreq] Send SSE on Merge DryRun (#850) 2023-12-01 00:54:39 +00:00
Marko Gacesa
7488512f0d remove pullreq/recheck API (#831) 2023-11-30 19:50:02 +00:00
Marko Gacesa
598599bf20 make failed dryrun DB update noncritical (#841) 2023-11-30 19:43:47 +00:00
Marko Gacesa
03b33aca77 store PR commit count in the DB (#842) 2023-11-30 15:01:18 +00:00
Enver Bisevac
5418dd77ef [code-1136] diff api for pullreq (#825) 2023-11-30 11:38:56 +00:00
Abhinav Singh
04566e1cf9 feat: support codewoners usrgrp (#826) 2023-11-30 04:02:28 +00:00
Johannes Batzill
5cdbde8100 [GA] Add feature flag for enable/disable public resource creation (#845) 2023-11-30 02:20:34 +00:00
Shubham Agrawal
acc7083c59 Use space path + repo path for repo IDs to search (#843) 2023-11-29 18:31:03 +00:00
Abhinav Singh
5dc8c93233 feat: protect internal webhook from mutation and listing (#830) 2023-11-29 18:25:52 +00:00
Shubham Agrawal
1a2a456550 Add interfaces for keyword search (#816) 2023-11-29 18:02:46 +00:00
Marko Gacesa
703a645e85 update min approval count rule message (#833) 2023-11-28 18:47:21 +00:00
Marko Gacesa
1d06026d05 handle merge conflict not as an error (#823) 2023-11-28 11:14:51 +00:00
Akhilesh Pandey
4fc38bca65 feat: Update token source impersonation and add expiration check (#815) 2023-11-27 14:41:39 +00:00
Marko Gacesa
3d97474dcf feat: [CODE-1132]: dryrun requires view permission (#819) 2023-11-22 22:38:44 +00:00
Enver Bisevac
97b554acab [code-892] fix content type for JSONDynamicArray (#817) 2023-11-22 11:50:21 +00:00
Marko Gacesa
7811559c4d skip repo dir delete when deleting importing repo (#807) 2023-11-20 10:39:00 +00:00
Marko Gacesa
f3bfdeaf8e add dry_run_rules option to the commit API (#808) 2023-11-17 12:07:20 +00:00
Abhinav Singh
298e509ea1 feat: harness usrgrp resolver (#791) 2023-11-15 22:54:54 +00:00
Marko Gacesa
2c618b33b3 add bypassable to rule violation (#802) 2023-11-15 14:37:52 +00:00
Enver Bisevac
67f560874d [maint] gitrpc package removed (#726) 2023-11-15 10:15:32 +00:00
Johannes Batzill
07951e7d7e [Rules] Delete of rule should not be publicly available (#799) 2023-11-14 23:37:45 +00:00
Marko Gacesa
70fbaaed16 use background ctx to cleanup after failed import (#798) 2023-11-14 15:30:43 +00:00
Marko Gacesa
fcf9ce6a5d allow rule rename (#793) 2023-11-14 07:27:28 +00:00
Akhilesh Pandey
66ff29d36e feat: introduce new event for repo deletion and refactor existing pullreqevents to repoevents (#736) 2023-11-13 18:37:53 +00:00
Vistaar Juneja
d219d79395 add build link to envs while running pipelines (#773) 2023-11-13 12:01:33 +00:00
Abhinav Singh
a2e1cd8653 feat: init usrgrp store (#782) 2023-11-11 01:47:37 +00:00
Johannes Batzill
972c7d6c67 [BugBash] Rule Descriptions & Reordering, UID Validation, Improved Error Messages (#790) 2023-11-11 00:59:17 +00:00
Abhinav Singh
8c68b0cd51 feat: codeowners multi location (#785) 2023-11-10 01:51:02 +00:00
Johannes Batzill
e6bba2e0ce [BugBash] Fix PR Activities, Increase merge lock timeout (#783) 2023-11-09 20:04:36 +00:00
Vistaar Juneja
073fc482ed add option to import repositories in an existing space (#772) 2023-11-09 09:23:21 +00:00
Marko Gacesa
98dc67fc71 return allowed merge methods for merge dry run (#781) 2023-11-08 18:55:25 +00:00
Marko Gacesa
b6ee8b6ba9 fix sse space events API blocking app shutdown (#774) 2023-11-08 07:24:14 +00:00
Johannes Batzill
e838254409 [Webhook] Minor payload changes (#778) 2023-11-08 00:25:25 +00:00
Akhilesh Pandey
5ce794718c Add support for producing event whenever reviewer is created (#757) 2023-11-07 20:13:27 +00:00
Johannes Batzill
4e0444bba8 [SSE] close pubsub subscriber on sse completion (#769) 2023-11-06 18:16:24 +00:00
Marko Gacesa
e731c0fdff require latest source sha as param for the merge API (#767) 2023-11-06 12:16:18 +00:00
Marko Gacesa
941bc7a0fd allow optional rule bypass (#764) 2023-11-03 18:31:10 +00:00
Marko Gacesa
db7655c569 return 422 in case of merge conflicts (#724) 2023-11-03 17:14:36 +00:00
Vistaar Juneja
bf9a5953c3 perform user validation before triggering import (#760) 2023-11-03 15:30:16 +00:00
Johannes Batzill
0370e89e29 [PULLREQ] Update PR.edited time when head branch is updated (#761) 2023-11-02 22:06:04 +00:00
Marko Gacesa
12c38f88a9 add job type to the job state change struct (#759) 2023-11-02 15:49:58 +00:00
Vistaar Juneja
b221ed9080 check for error before using response from SCM (#758) 2023-11-02 13:45:59 +00:00
Akhilesh Pandey
c0f429e7b7 feat: add gomailer client in gitness for mail notifications (#748) 2023-11-02 08:25:25 +00:00
Marko Gacesa
3a7617a2e6 add dry_run option to the merge API (#737) 2023-11-01 19:57:28 +00:00
Marko Gacesa
0dac44031f fix code comment outdating (#756) 2023-11-01 19:56:14 +00:00
Vistaar Juneja
02ff9bcfc8 return nil transport if no creds provided (#750) 2023-10-31 16:48:36 +00:00
Vistaar Juneja
780180260c use pull request ref for pipelines commit ref (#749) 2023-10-31 16:36:45 +00:00
Marko Gacesa
f0d87f4437 empty pattern matches all (#743) 2023-10-31 07:33:12 +00:00
Johannes Batzill
3418dd1127 [Protection Rules] Load user from store in pre-receive hook (#747) 2023-10-31 04:25:12 +00:00
Johannes Batzill
b0e519b571 [WIP] Move from space_owner to repo_admin for protection rules (#745) 2023-10-30 22:35:52 +00:00
Abhinav Singh
e0df722ce3 feat: add codeowner validate api (#733) 2023-10-30 22:16:39 +00:00
Vistaar Juneja
081d79717a update auth check and use listv2 for github (#744) 2023-10-30 18:07:38 +00:00
Marko Gacesa
bd31faee07 block modifications of pullreq refs (#739) 2023-10-30 10:55:32 +00:00
Johannes Batzill
96aebcef92 [MISC] make SetupWebhooks and SetupUploads public (#742) 2023-10-28 00:20:45 +00:00
Johannes Batzill
d05caadd89 [MISC] Make SetupRules Public (#741) 2023-10-27 23:52:56 +00:00
Johannes Batzill
3e7f316d38 [code-1018] Restrict Import to refs/heads and refs/tags only (#740) 2023-10-27 23:46:06 +00:00
Marko Gacesa
1a727b8be1 refactor of protection package (#734) 2023-10-27 14:06:09 +00:00
Dan Wilson
fb892a8ca8 Add gogs import org/repo support to gitness (#735) 2023-10-27 14:04:44 +00:00
Akhilesh Pandey
66416c55a6 feat: Add swagger support for uploads API (#678) 2023-10-27 08:37:12 +00:00
Marko Gacesa
4e3a43efdd add unit tests for the protection package (#729) 2023-10-27 08:05:26 +00:00
Abhinav Singh
d92564258b fix: empty codeowner gives issue in merge check (#730) 2023-10-26 22:22:59 +00:00
Dan Wilson
072a133ac6 add gitea support (#728) 2023-10-26 19:41:44 +00:00
Marko Gacesa
059e9760c8 require push permission for PR merge (#725) 2023-10-26 17:34:28 +00:00
Marko Gacesa
8d8535aa77 protect branch/tag create/delete APIs (#727) 2023-10-26 17:24:39 +00:00
Abhinav Singh
adbe2f6f97 feat: [CODE-967]: codeowners service e2e (#695) 2023-10-26 16:50:59 +00:00
Dan Wilson
3701d4a24f add bitbucket support for import space and repo (#721) 2023-10-26 11:12:10 +00:00
Dan Wilson
b9b80197a4 Fix repo listing case for bitbucket (#720) 2023-10-26 08:47:53 +00:00
Marko Gacesa
6ee49f9848 API returns status 422 in case of rule violations (#718) 2023-10-26 08:35:42 +00:00
Marko Gacesa
02b36d0f73 return want&got for rule violations (#704) 2023-10-26 07:57:52 +00:00
Johannes Batzill
adeb965723 [MISC] Make Update Action sha optional in Commit API. (#722) 2023-10-25 19:51:21 +00:00
Johannes Batzill
0961ee0906 [MISC] Separate Git Smart HTTP Protocol Into Handler and Controller (#717) 2023-10-25 17:23:19 +00:00
Marko Gacesa
fda8fa733d fix branch.lifecycle rule violation codes (#719) 2023-10-25 12:16:47 +00:00
Abhinav Singh
85337b9418 add logic to add author of pr in codeowners (#716) 2023-10-25 01:56:56 +00:00
Hitesh Aringa
fc53bc5f0b [CODE-945]: Remove github.com/dgrijalva/jwt-go lib (#713) 2023-10-24 23:25:21 +00:00
Marko Gacesa
266b3a4fa1 lifecycle protection rules (#715) 2023-10-24 20:20:20 +00:00
Marko Gacesa
7ab52c1764 add protection to prevent direct push (#712) 2023-10-24 14:22:06 +00:00
Abhinav Singh
3b2ed1de50 feat: [CODE-580]: code comment webhook (#706) 2023-10-23 23:59:45 +00:00
Vistaar Juneja
5771f9f5e9 add bitbucket support for import repo (#711) 2023-10-23 15:08:45 +00:00
Marko Gacesa
501c832ce3 use openapi oneof to fix definition for rules API (#703) 2023-10-21 06:14:38 +00:00
Abhinav Singh
00cc64029a MISC: Fix go lint issues 2023-10-20 15:30:32 -07:00
Marko Gacesa
8d82daf876 merge API: return if the branch is deleted (#701) 2023-10-20 11:27:51 +00:00
Marko Gacesa
fcc8c0be73 use dedicated DB query to fetch all repo rules (#702) 2023-10-20 11:06:33 +00:00
Hitesh Aringa
a0b1c7a654 [Branch Protection] Ignore membership not found error for protection rule in merge (#705) 2023-10-19 19:58:12 +00:00
Marko Gacesa
7e4632cb5f add API: get recent status check UIDs (#685) 2023-10-19 06:19:42 +00:00
Marko Gacesa
7bbeca2750 status checks: use DB-layer list status checks results func (#692) 2023-10-19 05:43:36 +00:00
Johannes Batzill
1ea0025f99 [MISC] Fix Linting/Formatting/Generated Files (#697) 2023-10-19 00:36:07 +00:00
Marko Gacesa
c0849b7b36 remove branch rule: all status checks must succeed (#691) 2023-10-18 16:33:55 +00:00
Abhinav Singh
1a07ee90d2 fix: [CODE-965]: codeowners file parse (#684) 2023-10-18 06:38:50 +00:00
Abhinav Singh
c6dca7d7ae fix: [CODE-972]: make regex take more items as input (#683) 2023-10-17 20:49:11 +00:00
Vistaar Juneja
677840ddee mark plugins using dind as privileged automatically (#686) 2023-10-17 15:01:51 +00:00
Marko Gacesa
6139a0bbb2 rule to autodelete the branch after PR merge (#681) 2023-10-17 11:09:09 +00:00
Marko Gacesa
63d1565a51 fix no protection rule violations blocking PR merge (#680) 2023-10-16 13:53:40 +00:00
Marko Gacesa
419fe92dde add branch protection: DB and API layer (#671) 2023-10-16 11:33:00 +00:00
Akhilesh Pandey
952c883840 feat: Add swagger support for uploads API (#679) 2023-10-16 09:57:05 +00:00
Akhilesh Pandey
23b9117302 feat: Image Upload (Backend) (#651) 2023-10-11 17:54:03 +00:00
Johannes Batzill
1220faf659 [Pipelines] Replace logger with zerolog (#670) 2023-10-11 16:00:22 +00:00