feat: Docs CI(markdownlint・Mermaid lint)追加#132
Merged
LevelCapTech merged 6 commits intomainfrom Mar 7, 2026
Merged
Conversation
Docs CI導入に向けた進め方を共有するため。 事前確認を踏まえた最小変更の計画を明確化した。 Co-authored-by: LevelCapTech <99854263+LevelCapTech@users.noreply.github.com>
MarkdownlintとMermaid図検証をReviewdogで通知するため。 package-lock.jsonの誤差分を戻し、設定とワークフローを追加した。 Co-authored-by: LevelCapTech <99854263+LevelCapTech@users.noreply.github.com>
reviewdogのセットアップを公式アクションに切り替えるため。 lintツールのバージョンを固定し、コメント用トークンを設定した。 Co-authored-by: LevelCapTech <99854263+LevelCapTech@users.noreply.github.com>
markdownlintの結果を確実にreviewdogへ渡すため。 Mermaid図検証の出力詳細とカウンタ名を明確化した。 Co-authored-by: LevelCapTech <99854263+LevelCapTech@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Docs CI with markdownlint and Mermaid lint
feat: Docs CI(markdownlint・Mermaid lint)追加
Mar 6, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Docs(docs/**/*.md と .github/**/*.md)の Markdown / Mermaid 図の品質維持を目的に、lint を GitHub Actions 化して reviewdog の PR コメントとして可視化するための変更です。
Changes:
- markdownlint を実行し、reviewdog で PR レビューコメントとして通知する workflow を追加
- Markdown から Mermaid ブロックを抽出して
mmdcで検証し、reviewdog で通知する workflow を追加 - markdownlint の設定として MD013(長文行)/MD033(HTMLタグ)を無効化
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/markdownlint.yml |
Markdown lint を CI 実行し、reviewdog で PR コメント化 |
.github/workflows/mermaid-lint.yml |
Mermaid ブロック抽出→mmdc 検証→reviewdog コメント化 |
.markdownlint.json |
MD013/MD033 を無効化して既存Docs運用に合わせる |
LevelCapTech
approved these changes
Mar 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要(Summary)
Docs の Markdown と Mermaid 図の品質維持を目的に、markdownlint と Mermaid 構文検証を CI 化し、reviewdog で PR コメントとして可視化する変更です。
背景・経緯(Context / Facts)
docs/**/*.md、GitHub docs は.github/**/*.mdに存在し、lint CI は未導入変更のインデックス(どのファイルをどう変えたか)
diffの目次(ファイル×変更概要)を下記のテーブルに記載します。
設計判断 / トレードオフ
適用後に観測できる結果(観測ログ/確認ログ)
確認ログ(何を実行/何を目視したか)を下記のテーブルに記載します。
npm test実行ログnpx markdownlint-cli実行ログエラーハンドリング・境界値の考慮事項(Error Handling / Boundary Conditions)
result.txtが空の場合は reviewdog をスキップ影響範囲(どこに影響しないと言える根拠)
.github/workflowsと設定ファイルのみ変更依存関係とコストへの影響(Dependencies / Cost Impact)
スコープ境界(触っていい/ダメ、非目標)
推論せず“質問に落とす”ための質問票
実装と確認のログ(何を触って、何を確認したか)
npm test,npx markdownlint-cli "docs/**/*.md" ".github/**/*.md"実行区分(AIが実行したこと/人間が追加で行うこと)
npm test/npx markdownlint-cli生成コードの利用方法(どうやって使うか)
形式A: テーブル
形式B: コードサンプル
セキュリティチェック (Security Self-Check)
補足(Notes)
コードレビューフィードバック対応(Review Feedback Response)
このセクションは「追記」で管理します。
追記(今回分)
既存ログ(前回まで)
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/reviewdog/reviewdog/releases/latest/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This section details on the original issue you should resolve
<issue_title>[BLIND] Docs CI(markdownlint + Mermaid lint + reviewdog)を導入する</issue_title>
<issue_description># [BLIND] Docs CI(markdownlint + Mermaid lint + reviewdog)を導入する
依頼の要点
リポジトリの Markdown ドキュメント品質を維持するため
Docs CI を GitHub Actions に導入する。
導入する CI
Markdown lint と Mermaid lint の結果は
reviewdog により PR コメントとして表示する。
Mermaid 図は Markdown 内に埋め込まれているため
Markdown から Mermaid ブロックを自動抽出し構文検証する。
本 Issue は BLIND Issue として作成されており
本文のみで CI を実装できる。
対象 Markdown
作成する workflow
1 Markdown Lint CI
目的
Markdown lint を CI に導入する。
lint 結果は reviewdog により PR コメントとして表示する。
workflow
実装例(そのまま使用可能)
markdownlint 設定
作成ファイル
内容
{ "MD013": false, "MD033": false }理由
2 Mermaid Lint CI
目的
Markdown 内 Mermaid 図の構文エラーを CI で検出する。
処理フロー
1 Markdown を取得
2 Mermaid block を抽出
3
.mmdファイル生成4 mermaid-cli で検証
5 reviewdog で PR コメント
Mermaid block 例
Mermaid workflow
実装例(そのまま使用可能)
Mermaid CI フロー
reviewdog コメント例
PR に次のようなコメントが表示される。
変更可能範囲
変更可