Introduce link check on pull requests

オープン
#1,165 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
github-actions
領域
ci-cd

調査の方向性

まず、既存のスケジュール実行される Lychee GitHub Action workflow と、lycheeverse/lychee-action#17 で議論されている回避策を確認します。通常のリンクチェックを妨げずに、変更された pull request ファイルをどのようにチェックできるかを判断します。.lycheeignore に記載されたリンクの扱いも含みます。完了条件は、スケジュール実行されるチェックが引き続き機能しながら、pull request が壊れたリンクを報告することです。

索引モデルが issue の本文から書いたものです。

説明

Occasionally, broken links get introduced into the site, which we detect via a scheduled link check sometime they are included. It would be preferable to not introduce them at all.

To avoid this, we could check the files modified in pull request, in addition to having a regular scheduled link check.

If successful, we could also use this approach for other sites that we maintain.

Considerations:

  • The Lychee GitHub Action that we use doesn't have a built-in feature for this to dete; though there are scripted workarounds, see lycheeverse/lychee-action#17
  • Sometimes links aren't broken, but simply blocked because the site blocks the GitHub Actions runner and/or the Lychee client. The fix then is to add the link to the .lycheeignore, which is less obvious. Might this be extra confusion for pull request authors?
主要言語
Python
スター
48
フォーク
10
平均マージ
1日 12時間
マージ済み PR(30日)
11

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

opensafely/documentation のほかの issue

opensafely/documentation の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。