my-github-repos

command module
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 12 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

The autoload feature of github.com/joho/godotenv is used to look for a .env file and read a value for GITHUB_TOKEN to authenticate with GitHub.

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