changelog
The procedure an agent follows when it runs changelog. For people, the changelog guide explains it.
Many pull requests open at once cannot all edit the changelog and the version: each merge would put every other pull request in conflict. So a pull request adds a change note, a small file of its own, and a release step on the integration branch writes the notes into the changelog, moves the version and deletes the notes after the merge. This skill is the agent’s side of that: when a change needs a note, how to write one a reader of the changelog can use, the commands that check a branch, check the whole changelog against its format and show what the next release will be, and the guided setup that turns it on in a repository, CI included. The practices are Jig’s M12 (no two pull requests edit the same lines) and M16 (releases and versions); the human’s page is README.md.
Jig maintains this procedure and ships it in the jig plugin. The repository
supplies its values in the changelog: section of its .config/jig.yaml
(configuration).
Paths and working directory
${CLAUDE_SKILL_DIR} in the commands below stands for the absolute path of the
directory containing this SKILL.md. Claude Code fills it in. In any other
harness, replace it with that path yourself before running a command: a shell
would expand the unset variable to an empty string.
Run every command from the root of the repository you are working on. Never
cd into the skill directory: the scripts find the repository and its
configuration from the working directory.
When it applies
Only in a repository whose own .config/jig.yaml sets changelog.file. Find
out by running, from the repository root:
bun "${CLAUDE_SKILL_DIR}/scripts/status.ts"It prints not configured where the skill is off. Then do nothing more: write
no note, run no other command of this skill, and never ask for a changelog
entry, unless a person asked for /jig:changelog setup
(§ Setup), which is how the skill gets turned on. A person’s own ~/.jig/jig.yaml or a JIG__CHANGELOG__* variable never
turns it on: the commands refuse those, naming where they were set. Where it is
on, status.ts also prints the notes waiting, the version they would make and
the notes that wait for a release, and each command prints the plugin version it
ran as.
Writing a note
Write the note when you open the pull request, while the change is fresh, and keep it true as review changes the change. Never add to the changelog’s Unreleased or release sections or edit any version file by hand: the release step writes them, and the branch check fails a branch that does. Correcting an entry already there (a link your change broke, a wrong word) or removing one is allowed. Under Unreleased a correction rewrites a line where it stands, under the same heading and with the same indentation and list or quote marker, and adds none, so keep a longer correction on its line rather than rewrapping it; the check names the lines it changes, removes or adds for the reviewer. In a released section the reviewer reads the diff.
-
Decide whether the change needs a note. The changelog is written for the people who use what the repository releases, not for the people who work on it. A change needs a note when the repository’s
release_pathsornote_pathscover a file it changes (the branch check says so), and whenever someone who uses the released artifact would want to know: a new capability, a changed behaviour or default, a fix to something a user hit, a deprecation, a removal, a security fix. Skip it for a change that only the people working on the repository notice (a refactor, a test, a CI or build tweak, the repository’s own scripts and agent instructions, internal design documents, a project website) unless the check asks; when the check asks for a change no user sees, write onepatchitem that says so plainly. Where the repository writes down its own rule for what gets an entry (in its contributing guide or its notes folder’sREADME.md), that rule decides. A repository with neither path configured never requires a note. -
Create one file in the notes folder (
changelog.notes_dir,changesby default), named after the branch: its name with every character other than a letter, a digit,.,_or-replaced by-and cut to its first 64 characters, then-and the first eight hexadecimal digits of the SHA-256 of the branch’s full name. The digits keepfeat/xandfeat-xapart. Only Markdown files directly in the folder are notes; itsREADME.mdis not one. If the branch already has a note, edit it. -
Judge
releasefrom what the change does to someone who uses the released artifact, not from the size of the diff:The change, for someone using the released artifact releaseBreaks something they rely on: a removed or renamed feature, a changed default, a stricter check major(minorbefore 1.0.0)Adds a capability or changes behaviour compatibly minorFixes a defect, or changes nothing they can observe patchShips in no release: nothing under the released paths changes leave the front matter out Put it in the front matter: a block of
key: valuelines between two---lines at the top of the file.markdown --- release: minor ---Several notes waiting are one release at the largest bump any asks for, so ask for what your change needs and no more.
-
Write each change as one list item, for the reader of the changelog, not the reviewer of the diff. Say what changed for them and where they meet it: the command, the option, the behaviour. One change, one item; two changes in the pull request, two items. Leave out file names, function names, pull request numbers and commit hashes (the release step adds the reference where the format has one). List the items under a
###heading named for one of the format’s change types:- Keep a Changelog:
Added,Changed,Deprecated,Removed,Fixed,Security. - Common Changelog:
Changed,Added,Removed,Fixed. Write each entry in the imperative (“Add the retry option”), on one line.
The release step puts the sections in the format’s order, so write them in whichever order reads best.
- Keep a Changelog:
-
Mark a breaking change as the format marks it, and say what a consumer must change. In Common Changelog start the item with
**Breaking:**; the check then requiresrelease: major(minorbefore 1.0.0). In Keep a Changelog write Breaking in the item. Either way, name the new spelling or the step to take: “Breaking: the--outflag is now--output; rename it in scripts.”Ask, for every change to what the repository releases: does a user have to do anything? When they must or should, declare a consumer action after the entry’s description, in the form README.md § Consumer actions gives:
**Consumer action:** required|advised at <level>[, <level>]. <instruction>(levelsmachine,configuration,instructions; at most 400 characters), then optionally**Detect:**and code-span hints (config:<key>,config:!<key>,text:<phrase>,file:<glob>,plugin-source:old|path|project-scope). Write**Consumer action:** none.when the entry asks nothing, and**Consumer action:** retracts <id>.to withdraw an earlier release’s action. Write the marker exactly, in the entry itself, not a nested item. The check refuses a malformed declaration in any note; wherechangelog.consumer_actionsistrueit also refuses a breaking entry without one, a near-miss marker (**Consumer Action:**) and a**Detect:**with no declaration. -
Add a summary only when it helps, and only with
release. Text before the first###section is the release’s summary; a note withoutreleasemay not have one. In Common Changelog it is the release’s single notice, one sentence in one paragraph and in italics, and a release has only one: the check refuses it when a note waiting on the integration branch has one. -
Keep to the note’s Markdown. Headings
###with a change type, lists and their items, paragraphs, and inline emphasis, links and code spans. Nothing else: no code block, raw HTML, quote, table, image, task list or reference-style link ([text][label]with a definition). Write a link inline with a path relative to the note, such as../docs/guide.md; the release step rewrites it for the changelog. Show code in a code span. -
Common Changelog only: authors. The release step credits the people whose commits wrote the note, never a bot. When every commit that wrote the note is by a bot (an author name ending in
[bot]), name the people in the front matter:authors: Jane Doe, John Roe.changelog.authors: falseleaves authors out of the changelog. -
Run the check with the repository’s other gates before you push, and again when review changes what the pull request does:
bash bun "${CLAUDE_SKILL_DIR}/scripts/check.ts"
An example for a repository on Keep a Changelog:
---
release: minor
---
### Added
- `jig config --json` prints every configured field with the file that set it.
### Fixed
- A repository without a `.config/jig.yaml` no longer stops `jig config` with a
stack trace; it says the file is missing.A branch that already edited the changelog or the version itself must put those edits back to the integration branch’s text and move the entries into a note: convert it, never by hand.
Checking the whole changelog
/jig:changelog lint checks the whole changelog against the rules of the
repository’s format, and of no other: changelog.format, else the format
the file names. Run it, from the repository root, when setting the skill up
on an existing changelog, after correcting an earlier release, and when a
person asks whether the changelog is well formed:
bun "${CLAUDE_SKILL_DIR}/scripts/lint.ts"Each finding reads <file>:<line>: [<rule>] <problem> and then fix: with
what to change and the specification’s section that states the rule. Fix
what a person asks you to; a correction to an earlier release’s text is an
ordinary change the branch check allows. A coverage finding (a version the
version files or a tag name has no section) cannot be fixed by a branch the
branch check passes, since adding a release section is the release step’s:
report it to the person rather than adding the section. The rules, by format
(the README has what each requires):
| Format | Rules |
|---|---|
| Keep a Changelog 1.1.0 | keep-a-changelog/title, semver-statement, unreleased-first, release-heading, date, release-order, duplicate-release, change-type, grouped, version-link, unreleased-link, coverage |
| Common Changelog | common-changelog/file-name, title, content, no-unreleased, release-heading, date, release-order, version-link, release-content, notice, category, category-order, change-list, reference, coverage |
What a format allows is never a finding: Keep a Changelog’s undated
Unreleased section and [YANKED] releases, Common Changelog’s notice-only
release and unlinked version.
Converting a branch
When a branch edited the changelog’s Unreleased or release sections or a version file (the check says so), run, from the repository root with the work committed:
bun "${CLAUDE_SKILL_DIR}/scripts/convert.ts" --dry-run
bun "${CLAUDE_SKILL_DIR}/scripts/convert.ts"The first prints what it would do. The second writes the branch’s note (named
after the branch) from the release sections the branch added and its additions
to Unreleased, with the release of the bump the branch made to the version;
puts back the integration branch’s open sections and version, keeping the
branch’s edits to earlier releases; and sets a placeholder the branch filled
(since: 1.3.0) back to its text (since: next). It refuses during a stopped
merge, rebase or cherry-pick, on uncommitted changes and on a detached HEAD.
Its result stays uncommitted for you to review:
- read the note: it carries what the branch wrote, so reword an entry for the
changelog’s reader, and fix any line printed as
attention:; - look at each
check:line, a line that still names the branch’s version, which the script does not change; - run
check.ts, then commit.
A branch stacked on another pull request passes that branch as --base, so only
its own edits become its note. Where the repository has not turned the skill on,
the command says not configured and changes nothing.
Setup
/jig:changelog setup turns the skill on in a repository on GitHub, CI
included. Walk the person through the steps below in order, and check
each before starting the next: a step whose check fails is fixed before you
go on. Change no repository or organization setting yourself, not even
with a command that could: print what to change, with the exact values (or the
gh command the person can run), let the person change it, then run the
check. Writing files in the working tree (steps 1 and 4) is yours; commit them
on a branch and open a pull request like any change.
Before step 1 read where the repository stands: bun "${CLAUDE_SKILL_DIR}/../../shared/command.ts" -- gh repo view --json "nameWithOwner,visibility,defaultBranchRef", and the integration branch
(repository.base_branch, else the default branch). The integration branch
should be the default branch: GitHub runs the workflow’s tag jobs from the
default branch. Stop and explain when the repository is private and its plan
offers no rulesets or environments for private repositories (GitHub Free):
the release’s key could not be kept to the integration branch.
-
The configuration and the changelog. Derive the values and show them for the person to confirm before you write:
file(an existingCHANGELOG.md, else that name),format(detected from the file; ask when there is no file), the version (frompackage.json,pyproject.tomlorCargo.toml, else ask: files with keys, or{ tags: true }),release_paths(what ships in a release, such assrc/),note_paths, andrelease.push:direct(the App pushes the release commit onto the integration branch, past its rules) orpull-request(the App opens a release pull request a person merges, and passes no rule). Write thechangelog:section of.config/jig.yamlwith only what differs from the defaults (configuration), and alwaysformat: common-changelogfor that format: its file holds only its title and its releases, so it cannot say which format it is in. When the changelog is missing, create it from the format’s template:${CLAUDE_SKILL_DIR}/templates/keep-a-changelog.mdor${CLAUDE_SKILL_DIR}/templates/common-changelog.md. Check:status.tsprints the format and the released version, notnot configuredor an error. Runlint.ts(§ Checking the whole changelog) on an existing changelog and show the person its findings: they are the person’s to fix or leave, and none blocks the setup. -
The App and its environment. Both modes push as a GitHub App, since a push with the workflow’s own token starts no other workflow. Fill in the App manifest for the mode,
${CLAUDE_SKILL_DIR}/templates/github/app-manifest-direct.jsonorapp-manifest-pull-request.json(<owner>,<repository>, and<app-name>, unique on GitHub, such as<repository>-release): Contents write, and Pull requests write inpull-requestmode only; no Workflows permission, so no release commit can change a workflow; no webhook. Write, outside the repository, an HTML page with a form that posts it, and have the person open it and create the App:html <form method="post" action="https://github.com/organizations/<owner>/settings/apps/new"> <input type="hidden" name="manifest" value='<the filled-in manifest>'> <button>Create the App on GitHub</button> </form>(For a repository a person owns, the action is
https://github.com/settings/apps/new.) GitHub then sends them to the repository’s page with acodein the address, which completes the App’s registration when exchanged within one hour. The person exchanges it, printing only what identifies the App, never the key and secrets the answer also carries:bun "${CLAUDE_SKILL_DIR}/../../shared/command.ts" -- gh api -X POST app-manifests/<code>/conversions --jq '{id, slug, client_id}'. The person then, by hand:- installs the App on this repository only (the App’s page → Install App → Only select repositories);
- generates a private key (the App’s settings → Private keys);
- creates the environment
changelog-release, with deployment branches limited to the integration branch alone (Settings → Environments); - stores the App’s client ID there as the variable
CHANGELOG_APP_CLIENT_IDand the private key as the secretCHANGELOG_APP_PRIVATE_KEY(bun "${CLAUDE_SKILL_DIR}/../../shared/command.ts" -- gh variable set CHANGELOG_APP_CLIENT_ID --env changelog-release --body <client-id>,bun "${CLAUDE_SKILL_DIR}/../../shared/command.ts" --stdin-file <key>.pem -- gh secret set CHANGELOG_APP_PRIVATE_KEY --env changelog-release), then deletes the downloaded key file.
Check:
bun "${CLAUDE_SKILL_DIR}/../../shared/command.ts" -- gh api repos/<owner>/<repository>/environments/changelog-release/deployment-branch-policieslists the integration branch and nothing else;bun "${CLAUDE_SKILL_DIR}/../../shared/command.ts" -- gh variable list --env changelog-releaseandbun "${CLAUDE_SKILL_DIR}/../../shared/command.ts" -- gh secret list --env changelog-releasename the two values;bun "${CLAUDE_SKILL_DIR}/../../shared/command.ts" -- gh api apps/<app-slug> --jq .permissionsshowscontents: write(withpull_requests: writeinpull-requestmode) and noworkflows. Ask the person to confirm the installation covers this repository only: the person’s login cannot read it. -
The branch rules. Read them first with
bun "${CLAUDE_SKILL_DIR}/scripts/release-access.ts" --app <app-slug> --json: itsrulesetsare every ruleset that covers the integration branch, with its rules and bypass list, andorganizationRulesetsthose an organization set. Stop with an explanation when a requirement fails because of an organization ruleset (its reason names anorganization rulesetand says only an organization owner can change it): a repository ruleset’s bypass cannot pass an organization’s rule, so only an organization owner can let the App past it. An organization ruleset no requirement fails on, one that only blocks force pushes and deletion for one, needs nothing.directmode. Plan two repository rulesets on the integration branch and print them. The first carries the branch’s current rules (from its rulesets and its classic branch protection), except blocking force pushes and deletion, and adds the App as a bypass actor (Integration, the App’s id, modealways, not only for pull requests), keeping every bypass actor the branch already had (administrators, for one). The second blocks force pushes and deletion only, with no bypass actor that was not already allowed past them: a bypass actor passes every rule of the ruleset that names it, so those rules must sit where the App is not named. The person creates both rulesets first, then removes the classic protection: the branch is never unprotected, and until the classic protection is gone the App cannot pass it.pull-requestmode. No bypass on the integration branch. The App must be able to create, push and force-pushchangelog.release.branch: a ruleset that covers that branch with a creation, update or force-push rule must leave it out or let the App past.
In both modes, a ruleset on tags (
bun "${CLAUDE_SKILL_DIR}/../../shared/command.ts" -- gh api "repos/<owner>/<repository>/rulesets?targets=tag&includes_parents=true") that restricts creating tags matching<tag_prefix>*must let the App past, or no tag can be made. Check:bun "${CLAUDE_SKILL_DIR}/scripts/release-access.ts" --app <app-slug>exits 0. Exit 1 prints each requirement that fails, with its reasons: fix and run it again. Exit 3 means GitHub withheld something from the login that read it: a repository administrator runs the command and reads theUNKNOWNlines; it is not a reason to change a setting. Inpull-requestmode, until the release branch exists, the check exits 3 withrelease-branchunknown because the branchdoes not exist yet: when that is the onlyUNKNOWNline, the person confirms that no classic branch protection rule (Settings → Branches) has a name pattern matching the release branch, and you go on; the check is run again once the first release run has made the branch (below). -
The workflow. Copy
${CLAUDE_SKILL_DIR}/templates/github/changelog.ymlto.github/workflows/changelog.ymland replace every placeholder its header lists:<jig-owner>: the owner of the Jig repository the plugin comes from;0000000000000000000000000000000000000000 # v0.0.0: the full commit hash of the tag of the plugin version the commands print, with that version as the comment (bun "${CLAUDE_SKILL_DIR}/../../shared/command.ts" -- gh api repos/<jig-owner>/jig/commits/v<version> --jq .sha), on everyuses:of the action;<integration-branch>: the integration branch, everywhere it appears;<workflow that reports a required check>: thename:of each workflow whose jobs report a check the integration branch requires, one list entry each.
The person makes the
checkjob a required check of the integration branch (a required status checkcheck, from GitHub Actions, in the first ruleset). On a push the job is skipped, which counts as passed when the workflow run it was skipped in succeeded (the release run), so it does not hold up a tag. A required check whose workflow runs only on pull requests never reports on the integration branch, so a version would wait for its tag forever: then setci.required_checksin.config/jig.yamlto the checks that do run on the integration branch (drive-prreads the same field, see the configuration reference). While Jig’s repository is private, its owner must allow its actions to be used from the repository’s organization (Jig’s Settings → Actions → Access). Check: on the setup pull request, thecheckjob runs and passes. -
The pull requests already open. List them (
bun "${CLAUDE_SKILL_DIR}/../../shared/command.ts" -- gh pr list --base <integration-branch> --state open). For each, in a worktree of its branch, runcheck.ts; where it says the branch edited the changelog or the version, runbun "${CLAUDE_SKILL_DIR}/scripts/convert.ts" --dry-runand give the result to the pull request’s owner. Convert a branch (§ Converting a branch) only when its owner asks, and leave the result uncommitted for them to review. Check:check.tspasses on each converted branch.
Before the setup pull request merges, run status.ts and show the person the
versions it lists as ready: the first tag run tags those.
Every release heading without its tag on origin is reported, including
older versions. Only releases newer than the newest tag are automatically
eligible; with no release tag, only the newest release is. Older releases have
state manual, trigger no retries and hold no newer version back. Imported
headings are also left for a person to tag by hand.
The person confirms the first run’s list before setup merges. Once the
setup pull request merges, the first push runs the release; read status.ts
afterwards: its release run and its tags say whether the App could push and
tag. In pull-request mode, run bun "${CLAUDE_SKILL_DIR}/scripts/release-access.ts" --app <app-slug> again
once that run has made the release branch: it now reads the branch’s classic
protection, and exits 0.
The commands
Each is a script in ${CLAUDE_SKILL_DIR}/scripts/, run from the repository
root, and prints the plugin version it ran as.
| Command | What it does |
|---|---|
bun "${CLAUDE_SKILL_DIR}/scripts/check.ts" | Options: --base <ref> and --head-ref <name>. The branch check. Every note reads as the release step will read it; the branch leaves the version and the changelog’s open and release sections to the release step; a branch touching a release path carries a note that asks for a release, and one touching a note path carries a note; in Common Changelog also the format’s rules (breaking entries, one-line entries, entries that read the same with their reference appended, one notice, authors). The base is --base, else the base of the pull request in a CI job, else the hosting service’s default branch. A release pull request (where the base’s section sets release.push: pull-request, its head branch is the base’s release.branch) passes instead when the release step, re-run on its merge base with the date of its one new release heading and without after_version, writes exactly its change; a file the release step does not own may differ only when the base sets after_version, and then only line for line by the old version becoming the new one (a whole version, not part of a longer one or of a name), and a file that is not valid UTF-8 text not at all; any other line, an added one naming the version included, is a finding. The head branch is --head-ref, else the pull request’s in a CI job, else the checked-out branch. It needs the full history. Exit 0 clean or not configured, 1 findings (a base that cannot be found included), 2 a usage error. |
bun "${CLAUDE_SKILL_DIR}/scripts/lint.ts" | Options: --json. The whole changelog against the rules of its format alone (changelog.format, else what the file names), each rule cited from the format’s specification: structure, change types and their order where the format sets one, dates, link references, and a section for every version the version files or tags name (§ Checking the whole changelog). Exit 0 clean or not configured, 1 findings, 2 a usage error, an invalid configuration, an unreadable changelog or one outside the repository root, a working directory that is not a git repository’s top level, or version files that disagree with nothing else found. |
bun "${CLAUDE_SKILL_DIR}/scripts/status.ts" | Options: --json. The notes waiting, the version they would make, the notes that wait for a release, and on GitHub whether the last release run on the integration branch succeeded, a release run still going answering first (read through gh; without gh, or on another host, it says it could not read it). It also lists each released version still waiting for its tag, with its state (tag.ts’s plan); without gh or origin that part says unknown. Exit 1 when a note is unreadable, the version files disagree, the last release run failed (a push or manual run of the workflow named release or changelog; its tag and branch-check runs are not release runs) or a releasing commit failed its required checks. |
bun "${CLAUDE_SKILL_DIR}/scripts/convert.ts" --dry-run | Options: --base <ref>, --dry-run and --json. Turns a branch that edited the changelog or the version itself into one with a note (§ Converting a branch). Exit 0 converted, nothing to convert or not configured; 1 a refusal; 2 a usage error. |
bun "${CLAUDE_SKILL_DIR}/scripts/tag.ts" | Options: --json and --rerun. The tag plan: each version owed a tag (a release heading with no tag on origin, whatever newer tags exist), its releasing commit (the first commit on the integration branch’s first-parent line whose changelog has its heading) and its state: ready (every required check on that commit passed, and no older owed version is pending or rerun: versions are tagged oldest first), pending (a check has not finished, or the version waits for an older one), rerun (a cancelled check has its single retry left, or a failed check has retries left under changelog.release.rerun_failed_gates, default 1, 0 disables failed-check retries), failed (left for a person, a re-run GitHub refused included; it holds no newer version back and remains listed until tagged) or manual (outside automatic tagging eligibility; only newer versions than the newest release tag, or the newest release if no tag exists, are automatically tagged; older versions trigger no retries and hold nothing back) or imported (its heading came in one commit with others, so it is tagged by hand if at all). The required checks are ci.required_checks in the integration branch’s own .config/jig.yaml, else the branch’s rules. A neutral or skipped check run passes only when its workflow run succeeded (skipped in a cancelled run is cancelled), or when no workflow run reported it. It never makes a tag; --rerun re-runs each rerun entry’s workflow runs, within its retry budget. Exit 0 a plan (nothing owed and not configured included), 1 a version failed, a refused re-run included (the plan, ready list included, is still printed), 2 a usage error, a shallow clone, no required checks known, or git or GitHub could not answer. |
bun "${CLAUDE_SKILL_DIR}/scripts/release-access.ts" --app <slug> | Options: --app <slug> or --app-id <id>, plus --repo <owner/repo> and --json. Whether the release App can reach the integration branch in the configured mode, and force pushes and deletion stay blocked for it (§ Setup). Reads rulesets (every page) and classic protection; changes nothing. Exit 0 every requirement holds (or not configured), 1 one fails, 3 none fails but one is unknown (GitHub withheld a bypass list: a repository administrator must run it), 2 a usage error or GitHub could not be read. |
bun "${CLAUDE_SKILL_DIR}/scripts/consumer-actions-record.ts" --check | Options: --write or --check. Where changelog.consumer_actions_record names a file, derives the consumer-actions record from the changelog’s released sections (scripts reference): --check fails when the committed file differs, --write regenerates it. The release step rewrites it in every release, so never edit it by hand. Exit 0 fresh, written or not configured, 1 stale or a malformed declaration in a released section, 2 a usage error or an invalid configuration. |
bun "${CLAUDE_SKILL_DIR}/scripts/release.ts" --dry-run | Options: --dry-run, --json and --date YYYY-MM-DD. The release step: writes the waiting notes into the changelog, moves the version, fills the placeholders, rewrites the consumer-actions record where one is configured, runs after_version, deletes the notes. Writes files only; it never commits, tags or pushes. CI runs it after a merge; run it yourself only with --dry-run to preview. Exit 1 for a malformed note or a step that failed (version files that disagree, after_version, no origin for Common Changelog links); 2 for a usage error, an invalid configuration or an unreadable file. |
The check holds a branch to the changelog: section as the base holds it,
not as the branch has it, so a pull request cannot weaken its own check. A
branch that edits the section is checked against the section it proposes as
well, which must be valid; the check prints the change as a note: line for the
reviewer. Where the base has no section, the check says not configured, even
on the branch that adds it.
Configuration
The changelog: section of the repository’s own .config/jig.yaml; every field
is documented, with its default, in the
configuration reference. file is the one
field that turns the skill on. Besides file: format, notes_dir, version,
release_paths, note_paths, placeholders, after_version, unreleased,
authors, tag_prefix, release.push / release.branch,
release.rerun_failed_gates,
consumer_actions and consumer_actions_record. The integration
branch is repository.base_branch, else the hosting service’s default branch.
Outside the section, tag.ts and status.ts read ci.required_checks, the
checks a releasing commit must pass before its tag, from the integration
branch’s .config/jig.yaml only (no person’s file, no environment variable) (else the branch’s rules
decide; with neither, tagging stops: no required checks known).
A placeholder is a text a file must hold before the release knows its
version (since: next): the release step replaces from with to, with
{version} filled in, in the files its files globs match, and never in a
workflow under .github/workflows/.
after_version is a command of the repository’s, run after the version
changes and before the notes are deleted, for files that repeat the version (a
lock file). Its changes join the release. It does not run in a CI job (any of
CI, GITHUB_ACTIONS, GITLAB_CI, BUILDKITE, CIRCLECI, TF_BUILD or
JENKINS_URL set to something but false or 0) unless the job sets
JIG_AFTER_VERSION_IN_CI=1. The skill’s action sets it on its release step
only, in the workflow template’s release job, which holds no key; the job
that pushes runs nothing from the repository. Its
output goes to standard error, so --json output stays the report alone; it
reads no input, and after 30 minutes (JIG_AFTER_VERSION_TIMEOUT_SEC sets
the bound) it is stopped together with every process it started, which fails
the release with the notes still in place. A process it leaves running in the
background when it returns is stopped and fails the release too (not on
Windows), so wait for any background job inside the command.
Formats
changelog.format is keep-a-changelog or common-changelog. When it is not
set, the format is detected: a file with an ## [Unreleased] heading or a link
to keepachangelog.com is Keep a Changelog; one that links common-changelog.org
is Common Changelog; anything else, an empty file included, is refused with a
request to set the field. A Common Changelog file holds only its title and its
releases, so it cannot say which format it is in: set the field for it.
- Keep a Changelog. Release headings are
## [x.y.z] - YYYY-MM-DD. Withunreleased: write(the default) a note withoutreleasegoes under## [Unreleased]after its merge and notes with one become the new version; withwaitit goes into the next release. Comparison links at the end of the file move on; the first release’s link points at its tag. - Common Changelog. No Unreleased section: a note without
releasewaits in the notes folder, andstatus.tslists it as waiting. A release lists**Breaking:**entries first in each section, ends each entry with a reference to the change and its authors, and gets a link definition. Sections go in the order Changed, Added, Removed, Fixed. The links come from theoriginremote (GitHub and GitLab).
Earlier releases are never rewritten in either format.
Versions
changelog.version says where the version lives: files, each { path, key } in
JSON, TOML or YAML (or a plain VERSION file), or { tags: true } for a
repository whose version is only its tags. Unset, it is derived from
package.json (version), pyproject.toml (project.version, else
tool.poetry.version) and Cargo.toml (package.version), each only where it
sits at the root and holds a written version. All files must agree. A file is
edited by replacing only the value at its key, inside the key’s own table, then
parsed again to confirm; a key that is ambiguous, or an edit that changes
anything else, stops the release before anything is written. Versions are plain
major.minor.patch.
What this skill does not do
It writes no entries from commit messages and publishes nothing, and its commands do not commit, tag or push: in CI the action commits the release, and the workflow template’s key-holding jobs push it and make the tags. Setup changes no repository or organization setting itself. Never suppress the check: fix the note.