changelog
Turn merged pull requests and pushes on the default branch into changelog entries, in the repository's own changelog format, on one rolling pull request (`kortix/marketing-changelog`). Load for the `c
SKILL.mdpackages/starter/templates/marketing/skills/changelog/SKILL.md
GitHubChangelog
One rolling pull request holds every entry since the last merge of it. Each line tells a user what they can now do, or what no longer breaks. Every line comes from a commit or pull request you read.
Steps
- Find the changelog.
site.changelog_pathin marketing.json;null: detect it asreferences/format.mdsays, and name what you found in the pull request body so a person can set it. - Open the branch.
gh pr list --head kortix/marketing-changelog --state open. It exists: check outkortix/marketing-changelogand rebase it onorigin/<trunk>. Else create it fromorigin/<trunk>. - Find the range. Start after the newest change the changelog already
covers (its date, version or listed pull request numbers). List merged
pull requests with
gh pr list --state merged --base <trunk> --search "merged:>=<date>" --json number,title,body,mergedAt,labels,urland direct pushes withgit log --no-merges <start>..origin/<trunk>. A webhook run adds its one pull request; the daily sweep adds all. - Choose what goes in with
references/selection.md. Read the diff when the title does not say what changed for a user. - Write each kept change as one line in the file's own format
(
references/format.md): under the unreleased section, or under today's date when the file is dated. Never edit a released section. - Commit
docs(changelog): <summary>and push. No open pull request: open one, titledocs(changelog): <first date> to <last date>, labelsmarketingandmarketing:changelog. Update the body every run: included pull requests, skipped ones with the reason,Needs a person. - Nothing user-visible in the range: push nothing. End with
changelog: created=0 updated=0 skipped=<n> ….
Rules
- Never a feature, number or benefit the commit or pull request does not show.
- An unclear change stays out, listed under
Not includedwith the reason. - Never edit the changelog on
<trunk>directly; a person merges the pull request. - Group lines the way the file already groups them (Added, Changed, Fixed, Removed, Security, or the file's own headings).