Skip to content

Feature/cid 2776/create a webhook listener endpoint#14

Merged
mohamedlajmileanix merged 9 commits intomainfrom
feature/CID-2776/create-a-webhook-listener-endpoint
Aug 6, 2024
Merged

Feature/cid 2776/create a webhook listener endpoint#14
mohamedlajmileanix merged 9 commits intomainfrom
feature/CID-2776/create-a-webhook-listener-endpoint

Conversation

@mohamedlajmileanix
Copy link
Contributor

@mohamedlajmileanix mohamedlajmileanix commented Aug 5, 2024

🛠 Changes made

A new endpoint to receive GitHub enterprise webhooks. First iteration, to process "push" events and send all other events as they are to the LeanIX backend (expected event types: "REPOSITORY", "PUSH", "ORGANIZATION", "INSTALLATION"). The processing of the push events, is limited to detecting change to the leanix manifest files within repositories and sending the change to the backend.

✨ Type of change

  • New feature (non-breaking change which adds functionality)

🧪 How Has This Been Tested?

  • GitHubWebhookControllerTest
  • WebhookServiceTest

🏎 Checklist:

  • My code follows the style guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • Any dependent changes have been merged and published in downstream modules
  • My commit message clearly reflects the changes made
  • Assigned the appropriate labels (version, PR type, etc.)

@mohamedlajmileanix mohamedlajmileanix added the enhancement New feature or request label Aug 5, 2024
@github-actions
Copy link

github-actions bot commented Aug 5, 2024

LeanIX GitHub Agent Code Coverage

File Coverage [65.47%] 🍏
PushEventPayload.kt 100% 🍏
Constants.kt 100% 🍏
GitHubScanningService.kt 95.99% 🍏
WebhookService.kt 83.97% 🍏
ManifestFileUpdateDto.kt 82.69% 🍏
GitHubAuthenticationService.kt 79.48% 🍏
GitHubWebhookController.kt 79.03% 🍏
WebSocketService.kt 65.22% 🍏
GitHubGraphQLService.kt 6.28%
PostStartupRunner.kt 0%
Total Project Coverage 66.03% 🍏

@mohamedlajmileanix mohamedlajmileanix marked this pull request as ready for review August 6, 2024 09:12
@mohamedlajmileanix mohamedlajmileanix requested a review from a team as a code owner August 6, 2024 09:12
@mohamedlajmileanix mohamedlajmileanix merged commit d05f8f4 into main Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

2 participants