Skip to content

Run docs review and issue scope automatically - #9281

Open
theletterf wants to merge 4 commits into
mainfrom
auto-docs-review-and-scope
Open

theletterf wants to merge 4 commits into
mainfrom
auto-docs-review-and-scope

Conversation

@theletterf

Copy link
Copy Markdown
Contributor

Docs review and issue scope ran only from the AI menu or a slash command. We want both to run on their own for new work.

This PR adds two triggers:

  • A new docs-review.yml runs the docs review when a non-draft pull request from this repository opens, reopens, or leaves draft. Fork pull requests are skipped, because a pull_request run from a fork gets no token. Converting a pull request to draft cancels a review in progress through caller-level concurrency.
  • docs-scope.yml now also runs on issues: opened, so every new issue gets scoped.

The AI PR menu stays for manual reviews. /scope stays, and /docs-review is new. Both slash commands are limited to owners, members, and collaborators.

Do not merge yet. The callers pin @v1, and the reusable workflows need roles: all so that bot authors and outside issue authors are not skipped. That change is in elastic/docs-actions#449. Merge this PR after a release moves v1.

I tested the same callers in elastic/docs-actions-sandbox: a draft PR is skipped, a non-draft PR gets a review, converting to draft cancels a running review, and a new issue gets scoped.

Related to elastic/docs-eng-team#757
Related to elastic/docs-eng-team#759

🤖 Generated with Claude Code

Run the docs review when a non-draft pull request from this repository opens, reopens, or
leaves draft, and scope every new issue. The AI PR menu and the /scope slash command stay for
manual runs. /docs-review is a new slash command. Both slash commands are limited to owners,
members, and collaborators.

Related to elastic/docs-eng-team#757
Related to elastic/docs-eng-team#759

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 9, 2026

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.

@theletterf
theletterf marked this pull request as ready for review November 10, 2026 15:07
@theletterf
theletterf requested a review from a team as a code owner November 10, 2026 15:07
@theletterf
theletterf requested a review from Mpdreamz November 10, 2026 15:07
theletterf and others added 3 commits November 10, 2026 16:28
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@theletterf

Copy link
Copy Markdown
Contributor Author

This is blocked and pending on docs managers' decision.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant