Skip to content

Auto-open issue when scheduled lychee finds broken links - #4

Merged
tomqwu merged 1 commit into
mainfrom
lychee-issue-creation
May 7, 2026
Merged

tomqwu merged 1 commit into
mainfrom
lychee-issue-creation

Conversation

@tomqwu

@tomqwu tomqwu commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • link-check-online.yml: lychee runs with fail: false, then peter-evans/create-issue-from-file@v5 opens an issue with the broken-link report when exit_code != 0
  • Workflow gets contents: read + issues: write permissions for the issue creation

Test plan

  • Local scripts/check.sh runs clean across all four tiers
  • CI: four doc-quality jobs pass on this PR
  • After merge: trigger via workflow_dispatch once to confirm the issue-creation path; revert any test issue created

🤖 Generated with Claude Code

Summary:
- link-check-online.yml: lychee runs with fail:false, then create-issue-from-file opens an issue with the broken-link report when exit_code is non-zero
- Workflow gets contents:read + issues:write permissions for the issue creation

Changed files:
- .github/workflows/link-check-online.yml: switch fail:true → fail:false; add issue-creation step gated on lychee exit code; add permissions block

Validation:
- Local scripts/check.sh runs clean across all four tiers (lychee + typos installed)
- Workflow YAML structure mirrors the canonical lychee-action README example

Follow-ups:
- First scheduled run is Sunday at 13:00 UTC; can also trigger manually via workflow_dispatch
- Issues will be labelled link-rot and automated for filtering

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tomqwu
tomqwu merged commit 0a489b4 into main May 7, 2026
4 checks passed
@tomqwu
tomqwu deleted the lychee-issue-creation branch May 7, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant