docs(README.md): improve 'if' clause to detect /pi by knocte · Pull Request #260 · shaftoe/pi-coding-agent-action

1 min read Original article ↗

@knocte

Everywhere in this README.md file where the "command" /pi is
explained, the verb "prefix" is used. So then it is making the
user think that the "bot" will only be activated when /pi is
used at the **beginning** of a github comment if one follows the
samples (i.e. in the Quick Start section).

Therefore, it is better to change these samples to use
`startsWith` instead of `contains`. On top of that, to prevent
the potential (although rare) collision with other possible
commands that the user might have set up, or may set up in the
future (e.g. "/pin yadda yadda", or simply "/ping", etc), it's
safer to add a space after "/pi" in the string: "/pi ".

github-actions Bot pushed a commit that referenced this pull request

Jun 5, 2026
## [2.19.2] - 2026-06-05

### Changed

- fallow driven cleanups (#267)
- **README.md**: improve 'if' clause to detect /pi (#260)
- remove GITHUB_SERVER_URL requirement
- setup monorepo (#259)
- update AGENTS.md for monorepo/orchestrator layout (#264)
- **deps-dev**: update dependencies (#261)
- **deps**: update dependencies (#268)

### Fixed

- **orchestrator**: report provider errors when agent session ends early (#265)
- use correct currency format for comment footer

[2.19.2]: v2.19.1...v2.19.2