ci: run doc-bot automatically on every pull request push - #25481
Open
mshabarov wants to merge 1 commit into
Open
ci: run doc-bot automatically on every pull request push#25481mshabarov wants to merge 1 commit into
mshabarov wants to merge 1 commit into
Conversation
doc-bot ran only when a maintainer assigned vaadin-bot to an already merged pull request. It now runs on opened, reopened, synchronize and ready_for_review, and keeps the documentation pull request it opened in vaadin/docs in step with the source pull request rather than opening a new one per run. Three filters keep it off pull requests that cannot need documentation, cheapest first: paths-ignore in the trigger, a conventional-commit type check on the title (test, ci, refactor, chore, build), and the agent's own classification of the diff. Assigning vaadin-bot stays as the manual override for a pull request the type filter passed over. Whether a push is substantive is decided by git rather than a heuristic: each run analyses the whole pull request, writes onto the existing documentation branch, and stops when git reports no change. Working from the full diff rather than the increment keeps a run cancelled by a newer push from losing work. vaadin/docs is checked out beside the source repository so the agent greps it locally instead of calling the code-search API, and the engine moves from Codex to Claude on the ANTHROPIC_API_KEY secret this repository already uses for claude.yml and diagram-bot. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Contributor
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.



doc-bot ran only when a maintainer assigned vaadin-bot to an already merged pull request. It now runs on opened, reopened, synchronize and ready_for_review, and keeps the documentation pull request it opened in vaadin/docs in step with the source pull request rather than opening a new one per run.
Three filters keep it off pull requests that cannot need documentation, cheapest first: paths-ignore in the trigger, a conventional-commit type check on the title (test, ci, refactor, chore, build), and the agent's own classification of the diff. Assigning vaadin-bot stays as the manual override for a pull request the type filter passed over.
Whether a push is substantive is decided by git rather than a heuristic: each run analyses the whole pull request, writes onto the existing documentation branch, and stops when git reports no change. Working from the full diff rather than the increment keeps a run cancelled by a newer push from losing work.
vaadin/docs is checked out beside the source repository so the agent greps it locally instead of calling the code-search API, and the engine moves from Codex to Claude on the ANTHROPIC_API_KEY secret this repository already uses for claude.yml and diagram-bot.