Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull requests: missing field merged #297

Open
piegamesde opened this issue Jun 25, 2021 · 1 comment
Open

Pull requests: missing field merged #297

piegamesde opened this issue Jun 25, 2021 · 1 comment
Labels

Comments

@piegamesde
Copy link
Contributor

🐛 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: a9e6616

@piegamesde piegamesde added the bug label Jun 25, 2021
@piegamesde
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant