OverviewArchitectureRecipeSourceProcessorSinkContext Graph for AI
OverviewArchitectureRecipeSourceProcessorSinkContext Graph for AI

GitHub

Extracts metadata from a GitHub organisation. It emits user, repository, team, and document entities, plus edges for team membership, repository ownership, and collaborator access.

Usage

source:
  name: github
  scope: my-github-org
  config:
    org: raystack
    token: github_token
    extract:
      - users
      - repositories
      - teams

Configuration

KeyTypeDescriptionRequired
orgstringName of the GitHub organisation.Yes
tokenstringGitHub API access token.Yes
extract[]stringWhat to extract. Allowed values: users, repositories, teams, documents, collaborators. Default: all five.No
docs.repos[]stringRepositories to scan for documents. Default: all org repositories.No
docs.paths[]stringDirectory paths to scan for documents in each repository. Scanned recursively. Default: ["docs"].No
docs.patternstringGlob pattern for matching document files. Default: *.md.No

Output

Emits four entity types:

EntityURN pattern
userurn:github:{scope}:user:{user_id}
repositoryurn:github:{scope}:repository:{repo_id}
teamurn:github:{scope}:team:{team_id}
documenturn:github:{scope}:document:{doc_id}

Notable properties:

  • user - email, username, full_name, company, location, bio, avatar_url, html_url, status
  • repository - full_name, description, html_url, language, visibility, default_branch, archived, fork, stargazers, forks, open_issues, topics
  • team - slug, description, privacy, permission, html_url
  • document - path, file_name, content, html_url, repo, size, sha

Edges

Edge typeFromTo
member_ofuserorganisation
member_ofuserteam
owned_byrepositoryuser
belongs_todocumentrepository
has_access_touserrepository

has_access_to edges carry a permission property with the user's highest access level: admin, maintain, push, triage, or pull.

Notes

Document extraction (documents) fetches full file contents, so limit it with docs.repos and docs.paths on large organisations. Extracting collaborators lists collaborators for every repository in the organisation.

Google Cloud StorageGrafana
On this page
UsageConfigurationOutputEdgesNotes