summary.yml
Post an AI summary comment on newly opened issues.
[!WARNING] GitHub Models retirement notice: The default GitHub Models endpoint is in a scheduled retirement brownout (gha#617) and returns 410 errors. Pass a custom
endpoint,model, andAPI_KEYsecret, or preferclaude.ymlfor richer issue triage and engagement.
If inference fails or returns an empty response, the workflow emits a warning and leaves the issue unchanged instead of failing the issue-open run.
Inputs
| Input | Description | Type | Default | Required |
|---|---|---|---|---|
endpoint |
Inference endpoint URL (e.g. http://localhost:11434/v1 or custom OpenAI-compatible endpoint). |
string | https://models.github.ai/inference |
No |
model |
Model identifier to query. | string | openai/gpt-4o-mini |
No |
Secrets
| Secret | Description | Required |
|---|---|---|
API_KEY |
API key for the custom inference endpoint. | No |
OPENAI_API_KEY |
Alternative API key secret name. | No |
Permissions
Grant issues: write, models: read, and contents: read.
Example
# Copy to .github/workflows/summary.yml in your repo.
# NOTE: GitHub Models (the default endpoint) is in scheduled retirement brownout (gha#617).
# Provide a custom `endpoint` / `model` and API_KEY secret, or prefer `claude.yml` for richer issue engagement.
# The calling job must grant issues:write + models:read.
name: Summarize new issues
on:
issues:
types: [opened]
jobs:
summary:
permissions:
issues: write
models: read
contents: read
uses: Morrison-Lab/gha/.github/workflows/summary.yml@v1
# secrets:
# API_KEY: ${{ secrets.OPENAI_API_KEY }}
# with:
# endpoint: http://localhost:11434/v1
# model: openai/gpt-4o-miniSee examples/summary.yml for the full caller stub.