HarborHarbor
DocumentationGuidesPlugins
All plugins

GitHub GraphQL

GitHub GraphQL API for repository and org data

APICategory: devPopularity 88github_graphql

GitHub GraphQL API for repository and org data

Install

hrbr plugins install github-graphql

Harbor calls https://api.github.com (driven by the upstream OpenAPI spec).

Quick start

hrbr exec 'return await github_graphql.get({ /* see schema */ })'

Or from a Function:

import { defineOrbitJob } from "@hrbr/orbit";

export default defineOrbitJob({
  name: "github-graphql-example",
  handler: async (ctx) => {
    return await ctx.plugins.github_graphql.list({ limit: 5 });
  },
});

Tools

Tools are generated from the upstream OpenAPI spec. Inspect with:

hrbr plugins tools github-graphql

Or open the dashboard plugin page for the live tool list.