archivematica / Issues

Issues repository for the Archivematica project
GNU Affero General Public License v3.0
15 stars 1 forks source link

Problem: linkcheck checks all links, even if unrelated to current PR #1690

Open eviau-artefactual opened 1 month ago

eviau-artefactual commented 1 month ago

Current behavior

As it is, linkcheck outputs all outdated URLs, including those in files unrelated to the current PR.

An example of this: https://github.com/artefactual/archivematica-docs/actions/runs/9007494522/job/24747392272?pr=461#step:8:1

Expected behavior

That linkcheck outputs only links in files that were changed, and if possible, only links in actual commits.

Potential solution

A potential solution was proposed in https://github.com/artefactual/archivematica-docs/pull/463 - but it might introduce too much complexity for the purpose... The best option would be to manage this at the pre-commit level, locally.

Related issue: https://github.com/archivematica/Issues/issues/1689