Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/main/java/derrick/processor/EventProcessor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.derick.notificationbot.processor;

/**
* EventProcessor defines the contract for processing different types of CI/CD events.
*/
public interface EventProcessor {

/**
* Checks if this processor supports the given event type.
* @param eventType The event type (e.g. pull_request, build_failure)
* @return true if supported, false otherwise
*/
boolean supports(String eventType);

/**
* Processes the given event payload.
* @param payload The event payload as a String (typically JSON)
*/
void processEvent(String payload);
}