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

repositoryOwner GitHub API Simulator Resolver #267

Merged
merged 8 commits into from
Sep 7, 2023

Conversation

jbolda
Copy link
Contributor

@jbolda jbolda commented Sep 6, 2023

Motivation

The repositoryOwner query was missing. Adding it.

Approach

We added the resolver and abstracted out the return into a switch statement to more easily return the values consistently across queries and respecting the nesting and pagination.

@jbolda jbolda requested a review from cowboyd September 6, 2023 14:04
@netlify
Copy link

netlify bot commented Sep 6, 2023

Deploy Preview for simulacrum canceled.

Name Link
🔨 Latest commit fc4441f
🔍 Latest deploy log https://app.netlify.com/sites/simulacrum/deploys/64f88a238a7ba30008e2cb47

Copy link
Member

@cowboyd cowboyd left a comment

Choose a reason for hiding this comment

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

Looks good 👍

I'd like to keep changes orthogonal. Also, do we have test for our GitHub simulator?

.circleci/config.yml Show resolved Hide resolved
package.json Show resolved Hide resolved
@jbolda
Copy link
Contributor Author

jbolda commented Sep 7, 2023

We currently don't have any tests for the Github API simulator. Personally, I think tests and a test suite should come in separate PRs. We also need a README.

@jbolda jbolda merged commit 955dd7f into v0 Sep 7, 2023
@jbolda jbolda deleted the repositoryOwner-github-query branch September 7, 2023 20:55
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