Draft Email
The draft-email.yml workflow generates an email draft file whenever a release-please PR is opened or updated. The draft is committed directly to the PR branch so you can review it before merging.
What it does
Section titled “What it does”- Detects that the PR is from release-please (branch starts with
release-please--) - Extracts the target version from the PR title
- Computes the
--sinceboundary from the latest published git tag - Runs
cryyer draft-filevia the draft-file composite action - Commits the generated
drafts/vX.Y.Z.mdfile to the PR branch
Draft file format
Section titled “Draft file format”The generated file uses YAML front matter:
---subject: "Your App v1.2.0 — What's New"---
Hi everyone,
Here's what's new in v1.2.0...You can edit this file directly in the PR before merging.
Required secrets
Section titled “Required secrets”| Secret | Description |
|---|---|
GEMINI_API_KEY (or other LLM key) | API key for your configured LLM provider |
GITHUB_TOKEN is provided automatically by GitHub Actions.
Configuration
Section titled “Configuration”The workflow references the draft-file composite action. Key inputs:
product— your product ID (must match a file inproducts/)version— extracted from the release-please PR titlesince— computed from the latest git tagllm-provider/llm-model— which LLM to use for draft generation
See Composite Actions for the full input reference.