Skip to content

[octocrab] Make some fields optional...#10

Open
nataliejameson wants to merge 1 commit intodiscordfrom
nmj/make-things-optional
Open

[octocrab] Make some fields optional...#10
nataliejameson wants to merge 1 commit intodiscordfrom
nmj/make-things-optional

Conversation

@nataliejameson
Copy link

It looks like the CommitComparison's base_commit object uses Commit for its type, which as of recently(ish), requires repository and score. These however are not returned in the commit object from github (https://docs.github.com/en/rest/commits/commits?apiVersion=2026-03-10 seems to not have a repository object, even an optional one, in the base_commit). Just make those fields optional for now.

It looks like the CommitComparison's base_commit object uses Commit for its type, which as of recently(ish), requires repository and score. These however are not returned in the commit object from github (https://docs.github.com/en/rest/commits/commits?apiVersion=2026-03-10 seems to not have a repository object, even an optional one, in the base_commit). Just make those fields optional for now.
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