hubcaps icon indicating copy to clipboard operation
hubcaps copied to clipboard

Pull requests: missing field `merged`

Open piegamesde opened this issue 3 years ago • 1 comments

🐛 Bug description

I'd like to list some pull request on a repository but it fails with the following error: "missing field merged at line 1 column 16964"

👟 Steps to reproduce

The following code fails for me with the error above:

    let github = Github::new(
        concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION")),
        None,
    )?;
    let pulls = github.repo("NixOS", "nixpkgs")
        .pulls()
        .list(&Default::default())
        .await?;

🌍 Your environment

hubcaps version: a9e6616ecc7b8eef0ea0eaf6055d9610c8961500

piegamesde avatar Jun 25 '21 16:06 piegamesde

I managed to get this to work by removing the line pub merged: bool, in Pull. Therefore wrapping that value in an Option seems to be necessary.

piegamesde avatar Jun 25 '21 16:06 piegamesde