Skip to content

feat(event-handlers): introduce event handler system for GitProxy lifecycle events#1519

Open
Andreybest wants to merge 1 commit intofinos:mainfrom
Andreybest:1449-event-hooks
Open

feat(event-handlers): introduce event handler system for GitProxy lifecycle events#1519
Andreybest wants to merge 1 commit intofinos:mainfrom
Andreybest:1449-event-hooks

Conversation

@Andreybest
Copy link
Copy Markdown

Implements #1449.

Introduces a lightweight, async, observer-only event system so external integrations (notifications, audit feeds) can react to push/pull lifecycle events without coupling to chain internals.

Event hooks can be added the same way as the plugins in config.proxy.json

Supports 2 operations: pull and push
With 4 phases:

  • started
  • completed
  • error
  • permissionDenied

This is not well documented, and not sure where to add info on that, would appreciate suggestions on that matter :)

@Andreybest Andreybest requested a review from a team as a code owner May 5, 2026 23:11
@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit e53fccb
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/69fa7930f08fbe00097f4a33

@Andreybest Andreybest requested a review from grovesy May 5, 2026 23:11
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

❌ Patch coverage is 95.15571% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.46%. Comparing base (b6d72fc) to head (e53fccb).

Files with missing lines Patch % Lines
src/eventHandlers/loader.ts 91.17% 6 Missing ⚠️
src/proxy/chain.ts 83.33% 3 Missing ⚠️
src/eventHandlers/dispatcher.ts 97.53% 1 Missing and 1 partial ⚠️
src/eventHandlers/index.ts 0.00% 2 Missing ⚠️
src/config/index.ts 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1519      +/-   ##
==========================================
+ Coverage   90.21%   90.46%   +0.24%     
==========================================
  Files          69       75       +6     
  Lines        5511     5798     +287     
  Branches      944     1005      +61     
==========================================
+ Hits         4972     5245     +273     
- Misses        521      534      +13     
- Partials       18       19       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant