Skip to content

Commit 8ac639c

Browse files
Add support for GitHub event branch_protection_rule
1 parent aad8b9a commit 8ac639c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/org/kohsuke/github/GHEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* @see <a href="https://developer.github.com/v3/activity/events/types/">Event type reference</a>
1111
*/
1212
public enum GHEvent {
13+
BRANCH_PROTECTION_RULE,
1314
CHECK_RUN,
1415
CHECK_SUITE,
1516
CODE_SCANNING_ALERT,

src/test/java/org/kohsuke/github/EnumTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void touchEnums() {
2828

2929
assertThat(GHDirection.values().length, equalTo(2));
3030

31-
assertThat(GHEvent.values().length, equalTo(62));
31+
assertThat(GHEvent.values().length, equalTo(63));
3232
assertThat(GHEvent.ALL.symbol(), equalTo("*"));
3333
assertThat(GHEvent.PULL_REQUEST.symbol(), equalTo(GHEvent.PULL_REQUEST.toString().toLowerCase()));
3434

0 commit comments

Comments
 (0)