From 965671a8263769274e1e641372e0353150f7a3dc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 14 Dec 2025 01:48:12 +0000 Subject: [PATCH 1/3] Initial plan From f75be268b00404b49cf13f9c0fa8d7b47c51e266 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 14 Dec 2025 01:53:13 +0000 Subject: [PATCH 2/3] =?UTF-8?q?PR=20#18=E3=81=AElink-check=E6=A9=9F?= =?UTF-8?q?=E8=83=BD=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: goataka <36522098+goataka@users.noreply.github.com> --- .github/workflows/link-check.yml | 49 ++++++++++++++++++++++++++++++++ SETUP.md | 9 ++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/workflows/link-check.yml diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml new file mode 100644 index 0000000..d98e254 --- /dev/null +++ b/.github/workflows/link-check.yml @@ -0,0 +1,49 @@ +name: リンクチェック + +# 毎月1日の午前9時(JST)に実行(UTC 0時) +on: + schedule: + - cron: '0 0 1 * *' + # 手動実行も可能 + workflow_dispatch: + +jobs: + link-check: + runs-on: ubuntu-latest + permissions: + contents: read + issues: write + + steps: + # リポジトリをチェックアウト + - name: Checkout repository + uses: actions/checkout@v4 + + # リンクチェックを実行 + - name: Link Checker + uses: lycheeverse/lychee-action@v1 + with: + # public/ディレクトリ内のMarkdownファイルをチェック + args: --verbose --no-progress 'public/**/*.md' + # 壊れたリンクが見つかった場合は失敗とする(Issueで通知) + fail: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # リンクチェック結果をアーティファクトとして保存 + - name: Upload link check results + if: always() + uses: actions/upload-artifact@v4 + with: + name: link-check-results + path: lychee/out.md + retention-days: 30 + + # 壊れたリンクが見つかった場合にIssueを作成 + - name: Create Issue From File + if: failure() + uses: peter-evans/create-issue-from-file@v5 + with: + title: リンクチェックで壊れたリンクが検出されました + content-filepath: ./lychee/out.md + labels: bug diff --git a/SETUP.md b/SETUP.md index b13db7d..8dbcd89 100644 --- a/SETUP.md +++ b/SETUP.md @@ -49,3 +49,12 @@ - MD013: 行の長さ制限(Qiita記事では長い行が一般的なため) - MD033: HTML使用(Qiita記事ではHTMLタグが使用されることがあるため) - MD041: 最初の行は見出しであるべき(Qiitaの記事にはfrontmatterがあるため) + +### リンクチェック + +記事内のリンクが正しく機能しているかを自動的にチェックします。 + +- **自動実行**: 毎月1日の午前9時(JST)に自動実行 +- **手動実行**: GitHubリポジトリの Actions タブから「リンクチェック」ワークフローを選択し、「Run workflow」ボタンをクリック +- **通知**: 壊れたリンクが見つかった場合は、自動的にIssueが作成されます(bugラベル付き) +- **ログ保存**: チェック結果はアーティファクトとして30日間保存されます From 9e0d78bce43b673ae7fe215dfa6faad4b112d7bc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 14 Dec 2025 02:51:21 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=E3=83=AA=E3=83=B3=E3=82=AF=E3=83=81?= =?UTF-8?q?=E3=82=A7=E3=83=83=E3=82=AF=E3=81=AE=E5=AE=9F=E8=A1=8C=E9=A0=BB?= =?UTF-8?q?=E5=BA=A6=E3=82=92=E5=9B=9B=E5=8D=8A=E6=9C=9F=E3=81=94=E3=81=A8?= =?UTF-8?q?=EF=BC=881,4,7,10=E6=9C=88=EF=BC=89=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: goataka <36522098+goataka@users.noreply.github.com> --- .github/workflows/link-check.yml | 4 ++-- SETUP.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml index d98e254..b69c445 100644 --- a/.github/workflows/link-check.yml +++ b/.github/workflows/link-check.yml @@ -1,9 +1,9 @@ name: リンクチェック -# 毎月1日の午前9時(JST)に実行(UTC 0時) +# 1,4,7,10月の1日の午前9時(JST)に実行(UTC 0時) on: schedule: - - cron: '0 0 1 * *' + - cron: '0 0 1 1,4,7,10 *' # 手動実行も可能 workflow_dispatch: diff --git a/SETUP.md b/SETUP.md index 8dbcd89..254430a 100644 --- a/SETUP.md +++ b/SETUP.md @@ -54,7 +54,7 @@ 記事内のリンクが正しく機能しているかを自動的にチェックします。 -- **自動実行**: 毎月1日の午前9時(JST)に自動実行 +- **自動実行**: 1,4,7,10月の1日の午前9時(JST)に自動実行 - **手動実行**: GitHubリポジトリの Actions タブから「リンクチェック」ワークフローを選択し、「Run workflow」ボタンをクリック - **通知**: 壊れたリンクが見つかった場合は、自動的にIssueが作成されます(bugラベル付き) - **ログ保存**: チェック結果はアーティファクトとして30日間保存されます