Skip to content

Port filename PR identity - #3941

Merged
lcawl merged 4 commits into
mainfrom
changelog-registry-followup
Aug 31, 2026
Merged

Port filename PR identity#3941
lcawl merged 4 commits into
mainfrom
changelog-registry-followup

Conversation

@lcawl

@lcawl lcawl commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Why

#3911 tried to fix stale CDN pool listings by bringing back changelog/{org}/{repo}/{branch}/registry.json. That approach was rejected (review): discovery should be PR-keyed GETs, not an unbounded per-branch index. That architecture is already on main (#3922#3930).

One keep-item from that review did not land: local --prs matching must use the same identity as git-ref. Local --prs still joined only on YAML prs:. After an author strips prs: from a PR-numbered file (12345.yaml), local --prs missed it even though the file name carries the PR. CDN --prs was already fine (it probes {n}.yaml with IncludeAll).

What

Share filename PR identity with local --prs (and any matcher path that uses ChangelogEntryMatcher):

  • Leading dash-separated numeric filename segments (same algorithm as git-range) or YAML prs:
  • Empty/prs:-stripped {n}.yaml still matches local --prs
  • Leftover hyphenated / timestamp-prefix names may also match by leading digits (git-range parity); use --files for precise path selection
  • Extra PRs are scrubber markers ({n}.yaml with link: {canonical}), not combined 123-456.yaml filenames

Git-range already had this logic; it now uses the shared helper instead of a private copy.

CDN --prs is unchanged: it still probes {n}.yaml directly. This PR does not restore pool registry.json reconcile.

Generative AI disclosure

  1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?

    • Yes
  2. Tool(s) and model(s) used: Cursor Grok 4.5

@lcawl
lcawl requested review from a team as code owners August 26, 2026 19:04
@lcawl
lcawl requested review from Mpdreamz and technige August 26, 2026 19:04

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes: filename-based --prs matching currently accepts timestamp-slug numeric prefixes, which causes mismatches against the intended behavior and documentation for PR filtering.


What is this? | From workflow: PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Comment thread src/services/Elastic.Changelog/Bundling/ChangelogEntryMatcher.cs
Comment thread src/services/Elastic.Changelog/Bundling/ChangelogPrIdentity.cs Outdated
@lcawl
lcawl force-pushed the changelog-registry-followup branch from ec718a5 to 90fec96 Compare August 27, 2026 19:14
@lcawl
lcawl marked this pull request as ready for review August 27, 2026 19:17
@lcawl
lcawl enabled auto-merge (squash) August 31, 2026 15:55
@github-actions

Copy link
Copy Markdown

Docs preview (local build)

Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/3941/

Sample changed pages:

@lcawl
lcawl merged commit 0334dc1 into main Aug 31, 2026
32 checks passed
@lcawl
lcawl deleted the changelog-registry-followup branch August 31, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants