Skip to content

Add interpolation support and unify substitution logic - #201

Merged
Mpdreamz merged 1 commit into
mainfrom
fix/navigation-title-substitions
Jan 14, 2025
Merged

Mpdreamz merged 1 commit into
mainfrom
fix/navigation-title-substitions

Conversation

@Mpdreamz

Copy link
Copy Markdown
Member

Introduced interpolation functionality for handling string replacements in Markdown. Refactored and centralized substitution logic into a reusable helper, replacing redundant implementations. Updated navigation title and code block parsing to leverage the new interpolation system, ensuring consistency and cleaner code.

Introduced interpolation functionality for handling string replacements in Markdown. Refactored and centralized substitution logic into a reusable helper, replacing redundant implementations. Updated navigation title and code block parsing to leverage the new interpolation system, ensuring consistency and cleaner code.
@Mpdreamz Mpdreamz linked an issue Jan 14, 2025 that may be closed by this pull request
@Mpdreamz
Mpdreamz requested a review from reakaleek January 14, 2025 22:32
@Mpdreamz
Mpdreamz merged commit 2254d10 into main Jan 14, 2025
@Mpdreamz
Mpdreamz deleted the fix/navigation-title-substitions branch January 14, 2025 23:18
Mpdreamz added a commit that referenced this pull request Oct 14, 2026
A backport of an already-squashed backport ends its subject with the original and the release-branch backport, for example "Second (#21) (#201)". Keeping only the last number lost #21 once validation dropped #201. The whole ending is kept now, and validation removes what is not an original.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Mpdreamz added a commit that referenced this pull request Oct 15, 2026
* Bundle the original pull request instead of its backport

When bundling a commit range, a pull request with a label listed in bundle.backports.labels is replaced by the pull request it was backported from. Kibana patch ranges produced no entries before, because backports carry no release note. The original is found through a cherry-pick trailer, commit subjects, the title, or the body, and only a merged pull request on the default branch counts. Repositories without the setting behave as before.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Read every commit, label and original when tracing backports

Review of the backport tracing found five ways it could drop a change or abort. The title no longer narrows the originals when a commit names another one. An oversized number is skipped instead of throwing. The commits and labels of a pull request are read page by page. Validation fails on any GraphQL error except NOT_FOUND.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Count only a subject's trailing reference as a separate original

A subject such as "Follow up on #10" mentions an earlier pull request and is not a cherry-picked change of its own, so it no longer adds #10 as an original. The validation test now injects its error into the validation query and asserts that query ran.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Keep every reference at the end of a cherry-picked subject

A backport of an already-squashed backport ends its subject with the original and the release-branch backport, for example "Second (#21) (#201)". Keeping only the last number lost #21 once validation dropped #201. The whole ending is kept now, and validation removes what is not an original.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Explain that reverts stay in the bundle as themselves

The docs said reverts are never traced, which read as if they were left out of the bundle. They are only not replaced by an original; a revert keeps its own entry.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Trace every labeled backport, reverts included

Skipping titles that start with Revert hid pull requests that belong in the release notes. A labeled pull request is now traced whatever its title. Handling reverts needs a mechanism of its own, so the title check and the title field it needed are removed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch from title frontmatter to H1

2 participants