Repository navigation
docs: encourage bot to use links when referencing files - #1161
Conversation
Add a "Use Links" subsection to the CI comment formatting guidance so the bot links to repository files, issues, and lines instead of mentioning them as plain text. Closes #1160 Co-Authored-By: Claude <[email protected]>
worktrunk-bot
left a comment
There was a problem hiding this comment.
Minor: the frontmatter description on line 3 still says "PR comment formatting" but the heading was renamed to just "Comment Formatting". Worth updating for consistency:
description: CI environment rules for GitHub Actions workflows. Use when operating in CI — covers security, CI monitoring, and comment formatting.
|
yes but encourage permalinks, especially for lines |
Use commit SHA URLs instead of blob/main/... links so references stay valid when files move or lines shift. Also fixes frontmatter description to match the renamed heading. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Updated to encourage permalinks (commit SHA URLs) over branch-based |
worktrunk-bot
left a comment
There was a problem hiding this comment.
CI is red — lint and test (linux) both fail on the lychee link checker. The example permalink URLs use a nonexistent commit SHA (ab1c2d3), producing 404s:
[.claude/skills/running-in-ci/SKILL.md]:
[404] https://github.com/max-sixty/worktrunk/blob/ab1c2d3/docs/content/hook.md
[404] https://github.com/max-sixty/worktrunk/blob/ab1c2d3/src/cli/mod.rs#L42
Two options to fix:
- Replace
ab1c2d3with a real commit SHA (e.g., the current main HEAD) — straightforward but these could go stale if files move - Add a lychee exclusion for the fake SHA pattern — keeps the examples as pure illustrations
Option 2 is probably cleaner since these are instructional examples, not links anyone would click.
|
@worktrunk-bot CI is failing due to lychee detecting 404s on the example permalink URLs in
See the review comment for details. |
The example URLs in the running-in-ci skill use a fake commit SHA (ab1c2d3) to demonstrate permalink formatting. Add a lychee exclusion so the link checker doesn't 404 on these instructional examples. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Keep blob/main/ in the example links (which pass lychee validation) while the surrounding text instructs the bot to prefer permalinks with commit SHAs, especially for line references. Co-Authored-By: Claude Opus 4.6 <[email protected]>
The example URLs now use blob/main/ (which pass lychee), so the ab1c2d3 exclusion added by the parallel fix is no longer needed. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Added a lychee exclusion for the illustrative CI is green across all platforms. |
Summary
running-in-ciskill's comment formatting guidanceCloses #1160
Test plan
docs/content/hook.md) instead of plaindocs/content/hook.mdon the next issue triage🤖 Generated with Claude Code