Configuration
ReleaseRay reads one optional file, .releaseray/config.yml. The config input changes the path. Without the file, the defaults write for the three built-in personas, so you only add the keys you want to change.
Every key is optional except version. Values merge in this order, later winning: built-in defaults, the file, then the Action's inputs.
Add this first line so editors with a YAML language server check the file as you type:
# yaml-language-server: $schema=https://raw.githubusercontent.com/cristobalmitchell/releaseray/v1/schema/releaseray.schema.json
Rules that span keys (persona names in outputs, internal personas on published outputs, provider settings) are checked by mode: validate-config and at the start of every run. Credentials never go in this file: keys come from environment variables in your workflow.
A Complete Example
Most keys in one file. Copy the parts you need.
# yaml-language-server: $schema=https://raw.githubusercontent.com/cristobalmitchell/releaseray/v1/schema/releaseray.schema.json
version: 1
range:
tagPattern: "v*"
includePrereleases: false
classification:
categories:
- id: infrastructure
title: Infrastructure
labels: ["area: infra", "/^terraform/"]
conventionalTypes: [build, ci]
internal: true
exclude:
labels: [skip-release-notes, dependencies]
authors: ["renovate[bot]"]
titlePatterns:
- "^chore\\(release\\):"
- "/^promote .* to (staging|production)/i"
enrichment:
linkedIssues: true
comments: false
maxBodyChars: 4000
personas:
- slug: engineer # built-in, trimmed and extended
sections:
- { id: breaking-changes, name: "Breaking Changes", categories: [breaking] }
- { id: features, name: "Features", categories: [features, improvements] }
- { id: fixes, name: "Fixes", categories: [fixes, performance] }
- { id: infrastructure, name: "Infrastructure", categories: [infrastructure] }
- slug: customer # built-in, retuned
tone: { formality: 30, technicalDepth: 10, enthusiasm: 60, detail: 40 }
include: { identifiers: false, contributors: false, upgradeInstructions: false }
- slug: sales # custom; inherits internal visibility
extends: internal
name: Sales enablement
instructions: |
Lead with the customer problem each change solves. One sentence per item.
outputs:
summary: { personas: all } # internal personas are still withheld on public repositories
githubRelease: { persona: engineer, mode: section, onHumanEdit: skip }
changelog: { enabled: true, persona: engineer, push: true }
llm:
provider: openai
model: gpt-5-mini
github:
onBudgetExceeded: fail
sanitize:
allowedDomains: [github.com, docs.example.com]
Version
The config format version.
| Key | Type | Default | Description |
|---|---|---|---|
version | 1 | Always 1. |
Range
How the commits for a release are chosen. Everything comes from local git, so the checkout needs fetch-depth: 0.
| Key | Type | Default | Description |
|---|---|---|---|
range.tagPattern | string | v* | Glob over tag names that count as releases, as git tag --list reads it. |
range.includePrereleases | boolean | false | Let a prerelease tag be the previous tag of a release. |
range.allowNonAncestor | boolean | false | Allow an explicit from that is not an ancestor of to. The allow-non-ancestor input sets it for one run. |
range.fallbackToCommits | boolean | true | Write notes from commit messages when no commit names a pull request. |
range.maxPullRequests | integer 1–5000 | 250 | Stop before any REST call when a range names more pull requests than this; set from or narrow the window. |
Classification
Categories, the labels and commit types that map to them, and what to leave out. Configured categories merge over the nine built-ins by id.
| Key | Type | Default | Description |
|---|---|---|---|
classification.categories | list of object | [] | Categories to add, or built-in categories to change, by id. |
classification.categories[].id | string | Slug. A built-in id (breaking, security, features, improvements, fixes, performance, deprecations, docs, internal) changes that category. | |
classification.categories[].title | string | Name the classifier and the model see. Default: the built-in title, or the id in words. | |
classification.categories[].labels | list of string | Pull request labels that put a change here: exact names (any case) or /regex/flags. | |
classification.categories[].conventionalTypes | list of string | Conventional-commit types that map here, such as feat, fix or ci. | |
classification.categories[].internal | boolean | Hide this category from personas that exclude internal changes. | |
classification.conventionalCommits | boolean | true | Read conventional-commit prefixes in titles and commits. |
classification.fallbackCategory | string | improvements | Category for changes with no other signal; unknown model sections merge into its section. |
classification.exclude.labels | list of string | ["skip-release-notes"] | Pull requests with any of these labels are left out (exact names or /regex/). |
classification.exclude.authors | list of string | [] | Pull requests by these logins are left out, such as renovate[bot]. |
classification.exclude.titlePatterns | list of string | [] | Regular expressions (source or /source/flags) matched against commit subjects and pull request titles; matches are left out. |
Enrichment
What is fetched from GitHub besides each pull request's title and labels. More enrichment means more REST requests and a longer prompt.
| Key | Type | Default | Description |
|---|---|---|---|
enrichment.bodies | boolean | true | Send pull request and issue bodies to the model. |
enrichment.linkedIssues | boolean | true | Fetch issues that pull request bodies link to (one request each). |
enrichment.maxLinkedIssues | integer 0–500 | 100 | Most linked issues fetched per release. |
enrichment.comments | boolean | false | Fetch comments and reviews (two requests per pull request, one per issue). Off by default: it costs requests and widens prompt-injection exposure. |
enrichment.commentAuthorAssociations | list of OWNER | MEMBER | COLLABORATOR | ["OWNER","MEMBER","COLLABORATOR"] | Keep only comments from these author associations. |
enrichment.maxBodyChars | integer 0–20000 | 4000 | Characters of each body sent to the model. |
Personas
Who the notes are written for. Entries merge over the built-ins engineer, internal and customer by slug; other slugs add personas.
| Key | Type | Default | Description |
|---|---|---|---|
personas | list of object | Persona entries, merged over the built-ins by slug. | |
personas[].slug | string | Lowercase id. engineer, internal and customer change a built-in; anything else adds a persona. | |
personas[].extends | engineer | internal | customer | Start a new persona from a built-in's rules and sections. | |
personas[].name | string | Display name in the summary. | |
personas[].description | string | Who this persona is for; sent to the model. | |
personas[].enabled | boolean | true | Set false to stop generating this persona. |
personas[].visibility | public | internal | internal personas are withheld from public outputs and from public repositories' summaries. Default: internal for internal and personas extending it. | |
personas[].tone.formality | integer 0–100 | 0 casual to 100 formal. Default 50; 0 is kept. | |
personas[].tone.technicalDepth | integer 0–100 | 0 plain language to 100 technical. Default 50. | |
personas[].tone.enthusiasm | integer 0–100 | 0 neutral to 100 enthusiastic. Default 30. | |
personas[].tone.detail | integer 0–100 | 0 brief to 100 comprehensive. Default 50. | |
personas[].instructions | string | Extra instructions for the model, up to 2,000 characters. | |
personas[].instructionsFile | string | Like instructions, from a file under .releaseray/. | |
personas[].include.identifiers | boolean | Show pull request and issue numbers and commit SHAs. | |
personas[].include.breakingChanges | boolean | Ask for breaking changes. | |
personas[].include.migrationGuides | boolean | Ask for migration guides. | |
personas[].include.highlights | boolean | Render the Highlights section. | |
personas[].include.upgradeInstructions | boolean | Render upgrade instructions. | |
personas[].include.contributors | boolean | Render the contributors line (from pull request authors). | |
personas[].sections | list of object | The sections to write, in order (at most 15). Replaces the persona's default sections. | |
personas[].sections[].id | string | Slug. A standard section id (breaking-changes, features, bug-fixes, …) keeps its category mapping. | |
personas[].sections[].name | string | Heading in the notes. | |
personas[].sections[].description | string | What belongs in this section; sent to the model. | |
personas[].sections[].categories | list of string | [] | Category ids this section collects. Empty: the standard section's categories, or the category with the same id. |
personas[].sections[].enabled | boolean | true | Set false to hide the section. |
personas[].excludeCategories | list of string | Category ids this persona never shows. The built-in customer persona excludes internal. |
Outputs
Where the notes go. The job summary and workspace files are on by default; the GitHub Release is written when publish resolves to true.
| Key | Type | Default | Description |
|---|---|---|---|
outputs.summary.enabled | boolean | true | Write notes, usage and completeness to the job summary. |
outputs.summary.personas | all | list of string | all | all, or the slugs to show. |
outputs.files.enabled | boolean | true | Write <dir>/<key>/<persona>.md and notes.json in the workspace. |
outputs.files.dir | string | .releaseray/notes | Directory for the workspace files, relative to the checkout. |
outputs.githubRelease.enabled | boolean | true | Write a block into the GitHub Release when publish resolves to true. |
outputs.githubRelease.persona | string | engineer | The persona whose notes go into the release. |
outputs.githubRelease.mode | section | replace | section | section appends a marked block and keeps other text; replace writes the whole body. |
outputs.githubRelease.onHumanEdit | skip | overwrite | skip | skip leaves a block a person edited; overwrite replaces it. |
outputs.githubRelease.createIfMissing | boolean | false | Create the release when none exists for the tag. The create-release input sets it for one run. |
outputs.githubRelease.nameTemplate | string | Release {{tag}} | Name of a created release; {{tag}} is the tag. |
outputs.githubRelease.prerelease | auto | boolean | auto | Prerelease flag of a created release; auto follows SemVer. |
outputs.changelog.enabled | boolean | false | Write a marked entry into the CHANGELOG file in the workspace. |
outputs.changelog.path | string | CHANGELOG.md | CHANGELOG path, relative to the checkout. |
outputs.changelog.persona | string | engineer | The persona whose notes go into the CHANGELOG. |
outputs.changelog.onHumanEdit | skip | overwrite | skip | skip leaves an entry a person wrote or edited; overwrite replaces it. |
outputs.changelog.push | boolean | false | Commit and push the entry. The push input sets it for one run. |
outputs.changelog.branch | string | Branch to push to. Default: the checked-out branch, else the default branch. | |
outputs.changelog.commitMessage | string | docs(changelog): {{key}} | Commit subject; {{key}} is the release key. |
outputs.changelog.author.name | string | Commit author name. Default: github-actions[bot]. | |
outputs.changelog.author.email | string | Commit author email. | |
outputs.notify | list of object | [] | Slack, Teams and Intercom. Arrives in v1.1; rejected until then. |
outputs.allowInternalOutputs | boolean | false | Allow an internal persona on the GitHub Release or CHANGELOG. |
outputs.allowInternalOnPublicRepo | boolean | false | Show internal personas in the summary and files of a public repository. |
LLM
The model provider and its limits. Keys come from environment variables, never from this file.
| Key | Type | Default | Description |
|---|---|---|---|
llm.provider | openai | bedrock | anthropic | openai | openai (or any OpenAI-compatible endpoint), bedrock or anthropic. |
llm.model | string | Model id. Default: gpt-5-mini on openai, Claude Haiku 4.5 on bedrock, claude-opus-5-5 on anthropic. Bedrock accepts inference-profile ARNs. | |
llm.baseUrl | string | OpenAI-compatible endpoint (openai only). | |
llm.region | string | AWS region (bedrock only; required there). | |
llm.maxCompletionTokens | integer 256–65536 | 16384 | Most tokens per model response. |
llm.maxInputTokens | integer 1000–9007199254740991 | 200000 | Most input tokens per persona call, estimated at 4 characters each and checked before any call. |
llm.concurrency | integer 1–10 | 3 | Persona calls in parallel. |
llm.retries | integer 0–5 | 3 | Times to ask again after invalid output; transient errors retry separately. |
llm.pricing.inputPer1M | number ≥ 0 | USD per million input tokens, for a model the built-in table lacks. | |
llm.pricing.outputPer1M | number ≥ 0 | USD per million output tokens. |
GitHub requests
The REST request budget and what to do when a release would exceed it.
| Key | Type | Default | Description |
|---|---|---|---|
github.maxRequests | integer 1–9007199254740991 | Request cap for a run. Default: 90% of the token's hourly core limit. | |
github.concurrency | integer 1–10 | 1 | REST reads in parallel. Writes are always serial. |
github.onBudgetExceeded | fail | wait | degrade | fail | When the estimate does not fit: fail (exit 3), wait for the reset within maxWaitMinutes, or degrade (drop comments, then linked issues). Also governs llm.maxInputTokens. |
github.maxWaitMinutes | integer 0–300 | 0 | Longest wait for a rate-limit reset. Raise the job's timeout-minutes to match. |
Sanitizing
What is removed from published text.
| Key | Type | Default | Description |
|---|---|---|---|
sanitize.allowedDomains | list of string | ["github.com","gitlab.com"] | Hosts (and their subdomains) whose links are kept; other links are redacted. |
sanitize.redactPaths | boolean | true | Remove file paths from published text. |
Rendering
How the Markdown looks.
| Key | Type | Default | Description |
|---|---|---|---|
render.emoji | boolean | true | Emoji in section headings. |
render.compareLink | boolean | true | End with a compare link from the previous tag. |
Related docs: