Repository navigation
Fix the scope checkbox on old AI menus and add scope instructions - #8826
Merged
Merged
Conversation
Menus posted before the label rename in #7947 never parsed as selected, so ticking "Scope the docs work" on them started nothing. The line pattern now matches the stable marker and ignores the label text. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
docs-scope.yml points at this file, but it did not exist, so ScopeBot asked about 8.x versions that these docs do not cover. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Elastic Docs AI PR menuCheck the box to run an AI review for this pull request.
Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team. |
Member
Author
|
@bmorelli25 This fixes one of the issues identified by @vishaangelova. Could you approve? |
technige
approved these changes
Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ticking Scope the docs work on an issue whose AI menu was posted before Aug 13 now starts the check, and ScopeBot gets a short instructions file that limits scope work to 9.x and Serverless.
Why
Visha ticked the box on #7634, #7636, and #7702 and the check never ran. The menu script built its line pattern from the label text, and #7947 renamed that label from
docs-issue-scopetodocs-scope. Menus posted earlier never matched, soselectedstayed false. Separately,docs-scope.ymlpoints at.github/scope-instructions.md, which did not exist. On #7702 ScopeBot asked about 8.17 and 8.18, which these docs do not cover.What
Old menus parse
getLinePatternin.github/scripts/docs_ai_menu.cjsnow matches the stable marker<!-- docs-ai-menu:issue-scope -->and accepts any label text. The next refresh rewrites an old menu in the current format, so the extra Triage and Size lines on old menus disappear.Out of scope: An old menu that is already ticked does not trigger, because the trigger needs an unticked-to-ticked change. Untick and tick the box again, or comment
/scope. The PR AI menu status and docs-content-internal are separate (a sibling PR covers docs-content-internal).Scope instructions
.github/scope-instructions.mdsays that this repository documents Elastic Stack 9.x and Serverless, and that ScopeBot should not ask about or recommend 8.x work unless the issue asks for an 8.x backport. It adds no other rules.Verify
I ran the script from
mainand the script from this branch against the live menu bodies of #7634, #7934, and #8814 with a local Node check, which is not committed. To repeat it, copy those menu comments to files and pass each body toparseMenuStatefrom both versions ofdocs_ai_menu.cjs. The output:A refresh of the old ticked menu keeps the tick and writes the current label with
Status: running.. I did not run the workflows themselves. I have not tested the instructions file with a ScopeBot run.Fixes elastic/docs-eng-team#1032
Generative AI disclosure
Tool(s) and model(s) used: Claude Code (Claude Sonnet 5.5)
🤖 Generated with Claude Code