Skip to content

Commit

Permalink
Merge pull request #1301 from gjabouley-invn/hotfix/ghevent_branchpro…
Browse files Browse the repository at this point in the history
…tectionrule

Add support for GitHub event branch_protection_rule
  • Loading branch information
bitwiseman authored Nov 20, 2021
2 parents bc13252 + 702833e commit c83fcec
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 @@ -10,6 +10,7 @@
* @see <a href="https://developer.github.com/v3/activity/events/types/">Event type reference</a>
*/
public enum GHEvent {
BRANCH_PROTECTION_RULE,
CHECK_RUN,
CHECK_SUITE,
CODE_SCANNING_ALERT,
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(62));
assertThat(GHEvent.values().length, equalTo(63));
assertThat(GHEvent.ALL.symbol(), equalTo("*"));
assertThat(GHEvent.PULL_REQUEST.symbol(), equalTo(GHEvent.PULL_REQUEST.toString().toLowerCase()));

Expand Down

0 comments on commit c83fcec

Please sign in to comment.