Skip to content

Avoid crash in pr view with reviewers#975

Merged
mislav merged 1 commit intomasterfrom
pr-reviewers-crash
May 22, 2020
Merged

Avoid crash in pr view with reviewers#975
mislav merged 1 commit intomasterfrom
pr-reviewers-crash

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented May 20, 2020

Now handling the "DISMISSED" and "PENDING" states.

I have no evidence that "PENDING" can be returned from API in this context, but it's listed among the possible states in GitHub API docs, so better be safe than sorry. Reviewers with "PENDING" states are omitted from display.

Fixes #934, followup to #762 /cc @doi-t

@mislav mislav requested review from probablycorey and vilmibm May 20, 2020 13:04
Copy link
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@mislav mislav merged commit 331deb8 into master May 22, 2020
@mislav mislav deleted the pr-reviewers-crash branch May 22, 2020 13:46
@doi-t
Copy link
Contributor

doi-t commented May 22, 2020

OMG🤦‍♂️ Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

invalid memory address or nil pointer dereference in formattedReviewerState

3 participants