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

Move to graphQL API #1

Open
cljoly opened this issue Jan 14, 2023 · 0 comments
Open

Move to graphQL API #1

cljoly opened this issue Jan 14, 2023 · 0 comments

Comments

@cljoly
Copy link
Owner

cljoly commented Jan 14, 2023

Seems easy enough with the gh cli:

gh api graphql --paginate -f query='
 query($endCursor: String) {
   viewer {
     repositories(first: 100, after: $endCursor) {
       nodes { nameWithOwner }
       pageInfo {
         hasNextPage
         endCursor
       }
     }
   }
 }

See also https://cli.github.com/manual/gh_api

Aims

  • Solve transient issues in Actions, where some columns are missing in the SQLite table.
  • Request only the required fields and repositories, maybe even filter straight away for starred repos
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

No branches or pull requests

1 participant