fix(script): add worktree mode to annotation check (#11842)

* fix(script): add worktree mode to annotation check

* fix(script): limit worktree annotation check to local changes
This commit is contained in:
Mohammad Javad Naderi
2026-07-21 18:01:35 +03:30
committed by GitHub
parent 8465c1d749
commit 232d7f2c61
4 changed files with 183 additions and 13 deletions
@@ -97,10 +97,10 @@ registerKiloFeature(app)
After editing shared files or marker comments, run:
```bash
bun run script/check-opencode-annotations.ts
bun run script/check-opencode-annotations.ts --worktree
```
If the PR uses a non-default comparison base, pass the correct base ref:
If checking committed PR changes against a non-default comparison base, pass the correct base ref without `--worktree`:
```bash
bun run script/check-opencode-annotations.ts --base <base-ref>