Skip to content

Fix link checker to only create issues for broken links#138

Merged
kelly-sovacool merged 2 commits intomainfrom
copilot/fix-link-checker-report
Feb 13, 2026
Merged

Fix link checker to only create issues for broken links#138
kelly-sovacool merged 2 commits intomainfrom
copilot/fix-link-checker-report

Conversation

Copy link
Contributor

Copilot AI commented Feb 13, 2026

The link checker workflow was creating issues for any non-zero exit code, including configuration errors. It should only create issues when links are actually broken.

Changes

  • Remove invalid --base . parameter causing lychee configuration errors
  • Change issue creation condition from exit_code != 0 to exit_code == 2

Exit Code Semantics

# Before: creates issue for any error
if: steps.lychee.outputs.exit_code != 0

# After: creates issue only for broken links (exit code 2)
if: steps.lychee.outputs.exit_code == 2

Lychee exit codes: 0 = success, 1 = config/runtime errors, 2 = broken links, 3 = config file errors

Original prompt

This section details on the original issue you should resolve

<issue_title>Link Checker Report</issue_title>
<issue_description>Full Github Actions output
</issue_description>

<agent_instructions>The gha workflow (https://github.com/CCBR/Tools/blob/89e91c82c13ab35ac58ebbb1ed913d4a76868113/.github/workflows/check-links.yml) opened this issue even though there were no errors/warnings. I want it to not open the issue if there are not problems with links</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- Remove invalid --base parameter that was causing configuration errors
- Change condition to only create issue when exit_code == 2 (broken links)
- Exit code 1 (config errors) and 3 (config file errors) will no longer trigger issues

Co-authored-by: kelly-sovacool <17768269+kelly-sovacool@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix link checker report behavior in workflow Fix link checker to only create issues for broken links Feb 13, 2026
Copilot AI requested a review from kelly-sovacool February 13, 2026 17:19
@kelly-sovacool kelly-sovacool marked this pull request as ready for review February 13, 2026 17:32
@kelly-sovacool
Copy link
Member

@copilot dispatch the check-links workflow on this branch

Copy link
Contributor Author

Copilot AI commented Feb 13, 2026

@copilot dispatch the check-links workflow on this branch

I don't have the ability to dispatch GitHub Actions workflows. You can trigger the check-links workflow manually using one of these methods:

Via GitHub UI:

  1. Go to Actions tab → select "links" workflow → click "Run workflow" → select this branch

Via GitHub CLI:

gh workflow run check-links.yml --ref copilot/fix-link-checker-report

The workflow is already configured with workflow_dispatch trigger, so it's ready to be manually run.

@kelly-sovacool kelly-sovacool merged commit de9271f into main Feb 13, 2026
8 of 10 checks passed
@kelly-sovacool kelly-sovacool deleted the copilot/fix-link-checker-report branch February 13, 2026 18:03
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.

Link Checker Report

2 participants