Commit Graph

464 Commits

Author SHA1 Message Date
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
Marko Gacesa
edadd5e91b fix name of the gitlab ci yaml file (#657) 2023-10-06 17:06:16 +00:00
Vistaar Juneja
b26a75d4f6 unmarshal step deps only if step exists during stage join (#660) 2023-10-06 14:08:31 +00:00
Abhinav Singh
1a5c6b06ac feat: Add pr closed event (#643) 2023-10-05 01:39:33 +00:00
Johannes Batzill
81e044e280 [MISC] Remove Unused Error Var (#648) 2023-10-04 00:53:42 +00:00
Johannes Batzill
9bede77cb9 [AUTHZ] Move Blocking of Session Tokens for GIT to Middleware (#646) 2023-10-03 22:15:21 +00:00
Johannes Batzill
d83552f288 [MISC] Cleanup stale Webhook-Executions & Session Tokens (#640) 2023-10-03 17:54:18 +00:00
Johannes Batzill
cb518d5197 [MISC] Redirect Clone URL to Repo Page (#641) 2023-10-03 15:51:18 +00:00
Marko Gacesa
e737b20b79 fix drone scheduler deadlock (#638) 2023-10-02 16:23:58 +00:00
Marko Gacesa
e124b917ac add option not to convert pipelines for repo import (#625) 2023-10-02 11:20:02 +00:00
Johannes Batzill
6ec908b76d [MISC] Fix Admin Status Removal (#637) 2023-09-29 21:11:29 +00:00
Marko Gaćeša
933d2d9703 remove sqlx.DB from controllers and services 2023-09-28 14:07:25 +02:00
Johannes Batzill
f51f97adb2 [MISC] Make Internal/Container URL Generic (and fix GetTreeNode) (#621) 2023-09-28 03:33:45 +00:00
Johannes Batzill
5b33258589 [MISC] Abstract URL Provider (#617) 2023-09-27 02:42:33 +00:00
Johannes Batzill
a8cb5dc8d2 remove internal package and move to app - might be refactored more in the coming weeks 2023-09-26 11:25:15 -07:00