From a42f54e9f95097fcc6f5fe7671d973c00a743d4c Mon Sep 17 00:00:00 2001 From: Felipe Francisco Date: Fri, 13 Oct 2023 16:38:26 +0100 Subject: [PATCH] Support merge_group webhooks fired by merge queues. PR created based on #1316 --- src/main/java/org/kohsuke/github/GHEvent.java | 3 +++ src/test/java/org/kohsuke/github/EnumTest.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/GHEvent.java b/src/main/java/org/kohsuke/github/GHEvent.java index d93411bedf..1170743ac3 100644 --- a/src/main/java/org/kohsuke/github/GHEvent.java +++ b/src/main/java/org/kohsuke/github/GHEvent.java @@ -102,6 +102,9 @@ public enum GHEvent { /** The merge queue entry. */ MERGE_QUEUE_ENTRY, + /** The merge group entry. */ + MERGE_GROUP, + /** The meta. */ META, diff --git a/src/test/java/org/kohsuke/github/EnumTest.java b/src/test/java/org/kohsuke/github/EnumTest.java index 59cf1f4d44..939c6360e3 100644 --- a/src/test/java/org/kohsuke/github/EnumTest.java +++ b/src/test/java/org/kohsuke/github/EnumTest.java @@ -32,7 +32,7 @@ public void touchEnums() { assertThat(GHDirection.values().length, equalTo(2)); - assertThat(GHEvent.values().length, equalTo(64)); + assertThat(GHEvent.values().length, equalTo(65)); assertThat(GHEvent.ALL.symbol(), equalTo("*")); assertThat(GHEvent.PULL_REQUEST.symbol(), equalTo(GHEvent.PULL_REQUEST.toString().toLowerCase()));