Skip to content

Commit 788e186

Browse files
Add MANNEQUIN to GHCommentAuthorAssociation enum (#1753)
* 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]>
1 parent bcf4faf commit 788e186

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public enum GHCommentAuthorAssociation {
2323
* Author has not previously committed to the repository.
2424
*/
2525
FIRST_TIME_CONTRIBUTOR,
26+
/**
27+
* Author is a placeholder for an unclaimed user.
28+
*/
29+
MANNEQUIN,
2630
/**
2731
* Author is a member of the organization that owns the repository.
2832
*/

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void touchEnums() {
2222
assertThat(GHCheckRun.Conclusion.values().length, equalTo(9));
2323
assertThat(GHCheckRun.Status.values().length, equalTo(4));
2424

25-
assertThat(GHCommentAuthorAssociation.values().length, equalTo(7));
25+
assertThat(GHCommentAuthorAssociation.values().length, equalTo(8));
2626

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

0 commit comments

Comments
 (0)