From 8ac639c40d2f19b5e7428859e1b3035eebd0c699 Mon Sep 17 00:00:00 2001 From: "geoffroy.jabouley" Date: Fri, 19 Nov 2021 09:36:59 +0100 Subject: [PATCH] Add support for GitHub event branch_protection_rule --- src/main/java/org/kohsuke/github/GHEvent.java | 1 + src/test/java/org/kohsuke/github/EnumTest.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/GHEvent.java b/src/main/java/org/kohsuke/github/GHEvent.java index 12f408be0f..29baf21fc0 100644 --- a/src/main/java/org/kohsuke/github/GHEvent.java +++ b/src/main/java/org/kohsuke/github/GHEvent.java @@ -10,6 +10,7 @@ * @see Event type reference */ public enum GHEvent { + BRANCH_PROTECTION_RULE, CHECK_RUN, CHECK_SUITE, CODE_SCANNING_ALERT, diff --git a/src/test/java/org/kohsuke/github/EnumTest.java b/src/test/java/org/kohsuke/github/EnumTest.java index 1d36b5e03f..ac85708e4f 100644 --- a/src/test/java/org/kohsuke/github/EnumTest.java +++ b/src/test/java/org/kohsuke/github/EnumTest.java @@ -28,7 +28,7 @@ public void touchEnums() { assertThat(GHDirection.values().length, equalTo(2)); - assertThat(GHEvent.values().length, equalTo(62)); + assertThat(GHEvent.values().length, equalTo(63)); assertThat(GHEvent.ALL.symbol(), equalTo("*")); assertThat(GHEvent.PULL_REQUEST.symbol(), equalTo(GHEvent.PULL_REQUEST.toString().toLowerCase()));