Skip to content

Commit

Permalink
Fix for Add WEBHOOK_JOB to GHEvent (#1316)
Browse files Browse the repository at this point in the history
* Fix for #1288: Add WEBHOOK_JOB to GHEvent

* Add enum WORKFLOW_JOB, not WEBHOOK_JOB

* Modify test based on enum change

Co-authored-by: Liam Newman <[email protected]>
  • Loading branch information
katieshin and bitwiseman authored Nov 23, 2021
1 parent a63306d commit 48fe488
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/org/kohsuke/github/GHEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public enum GHEvent {
TEAM,
TEAM_ADD,
WATCH,
WORKFLOW_JOB,
WORKFLOW_DISPATCH,
WORKFLOW_RUN,

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/kohsuke/github/EnumTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void touchEnums() {

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

assertThat(GHEvent.values().length, equalTo(63));
assertThat(GHEvent.values().length, equalTo(64));
assertThat(GHEvent.ALL.symbol(), equalTo("*"));
assertThat(GHEvent.PULL_REQUEST.symbol(), equalTo(GHEvent.PULL_REQUEST.toString().toLowerCase()));

Expand Down

0 comments on commit 48fe488

Please sign in to comment.