feat: create GitHub Webhook request object
This commit is contained in:
@@ -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;
|
||||
|
||||
+7
@@ -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
|
||||
) {
|
||||
}
|
||||
Reference in New Issue
Block a user