Skip to content

Commit 603540c

Browse files
authored
Add DYNAMIC event type to GHEvent enum (#2151)
* Add DYNAMIC event type to GHEvent Added DYNAMIC event type for handling dynamic events. This fixes #2150 * Attempt to fix linting error. * Attempt to fix linting error. * Fix test now that new value is added
1 parent b1de32d commit 603540c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public enum GHEvent {
5757
/** The download. */
5858
DOWNLOAD,
5959

60+
/** The dynamic events like Dependabot autorun. */
61+
DYNAMIC,
62+
6063
/** The follow. */
6164
FOLLOW,
6265

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

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

4242
assertThat(GHDirection.values().length, equalTo(2));
4343

44-
assertThat(GHEvent.values().length, equalTo(65));
44+
assertThat(GHEvent.values().length, equalTo(66));
4545
assertThat(GHEvent.ALL.symbol(), equalTo("*"));
4646
assertThat(GHEvent.PULL_REQUEST.symbol(), equalTo(GHEvent.PULL_REQUEST.toString().toLowerCase()));
4747

0 commit comments

Comments
 (0)