Skip to content

Commit

Permalink
Add MANNEQUIN to GHCommentAuthorAssociation enum (#1753)
Browse files Browse the repository at this point in the history
* Add MANNEQUIN value to GHCommentAuthorAssociation enum

* Update EnumTest for GHCommentAuthorAssociation with MANNEQUIN

This commit updates the EnumTest to reflect the addition of the MANNEQUIN value in the GHCommentAuthorAssociation enum. The test now checks for the correct number of enum values, which has been increased to 8 to include MANNEQUIN.

* Update GHCommentAuthorAssociation.java

* Update GHCommentAuthorAssociation.java

---------

Co-authored-by: Liam Newman <[email protected]>
  • Loading branch information
choichanhyeok and bitwiseman authored Nov 24, 2023
1 parent bcf4faf commit 788e186
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public enum GHCommentAuthorAssociation {
* Author has not previously committed to the repository.
*/
FIRST_TIME_CONTRIBUTOR,
/**
* Author is a placeholder for an unclaimed user.
*/
MANNEQUIN,
/**
* Author is a member of the organization that owns the repository.
*/
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 @@ -22,7 +22,7 @@ public void touchEnums() {
assertThat(GHCheckRun.Conclusion.values().length, equalTo(9));
assertThat(GHCheckRun.Status.values().length, equalTo(4));

assertThat(GHCommentAuthorAssociation.values().length, equalTo(7));
assertThat(GHCommentAuthorAssociation.values().length, equalTo(8));

assertThat(GHCommitState.values().length, equalTo(4));

Expand Down

0 comments on commit 788e186

Please sign in to comment.