From 1b312795060ac4c2e3b8dd063a70fd72647d2fcd Mon Sep 17 00:00:00 2001 From: DevCats Date: Wed, 28 Jan 2026 16:02:16 -0600 Subject: [PATCH] chore: update doc-check workflow to prevent unnecessary comments (#21737) This pull request makes a minor update to the documentation check workflow. It clarifies that a comment should not be posted if there are no documentation changes needed and simplifies the comment format instructions. --- .github/workflows/doc-check.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/doc-check.yaml b/.github/workflows/doc-check.yaml index 3bb9122d12..4e68f20135 100644 --- a/.github/workflows/doc-check.yaml +++ b/.github/workflows/doc-check.yaml @@ -186,6 +186,8 @@ jobs: Use \`gh\` to get PR details, diff, and all comments. Check for previous doc-check comments (from coder-doc-check) and only post a new comment if it adds value. + **Do not comment if no documentation changes are needed.** + ## Comment format Use this structure (only include relevant sections): @@ -202,9 +204,6 @@ jobs: ### New Documentation Needed - [ ] \`docs/suggested/path.md\` - [what should be documented] - ### No Changes Needed - [brief explanation - use this OR the above sections, not both] - --- *Automated review via [Coder Tasks](https://coder.com/docs/ai-coder/tasks)* \`\`\`"