Repository navigation
Add review classifier callers in dry-run mode - #8604
Merged
Merged
Conversation
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]>
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. |
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]>
akira28
approved these changes
Sep 30, 2026
Mpdreamz
approved these changes
Sep 30, 2026
georgewallace
approved these changes
Sep 30, 2026
georgewallace
left a comment
Contributor
There was a problem hiding this comment.
Thanks for creating this, looking forward to seeing the results.
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.
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 setsdry-run: falseor 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_requesttrigger 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.ymlholds the values from elastic/docs-content-internal#1943 for all nine triggers. It also adds the files fromexclude:indocset.ymltoskip-paths, so a newAGENTS.mddoes not count as a new page. The classifier reads this file frommain, so a PR cannot change the rules that classify it.Manual classification
docs-review-classifier.ymlruns fromworkflow_dispatchwith apr-numberinput anddry-run: trueby default. A dry run writes the tier, the reasons, the planned label changes, and a comment preview to the job summary. Thepull_requesttrigger is present but commented out.Comment and labels
docs-review-classifier-comment.ymlruns after each classification. It posts the comment and setsreview: lightorreview: fullonly when a run hasdry-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 thev1tag.Out of scope: Creating the
review: lightandreview: fulllabels. 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-runselected. 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.ymlon a branch. Then run the workflow from that branch.🤖 Generated with Claude Code
Related to elastic/docs-actions#402