Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

refactor(github): Have a dedicated PublicRepository type#63607

Merged
pjlast merged 6 commits into
mainfrom
pjlast/dedicated-github-public-repo-type
Jul 22, 2024
Merged

refactor(github): Have a dedicated PublicRepository type#63607
pjlast merged 6 commits into
mainfrom
pjlast/dedicated-github-public-repo-type

Conversation

@pjlast

@pjlast pjlast commented Jul 3, 2024

Copy link
Copy Markdown
Contributor

The repositories returned from GitHub's public repositories endpoint has a reduced set of fields and has led to bugs in the past.

This PR introduces a dedicated PublicRepository type that prevents us from relying on fields that don't exist.

Test plan

This is used only in 1 place so tests should still pass.

Changelog

@cla-bot cla-bot Bot added the cla-signed label Jul 3, 2024
@pjlast pjlast requested a review from a team July 3, 2024 08:36
@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels Jul 3, 2024

@eseliger eseliger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised no golden files needed to be updated here, but great change - thank you!

@pjlast pjlast merged commit 874c9f6 into main Jul 22, 2024
@pjlast pjlast deleted the pjlast/dedicated-github-public-repo-type branch July 22, 2024 15:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants