Skip to content

Add review classifier callers in dry-run mode - #8604

Merged
theletterf merged 2 commits into
mainfrom
review-classifier-callers
Sep 30, 2026
Merged

theletterf merged 2 commits into
mainfrom
review-classifier-callers

Conversation

@theletterf

@theletterf theletterf commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

This PR connects docs-content to the review classifier from elastic/docs-actions#382 in dry-run mode only, and adds the rules file .github/review-classifier.yml. Maintainers can classify one PR at a time from the Actions tab. Nothing is posted on PRs until someone sets dry-run: false or turns on the automatic trigger.

Prompt summary: Implement the light or full review classification that elastic/docs-content-internal#1943 specifies. Start with a dry-run mode that targets one PR, and keep the automatic pull_request trigger commented out. Keep the rules in this repository, so the docs team can maintain them.

Why

The team wants to see the classifier results on real docs-content PRs, and possibly change the rules, before it comments on every PR. A backtest on 185 recent PRs gives 53% full reviews with the rules from the issue, so the rules possibly need changes first. A rules file in this repo lets the team make those changes with a normal docs-content PR.

What

Rules file

.github/review-classifier.yml holds the values from elastic/docs-content-internal#1943 for all nine triggers. It also adds the files from exclude: in docset.yml to skip-paths, so a new AGENTS.md does not count as a new page. The classifier reads this file from main, so a PR cannot change the rules that classify it.

Manual classification

docs-review-classifier.yml runs from workflow_dispatch with a pr-number input and dry-run: true by default. A dry run writes the tier, the reasons, the planned label changes, and a comment preview to the job summary. The pull_request trigger is present but commented out.

Comment and labels

docs-review-classifier-comment.yml runs after each classification. It posts the comment and sets review: light or review: full only when a run has dry-run: false.

Stack: 2 of 2, depends on elastic/docs-actions#382. The callers use @v1, so this PR stays a draft until that PR merges and a docs-actions release moves the v1 tag.

Out of scope: Creating the review: light and review: full labels. The comment workflow tries to create them on the first run that is not a dry run.

Verify

After the docs-actions release, open Actions > Review classification > Run workflow. Enter a PR number and keep dry-run selected. Check that the job summary shows the tier and the comment preview, and that the PR gets no comment or labels.

To test a rule change before it merges, push the change to .github/review-classifier.yml on a branch. Then run the workflow from that branch.

🤖 Generated with Claude Code

Related to elastic/docs-actions#402

The callers run the docs-actions review classifier on one PR at a time
from workflow_dispatch. The team can then check the results before the
automatic pull_request trigger is turned on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@theletterf theletterf added the ci label Sep 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

The docs team can now change thresholds, turn off triggers, or add custom
path rules in this repo, with no docs-actions release.

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

@georgewallace georgewallace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for creating this, looking forward to seeing the results.

@theletterf
theletterf added this pull request to the merge queue Sep 30, 2026
Merged via the queue into main with commit b1c0ec1 Sep 30, 2026
13 checks passed
@theletterf
theletterf deleted the review-classifier-callers branch September 30, 2026 13:46
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.

4 participants