4

GitHub GraphQL - Get active repos

 1 year ago
source link: https://gist.github.com/MichaelCurrin/b22f0d3c18d8529907d7bab17ae9d6d8
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

GitHub GraphQL - Get active repos

Get 100 repos owned by a user or org, with the most recently pushed repo first

If you have access to see the private repos of an org or user, you'll see those too.

Steps

  1. Go to the GraphQL API explorer:
  2. Sign in as your GitHub account.
  3. Paste query from query.gql.
  4. Include JSON data payload in Query Variables section - see params.json. Specify the name of a user or organization.
  5. Run query.

Sample output data

[
    {
        "name": "os-genesis",
        "pushedAt": "2020-06-23T21:31:05Z",
        "updatedAt": "2020-06-23T21:31:07Z",
        
        "isPrivate": false,
        "description": "Automate config and package management on a dev laptop"
    },
    {
        "name": "unicron",
        "pushedAt": "2020-06-23T11:17:30Z",
        "updatedAt": "2020-06-23T11:17:31Z",
        
        "isPrivate": false,
        "description": "A simple scheduler to ensure tasks run exactly once per day but get retried at intervals until the task passes :repeat_one: :hourglass_flowing_sand: :unicorn:",
        
    }
]

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK