You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll be very happy to contribute, I just have a question before start working on a PR.
I was checking the codebase and found out Danger uses github's REST API. With that in mind, I was checking their documentation and I have not-so-good news. They do not have a proper enum for that field:
Describe the bug
The current
GitHubReview.state
type definition is"APPROVED" | "REQUEST_CHANGES" | "COMMENT" | "PENDING" | undefined.
But while trying to catch if a PR had any requested changes I found out that the state returned by GitHub is actually
CHANGES_REQUESTED
.To Reproduce
Steps to reproduce the behavior:
dangerfile
check the return ofreviews.find((review) => review.state === 'REQUEST_CHANGES')
;reviews.find((review) => review.state === 'CHANGES_REQUESTED')
;Expected behavior
GitHubReview.state
type should correctly reflect the expected strings from GitHub;Screenshots
If applicable, add screenshots to help explain your problem.
Your Environment
Additional context
I've checked the most recent
danger
releases and the latest12.1.0
release still presents this issue.The text was updated successfully, but these errors were encountered: