Stalar
Integrations

GitHub

Search code and view deployments from GitHub

Search code, view commits, and check deployments from GitHub.

What Stalar can do

ToolDescription
List repositoriesGet repositories in your organization
Search codeSearch for code across repositories
Get file contentsRead file contents from a repository
Get deploymentsList deployments for a repository
Compare commitsCompare two commits or branches
Get commitsList commits for a repository
Get latest commitGet the most recent commit

Configuration

Required

FieldDescription
tokenGitHub personal access token or app token

Optional

FieldDescription
baseUrlGitHub API URL (for GitHub Enterprise)

Config file example

integrations:
  - name: "github-prod"
    type: "github"
    environment: "production"
    config:
      token: "${GITHUB_TOKEN}"

  # GitHub Enterprise
  - name: "github-enterprise"
    type: "github"
    environment: "production"
    config:
      token: "${GHE_TOKEN}"
      baseUrl: "https://github.example.com/api/v3"

Example queries

  • "Search for usages of the PaymentService class"
  • "What was deployed to production today?"
  • "Show me the latest commit on main"
  • "Compare main to the staging branch"