Repository navigation
Collapse the label tables in the changelog labels comment - #4610
Conversation
|
💚 CLA has been signed |
|
@Mpdreamz, here is some context for this PR. It comes from the same Kibana request as elastic/docs-actions#442. That PR stops the release notes checks and the comment on draft PRs. While we looked at that request, the "labels needed" comment also seemed long for repositories that map many product and area labels, such as Kibana. An example is elastic/kibana#300907. This PR collapses only the product and area tables, and the instruction above each table stays visible. The type labels are a short inline list, so they stay as they are. The two PRs are independent and can merge in any order. We could not build or run the tests in the session that made this change, because its network policy blocked the .NET SDK download. CI is the first full check of this change. Generated by Claude Code |
Repositories such as Kibana map dozens of product and area labels, so the tables made the "labels needed" comment long. Each table now sits in a collapsed block under a visible instruction. The type labels stay inline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0198Z15QXfthJ2QgGztrDHtu
65f5aab to
215ea27
Compare
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4610/ |
The `lint` check failed because curb splits a fluent assertion chain over several lines. This commit applies that format to the new test. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The "labels needed" changelog comment now collapses the product and area label tables. Authors see the instruction and open a table only when they need it.
Affects: Release notes
Prompt summary: A Kibana engineer found the changelog comment on their pull requests noisy. The ask is to keep the comment short by putting the tables of available labels in an expandable section.
Why
The comment lists every product and area label that
changelog.ymlmaps. Repositories such as Kibana map dozens of these labels, so the tables make the comment long and hard to scan. The author usually needs only the headline and one label.What
Collapsed label tables
Each product and area table is in a
<details>block, with a "Show the product labels" or "Show the area labels" summary. The instruction above each table stays visible. A blank line surrounds the table, because GitHub renders a table inside<details>only with those blank lines.Type labels stay visible
The type labels are a short inline list, not a table, so they are not collapsed.
Verify
Out of scope: elastic/docs-actions#442 stops the same comment on draft pull requests. The two changes are independent.
Generated by Claude Code