feat(EmailingEssay): 移行の件名復元に第 3 経路を足し、重複の穴を塞ぐ(v1.2.2) #359
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
| name: Documentation Check | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - '**/*.md' | |
| - 'EpisodicRAG/.claude-plugin/*.json' | |
| - '.github/workflows/docs-check.yml' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - '**/*.md' | |
| - 'EpisodicRAG/.claude-plugin/*.json' | |
| - '.github/workflows/docs-check.yml' | |
| jobs: | |
| link-check: | |
| name: Check Markdown Links | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Link Checker | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| args: >- | |
| --verbose | |
| --no-progress | |
| --include-fragments | |
| --exclude 'https://github.com/Bizuayeu/Plugins-Weave/compare/*' | |
| --exclude 'https://github.com/Bizuayeu/Plugins-Weave/releases/*' | |
| '**/*.md' | |
| fail: true | |
| - name: Create Issue on Failure | |
| if: failure() | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const title = 'Documentation Link Check Failed'; | |
| const body = `The documentation link check has failed in workflow run [#${context.runNumber}](${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}). | |
| Please review the broken links and fix them.`; | |
| // Check if issue already exists | |
| const issues = await github.rest.issues.listForRepo({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| state: 'open', | |
| labels: 'documentation' | |
| }); | |
| const existingIssue = issues.data.find(issue => issue.title === title); | |
| if (!existingIssue) { | |
| await github.rest.issues.create({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| title: title, | |
| body: body, | |
| labels: ['documentation', 'bug'] | |
| }); | |
| } | |
| markdown-lint: | |
| name: Lint Markdown Files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: markdownlint-cli2-action | |
| uses: DavidAnson/markdownlint-cli2-action@v24 | |
| with: | |
| globs: '**/*.md' | |
| fix: false | |
| continue-on-error: true | |
| json-validate: | |
| name: Validate JSON Schema | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.11' | |
| - name: Validate config.template.json | |
| working-directory: EpisodicRAG | |
| run: | | |
| python -m scripts.tools.validate_json \ | |
| .claude-plugin/config.template.json \ | |
| --check-paths | |
| - name: Validate config.json structure (if exists) | |
| working-directory: EpisodicRAG | |
| run: | | |
| if [ -f ".claude-plugin/config.json" ]; then | |
| python -m scripts.tools.validate_json \ | |
| .claude-plugin/config.json \ | |
| --template .claude-plugin/config.template.json \ | |
| --check-paths | |
| else | |
| echo "config.json not found (expected - created on setup)" | |
| fi |