Skip to content

feat(facts): take closed issue numbers from the text the model reads, at every depth - #293

Merged
goldbarth merged 1 commit into
mainfrom
feat/issue-numbers-at-every-depth
Sep 30, 2026
Merged

goldbarth merged 1 commit into
mainfrom
feat/issue-numbers-at-every-depth

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Closes #258

  • Why: factBase.depth: title-description-and-issues read no issue. It filled linkedIssues with the numbers after closes, fixes or resolves, and the model read the same text as at title-and-description. The name promised the issue's content. The decision to dissolve the depth, with its reasons, is recorded in title-description-and-issues reads no issue #258.
  • depth says only what the model reads: title-only or title-and-description.
  • The closed issue numbers come from that same text, at every depth: title and description by default, the title alone at title-only. A number the model reads is a number the rule-based check accepts, so a rendering that keeps #12 from Closes #12 is no longer flagged at the default depth.
  • The old value stays accepted: title-description-and-issues, full and issues read as title-and-description, so an existing chartula.yaml keeps working. A configuration value is a public surface.
  • Reading the issues themselves stays out: it would make user bug reports a fact source, cost a request per issue (sidebar links only through GraphQL), and put more authored text into changelog.json (changelog.json is meant to be published but carries every pull request description in full #260).
  • changelog.json keeps schemaVersion: 1: linkedIssues keeps its meaning, the numbers the source closes, and is now filled at the default depth too. provenance.factBaseDepth loses a value it could hold. changelog-json.md says both, and that older files hold the numbers only at the old depth.
  • Docs: what-goes-into-a-release.md (the table and the old value), configuration.md (values, aliases, example), changelog-json.md, writing-pull-requests.md, chartula.example.yaml.

Verified end to end, no tokens: the built binary with factBase.depth: title-description-and-issues in chartula.yaml, GitHub and the model a local stub. The run goes through without a configuration error, and its run record holds "factBaseDepth": "title-and-description".

Tests: FactBaseDepthTests (the default keeps the description and the issue it closes; title-only keeps an issue the title closes, not one in the description), FactBaseDepthParserTests (the old value and its aliases read as title-and-description), FactBaseBuilderTests (the default depth fills linkedIssues), configuration and provenance round trips for the two depths. Full suite 880 passing, build without warnings, dotnet format clean.

@goldbarth goldbarth self-assigned this Sep 30, 2026
@goldbarth
goldbarth merged commit 7b61f35 into main Sep 30, 2026
4 checks passed
@goldbarth
goldbarth deleted the feat/issue-numbers-at-every-depth branch September 30, 2026 12:08
goldbarth added a commit that referenced this pull request Oct 7, 2026
Follows #344. Step 1 of `docs/development/releasing.md`.

- **Why now:** the launch points are merged, and the binary people
install is still `0.1.0-preview.3`, which has none of them. The
announcement needs a release that holds what the README and the docs on
`main` describe.
- **What ships since preview.3,** 63 commits:
- a first run: `chartula doctor` (#295, grouped in #341), `chartula
--version` (#286), a free `preview` (#292), progress while a run works
(#297, with a spinner and `--plain` in #340), a first tag from the first
commit with a confirmation for a large range (#282);
- what a release contains: commits without a pull request (#291), issue
numbers at every depth (#293), a sentence for a release with nothing for
developers (#307 in #333);
- checks and prompts: pull request text quoted and bounded (#338), no
false flag for a wrapped phrase or a fenced block (#336), flags set
apart from the entries (#331);
- publishing: the token checked before the first model call (#285), a
published release not replaced unless asked (#335);
- the files: `changelog.json` without descriptions and readable as text
(#294, #332).
- **Breaks to state in the notes,** as `docs/versioning.md` asks of a
preview:
- `changelog.json` is schema version 2: a change's `description` is gone
(#294). The run record is schema version 3 and holds the complete facts.
- `generate` stops on a tag whose release is already published;
`--replace-published` restores the old behaviour (#335).
- An option a command does not take stops the run (#301), and
`--whole-history` is gone (#282).
- The terminal output changed form (#340 to #342): the summary's first
line, audience headings in place of `--- Technical ---`, and `doctor`'s
last line. A script that reads those lines needs a look; exit codes and
the files are unchanged.
- The csproj `Version` is the single source; nothing else carries the
number.

**After merge:** tag the merge commit on `main` with `v0.1.0-preview.4`
and push it; `release.yml` builds the draft, `chartula generate --tag
v0.1.0-preview.4` writes the notes into it, and publishing runs
`install.yml`. The pinned `v0.1.0-preview.3` in `docs/ci.md` and
`docs/install.md`, and the template link in the `doctor` samples, move
to the new tag once the release exists, with the changelog pull request
of step 6.

**Verified:** the built CLI prints `chartula 0.1.0-preview.4+<commit>`.

Tests: no test changed. Full suite 1,010 passing, build without
warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

title-description-and-issues reads no issue

1 participant