Skip to content

Conversation

vrutkovs
Copy link

@vrutkovs vrutkovs commented Aug 1, 2020

What did you implement:

Pull's merged field is made optional. Github's API doesn't set this field when all PRs are listed. It is being set when individual PR is being fetched.

How did you verify your change:

Run examples/pulls.rs - it should output a list of PRs. On current master it throws Error: Codec(Error("missing field merged", line: 1, column: 14689))

What (if anything) would need to be called out in the CHANGELOG for the next release:

Pull's merged field is made optional

@softprops
Copy link
Owner

Do you know if this is now detected by the presence of one of the other merge fields instead?

@vrutkovs
Copy link
Author

vrutkovs commented Aug 3, 2020

It seems merged is not set when PRs are listed, but is set for each individual PR.

Reworked this to make merged be Option.

@vrutkovs vrutkovs changed the title pulls: remove "merged" bool pulls: make "merged" bool be Option as its not set when listing PRs Aug 3, 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.

2 participants