feat: create GitHub Webhook request object

This commit is contained in:
2026-05-29 15:10:48 +08:00
parent 7032343487
commit ce330bca87
4 changed files with 27 additions and 1 deletions
@@ -13,7 +13,7 @@ public class FilterConfig {
var registrationBean = new FilterRegistrationBean<WebhookFilter>();
registrationBean.setFilter(webhookFilter);
registrationBean.addUrlPatterns("/webhook/*");
registrationBean.addUrlPatterns("/webhooks/*");
registrationBean.setOrder(1);
return registrationBean;
@@ -0,0 +1,7 @@
package com.onixbyte.deltaforceguide.domain.dto;
public record GitHubIssueLabeledWebhookRequest(
String action,
GitHubWebhookIssue issue
) {
}
@@ -0,0 +1,13 @@
package com.onixbyte.deltaforceguide.domain.dto;
import java.util.List;
public record GitHubWebhookIssue(
String url,
Long id,
String title,
String body,
List<GitHubWebhookLabel> labels
) {
}
@@ -0,0 +1,6 @@
package com.onixbyte.deltaforceguide.domain.dto;
public record GitHubWebhookLabel(
String name
) {
}