Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
214 changes: 0 additions & 214 deletions .github/scripts/validate-mermaid.mjs

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ files directly — edit the source `.md` file and regenerate.
| Source (edit this) | Generated (do not edit) | Purpose |
|---|---|---|
| `doc-bot.md` | `doc-bot.lock.yml` | Documentation bot that analyzes a pull request merged into `main` and opens a draft documentation pull request for it in `vaadin/docs`. |
| `diagram-bot.md` | `diagram-bot.lock.yml` | Diagram bot that posts a Mermaid diagram on pull requests whose change is about structure, flow, or ordering. |
| `guidelines-bot.md` | `guidelines-bot.lock.yml` | Guidelines bot that distils recurring code review feedback into `CONVENTIONS.md` and `guidelines/`. |
| _(none — generated automatically)_ | `agentics-maintenance.yml` | Scheduled maintenance job that closes expired discussions, issues, and pull requests created by agentic workflows. Regenerated whenever any agentic workflow uses the `expires` field on a safe-output. |

Expand Down Expand Up @@ -84,40 +83,6 @@ merged pull requests from forks are documented now. A `pull_request` run
from a fork is given no secrets, so those merges used to go silently
undocumented.

### Diagram Bot

`diagram-bot.md` runs once per pull request, on `opened` and on
`ready_for_review`. It reads the diff and the surrounding code, then
decides for itself whether a picture would help the reviewer. Most pull
requests do not get one: the bot only draws when the change is about
structure, flow, or ordering — a rerouted call path, a changed lifecycle,
a hop added or removed, a different shape of data crossing the
client/server boundary. When it decides against a diagram it records the
reason in the run log and leaves the pull request untouched.

The diagram is a Mermaid block, which GitHub renders inline in the
comment. A re-run hides the previous comment instead of stacking another
diagram onto the conversation.

A block that does not parse renders as an error box rather than a
picture, so the bot checks its figure before posting with
`.github/scripts/validate-mermaid.mjs`, which parses it with the same
Mermaid version GitHub uses and reports the line at fault. The script
takes a `.mmd` file, a `.md` file whose fenced `mermaid` blocks it
extracts, or the figure on stdin, and it is useful by hand too:

```bash
node .github/scripts/validate-mermaid.mjs .github/workflows/diagram-bot.md
```

To ask for a diagram on a pull request the bot passed over, add the
`diagram` label. That skips the decision and draws the most useful figure
the change supports.

Like every agentic workflow, it runs only for pull requests from branches
in this repository, opened by users with write access — `gh-aw` gates
both. Pull requests from forks never trigger it.

### Guidelines Bot

`guidelines-bot.md` runs once a week and reads the review comments on every
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
check:
# Eligibility is a cheap `if` pre-filter plus an authoritative repository
# permission check in the job, the same admin/maintain/write rule the other
# comment-triggered bots in this repository (doc-bot, diagram-bot) use.
# comment-triggered bots in this repository (doc-bot) use.
# Requested reviews (comment, review request) only check who asked. Auto
# triggers (opened, ready for review) additionally skip drafts, chore PRs,
# and known bots. Pull request events from forks are skipped, since they
Expand Down
Loading