Skip to content

Schema error when creating check run #148

@fau-st

Description

@fau-st

Hello,

With version 0.11.12 it seems that creating a check run is no longer possible:

gh.rest.checks.create(
    owner='owner',
    repo='repo',
    name='name',
    head_sha='0000000000000000000000000000000000000000',
    status='in_progress',
)

⬇️

pydantic.errors.PydanticUserError: Model 'ReposOwnerRepoCheckRunsPostBodyOneof1' needs field 'status' to be of type `Literal`

It looks like it's related to the changes made to githubkit/versions/v2022_11_28/rest/checks.py but I'm not sure why it was modified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Rest APIbugSomething isn't workingschemaschema related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions