Skip to content

Fix crash on large GitHub "id" values#108

Merged
f-meloni merged 1 commit intodanger:masterfrom
brentwatson:master
Jul 8, 2020
Merged

Fix crash on large GitHub "id" values#108
f-meloni merged 1 commit intodanger:masterfrom
brentwatson:master

Conversation

@brentwatson
Copy link

@brentwatson brentwatson commented Jul 8, 2020

Recently experienced this crash:

com.squareup.moshi.JsonDataException: Expected an int but was 2185200023 at path $.danger.github.issue.labels[0].id

Looks like we have a PR with an id value larger than Int.MAX_VALUE (2147483647). Future proofing by updating all id values from int to long.

@danger-public
Copy link

Warnings
⚠️

Any Changes To Library Code Should Be Reflected In The Changelog.

Please Consider Adding A Note There And Adhere To The Changelog Guidelines.

Generated by 🚫 Danger Kotlin against 83cb38b

Copy link
Member

@f-meloni f-meloni 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 really much

@f-meloni f-meloni merged commit e2daf34 into danger:master Jul 8, 2020
@brentwatson brentwatson mentioned this pull request Jul 8, 2020
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.

3 participants