mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
*Disclaimer: implemented by a Coder Agent using Claude Opus 4.6* --- Adds a lightweight workflow that posts a docs preview link as a PR comment whenever a pull request touches files under `docs/`. The preview is served by coder.com's branch-preview feature at `/docs/@<branch>`. The branch name is URL-encoded so names with slashes (e.g. `user/feature`) produce correct links like `/docs/@user%2Ffeature` instead of broken paths. The comment is created on open and updated in-place on subsequent pushes using the `peter-evans/find-comment` + `create-or-update-comment` pattern already used by the `pr-deploy` workflow. --- Depends on https://github.com/coder/coder.com/pull/708