Visual Studio Code, rebuilt in Rust
Rust
docs(agents): request the bot review only when asked (#76)
Artur Rok33caea8ce7f3
diff --git a/.agents/skills/pr/SKILL.md b/.agents/skills/pr/SKILL.mdindex ce2a5c140d0..de0f8e56585 100644--- a/.agents/skills/pr/SKILL.md+++ b/.agents/skills/pr/SKILL.md@@ -1,11 +1,11 @@---name: pr-description: Open a pull request in VSRustium, or write its title and body. Also asks rokartur-review for review. Wins over the global `pr` skill in this repo.+description: Open a pull request in VSRustium, or write its title and body. Wins over the global `pr` skill in this repo.---# PR-The repo's own version of `~/.agents/skills/pr`: the same title and body rules, plus the remote, the labels and the reviewer this repo uses.+The repo's own version of `~/.agents/skills/pr`: the same title and body rules, plus the remote and the labels this repo uses.## Steps@@ -16,10 +16,10 @@ The repo's own version of `~/.agents/skills/pr`: the same title and body rules,5. Before pushing, read the body as a stranger would: the repo is public, so the body holds no credentials, personal data, local paths outside the repo, or internal links.6. `git push -u vsrustium HEAD` (the remote is `vsrustium`, not `origin`). Write the body into `f=$(mktemp)`, then run `gh pr create --base <base> --title '...' --body-file "$f"`, then `rm "$f"`. Open a real PR, not a draft: review bots skip drafts.7. Judgement labels from [Labels](#labels), if any apply: `gh pr edit <n> --add-label 'a,b'`.-8. Reviewer: `gh pr edit <n> --add-reviewer rokartur-review`, then check it took: `gh pr view <n> --json reviewRequests --jq '[.reviewRequests[].login]'` must list `rokartur-review`. `gh pr edit` prints `ok` even when GitHub drops the request, for example when the account is not a collaborator. The bot reviews the owner's PRs only on this request, and takes itself off the list when its review is posted.-9. Report: the URL, the labels you set, and whether the review request held.+8. Reviewer: none by default. Only when the user asks for the bot's review: `gh pr edit <n> --add-reviewer rokartur-review`, then check it took: `gh pr view <n> --json reviewRequests --jq '[.reviewRequests[].login]'` must list `rokartur-review`. `gh pr edit` prints `ok` even when GitHub drops the request, for example when the account is not a collaborator. The bot reviews the owner's PRs only on this request, and takes itself off the list when its review is posted.+9. Report: the URL, the labels you set, and whether a requested review held.-Done when the PR exists and `reviewRequests` lists `rokartur-review`, or the report says why it does not.+Done when the PR exists and, if a review was asked for, `reviewRequests` lists `rokartur-review` or the report says why it does not.## Labelsdiff --git a/AGENTS.md b/AGENTS.mdindex b7ebb9100a8..ae02343e987 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -36,7 +36,7 @@ GitHub Issues in `rokartur/vsrustium` via `gh`. See `docs/agents/issue-tracker.m### Pull requests-Open every pull request through `.agents/skills/pr/SKILL.md`, the repo's own `pr` skill. It replaces the global one here, because it adds the `vsrustium` remote, the labels the review bot leaves to a person, and the `rokartur-review` review request.+Open every pull request through `.agents/skills/pr/SKILL.md`, the repo's own `pr` skill. It replaces the global one here, because it adds the `vsrustium` remote and the labels the review bot leaves to a person. It asks `rokartur-review` for review only when the user asks.### Triage labels