diff --git a/.github/skills/backport-email/SKILL.md b/.github/skills/backport-email/SKILL.md new file mode 100644 index 00000000000000..6a15fe6001ef20 --- /dev/null +++ b/.github/skills/backport-email/SKILL.md @@ -0,0 +1,52 @@ +--- +name: backport-email +description: Generate a backport email from a PR for sending to Tactics. Use when asked to create or generate a backport email. +--- + +# Backport Email Generation + +Generate a formatted email for requesting backport approval from Tactics. + +## Required Input + +Ask the user for the **backport PR URL** if not provided. Example: +- `https://github.com/dotnet/runtime/pull/124058` + +## Process + +1. **Fetch the backport PR** using the GitHub MCP tools to get: + - PR number and title + - Target release branch (e.g., `release/9.0`) + - PR description (filled in from the `pr_description_template` in `.github/workflows/backport.yml`) + +2. **Read the email template** at `.github/skills/backport-email/templates/BACKPORT_EMAIL_TEMPLATE.md` + +3. **Generate the email** by: + - Filling in the subject line with the release branch, PR title, and PR number + - Extracting the issue link and main PR link from the PR description + - Copying the PR description verbatim as the email body + +## Output Format + +Output the email as **plain text** (not markdown) since email clients don't render markdown. + +``` +Subject: [release/X.0] Backport request: