Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Draft PR support #261

Merged
merged 2 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ data class GitHubPR(
val head: GitHubMergeRef,
val base: GitHubMergeRef,
val state: GitHubPullRequestState,
@SerialName("draft") val isDraft: Boolean,
@SerialName("locked") val isLocked: Boolean,
@SerialName("merged") val isMerged: Boolean?,
@SerialName("commits") val commitCount: Int?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class GitHubParsingTests {
assertEquals(1471447574000, mergedAt?.toEpochMilliseconds())
assertEquals(false, isLocked)
assertEquals(true, isMerged)
assertEquals(false, isDraft)
assertEquals(15, commitCount)
assertEquals(8, commentCount)
assertEquals(11, reviewCommentCount)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@
"issue_url": "https://api.github.com/repos/artsy/eidolon/issues/609",
"number": 609,
"state": "closed",
"draft": false,
"locked": false,
"title": "Xcode updates",
"user": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@
"issue_url": "https://api.github.com/repos/artsy/eidolon/issues/609",
"number": 609,
"state": "closed",
"draft": false
"locked": false,
"title": "Xcode updates",
"user": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@
"issue_url": "https://api.github.com/repos/artsy/eidolon/issues/609",
"number": 609,
"state": "closed",
"draft": false,
"locked": false,
"title": "Xcode updates",
"user": {
Expand Down
1 change: 1 addition & 0 deletions danger-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ kotlin {
"Mac OS X" -> macosX64("runner")
"Linux" -> linuxX64("runner")
"Mac OS X Apple silicon" -> macosArm64("runner")
"Windows 11" -> mingwX64("runner")
else -> throw GradleException("Host OS '$hostOs' is not supported.") as Throwable
}

Expand Down
Loading