my-github-repos

command module
v0.3.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 11 Imported by: 0

README

GitHub GraphQL API client

godoc

Goal

Get a list of all of repositories owned by me from GitHub, alongside and/or sorted by creation date.

From the Explorer

{
  repositoryOwner(login: "jlucktay") {
    login
    repositories(first: 100, isFork: false, orderBy: {field: CREATED_AT, direction: ASC}) {
      edges {
        node {
          createdAt
          name
        }
      }
    }
  }
}

GitHub token

A personal access token (classic) is used to access GitHub, and must be set in the GITHUB_TOKEN environment variable.

TODO

Doing
Done
  • get forks and not-forks as two separate queries
    • in Terraform, these would be maintained as two separate resources, one volatile and one less so
  • Pagination (starter limit is 100 and we're almost there already)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳