Skip to content

Commit d5789ab

Browse files
authored
Merge pull request #319 from danger/copilot/add-mannequin-user-type
Add Mannequin user type to GitHubUserType enum
2 parents 6727724 + e70fed6 commit d5789ab

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/github/GitHub.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,10 @@ enum class GitHubUserType {
283283
ORGANIZATION,
284284

285285
@SerialName("Bot")
286-
BOT
286+
BOT,
287+
288+
@SerialName("Mannequin")
289+
MANNEQUIN
287290
}
288291

289292
/**

danger-kotlin-library/src/test/kotlin/systems/danger/kotlin/models/github/GitHubParsingTests.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,15 @@ class GitHubParsingTests {
243243
fun testOnGitLabIsFalse() {
244244
assertEquals(false, dsl.danger.onGitLab)
245245
}
246+
247+
@Test
248+
fun testItParsesMannequinUserType() {
249+
val mannequinUser = GitHubUser(
250+
12345,
251+
"ghost",
252+
GitHubUserType.MANNEQUIN,
253+
"https://avatars.githubusercontent.com/u/12345?v=4"
254+
)
255+
assertEquals(GitHubUserType.MANNEQUIN, mannequinUser.type)
256+
}
246257
}

0 commit comments

Comments
 (0)