diff --git a/.github/workflows/release.yml b/.github/workflows/agent-release.yml similarity index 100% rename from .github/workflows/release.yml rename to .github/workflows/agent-release.yml diff --git a/.github/workflows/review.yml b/.github/workflows/agent-review.yml similarity index 100% rename from .github/workflows/review.yml rename to .github/workflows/agent-review.yml diff --git a/.github/workflows/roll.yml b/.github/workflows/agent-roll.yml similarity index 100% rename from .github/workflows/roll.yml rename to .github/workflows/agent-roll.yml diff --git a/.github/workflows/task.yml b/.github/workflows/agent-task.yml similarity index 100% rename from .github/workflows/task.yml rename to .github/workflows/agent-task.yml diff --git a/.github/workflows/triage.yml b/.github/workflows/agent-triage.yml similarity index 81% rename from .github/workflows/triage.yml rename to .github/workflows/agent-triage.yml index aa39150..fb55521 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/agent-triage.yml @@ -1,6 +1,5 @@ -# Hands the issue to the Playwright bot when a maintainer applies agent-triage, agent-implement or -# agent-task. Nothing else of the bot lives in this repo. Apply the label again to start another -# run. +# Hands the issue to the Playwright bot when a maintainer applies agent-triage or agent-implement. +# Nothing else of the bot lives in this repo. Apply the label again to start another run. name: "Agent: triage" on: @@ -15,8 +14,7 @@ jobs: if: >- github.repository_owner == 'microsoft' && ( github.event.label.name == 'agent-triage' || - github.event.label.name == 'agent-implement' || - github.event.label.name == 'agent-task') + github.event.label.name == 'agent-implement') runs-on: ubuntu-latest timeout-minutes: 5 steps: diff --git a/AGENTS.md b/AGENTS.md index b9bfaf3..7a7c152 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -15,12 +15,15 @@ tools that the commands run. `npm view @playwright/cli@ dependencies.playwright-core` prints the alpha of a release. The pin is older than the tip of upstream `main`. - **Where a fix goes:** most bugs and features are upstream. Work in a checkout of - `microsoft/playwright` next to this repo, `../playwright`, as its `AGENTS.md` says. The tests of + `microsoft/playwright`, `~/code/playwright`, as its `AGENTS.md` says. The tests of the CLI are its `tests/mcp/cli-*.spec.ts`, with the `cli` fixture of `tests/mcp/cli-fixtures.ts`, and `npm run test-playwright-cli` runs them. Fix here only what this repo owns. - **How a fix arrives:** with a roll, after `playwright@next` has the upstream commit. The upstream PR says `Refs ` for an issue of this repo, and the roll PR here says `Fixes`. +Paths such as `~/code/playwright` +in this file assume that you check the repos out in `~/code`. + ## Build and test ```bash @@ -72,14 +75,13 @@ See [.claude/skills/dev/roll.md](.claude/skills/dev/roll.md) and [.claude/skills ## Bots The Playwright bot does the work below. It opens pull requests as the -`microsoft-playwright-automation` app. [triage.yml](.github/workflows/triage.yml) and -[review.yml](.github/workflows/review.yml) hand it the labels: +`microsoft-playwright-automation` app. [agent-triage.yml](.github/workflows/agent-triage.yml) and +[agent-review.yml](.github/workflows/agent-review.yml) hand it the labels: - `agent-triage` on an issue: finds the cause and fixes the issue if it can. A fix in `microsoft/playwright` opens as a draft PR there. - `agent-implement` on an issue: implements what the issue and the maintainers' comments say. -- `agent-task` on an issue: does what the issue asks, with the skills of this repo. - `agent-review` on a PR: revises the PR, as the maintainers' review comments say. -- [roll.yml](.github/workflows/roll.yml) and [release.yml](.github/workflows/release.yml), from the Actions tab: they hand a task to the bot. Roll Playwright to `playwright@next`, as the roll skill says. Or open the `chore: mark v` PR with the release notes as its description, as the release skill says. Copy the notes into the release draft. -- [task.yml](.github/workflows/task.yml), from the Actions tab: hands the bot the task that you type, with the skills of this repo. +- [agent-roll.yml](.github/workflows/agent-roll.yml) and [agent-release.yml](.github/workflows/agent-release.yml), from the Actions tab: they hand a task to the bot. Roll Playwright to `playwright@next`, as the roll skill says. Or open the `chore: mark v` PR with the release notes as its description, as the release skill says. Copy the notes into the release draft. +- [agent-task.yml](.github/workflows/agent-task.yml), from the Actions tab: hands the bot the task that you type, with the skills of this repo. Apply a label again to start another run.