From 788e18629bd21152601127771c85d4cb3b2e0926 Mon Sep 17 00:00:00 2001 From: chanhyeoKingOfDev <68278903+choichanhyeok@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:37:51 +0900 Subject: [PATCH] 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 --- .../java/org/kohsuke/github/GHCommentAuthorAssociation.java | 4 ++++ src/test/java/org/kohsuke/github/EnumTest.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/GHCommentAuthorAssociation.java b/src/main/java/org/kohsuke/github/GHCommentAuthorAssociation.java index 449970e4d7..b00905ab8f 100644 --- a/src/main/java/org/kohsuke/github/GHCommentAuthorAssociation.java +++ b/src/main/java/org/kohsuke/github/GHCommentAuthorAssociation.java @@ -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. */ diff --git a/src/test/java/org/kohsuke/github/EnumTest.java b/src/test/java/org/kohsuke/github/EnumTest.java index 939c6360e3..ecacb8f331 100644 --- a/src/test/java/org/kohsuke/github/EnumTest.java +++ b/src/test/java/org/kohsuke/github/EnumTest.java @@ -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));