From 011865e30224a663448579ea333c2cc6c1e24b08 Mon Sep 17 00:00:00 2001 From: keito4 Date: Thu, 2 Apr 2026 21:43:41 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E3=83=AA=E3=83=9D=E3=82=B8=E3=83=88?= =?UTF-8?q?=E3=83=AA=E3=83=A1=E3=83=B3=E3=83=86=E3=83=8A=E3=83=B3=E3=82=B9?= =?UTF-8?q?=EF=BC=88Actions=E6=9C=80=E9=81=A9=E5=8C=96=E3=83=BB=E3=83=86?= =?UTF-8?q?=E3=83=B3=E3=83=97=E3=83=AC=E3=83=BC=E3=83=88SHA=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=E3=83=BBAGENTS.md=E6=9B=B4=E6=96=B0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - coverage-report.yml: concurrency + timeout-minutes 追加 - manual-release.yml: concurrency + timeout-minutes 追加 - docker-image.yml: upload-artifact に retention-days: 7 追加 - templates/dependabot-auto-merge.yml: SHA 固定 - templates/label-sync.yml: SHA 固定 - AGENTS.md: 自動生成セクション更新(新ディレクトリ追加) - PR テンプレート: Why/What/How 形式に簡素化 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/coverage-report.yml | 8 ++++++++ .github/workflows/docker-image.yml | 1 + .github/workflows/manual-release.yml | 5 +++++ AGENTS.md | 4 ++++ templates/workflows/dependabot-auto-merge.yml | 2 +- templates/workflows/label-sync.yml | 4 ++-- 6 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage-report.yml b/.github/workflows/coverage-report.yml index 954b792c..20807041 100644 --- a/.github/workflows/coverage-report.yml +++ b/.github/workflows/coverage-report.yml @@ -47,6 +47,10 @@ on: type: string default: 'Coverage Report' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + permissions: contents: read pull-requests: write @@ -55,6 +59,7 @@ jobs: report-jacoco: name: JaCoCo Coverage Report runs-on: ubuntu-latest + timeout-minutes: 10 if: inputs.format == 'jacoco' steps: - name: Checkout code @@ -80,6 +85,7 @@ jobs: report-jest: name: Jest Coverage Report runs-on: ubuntu-latest + timeout-minutes: 10 if: inputs.format == 'jest' steps: - name: Checkout code @@ -161,6 +167,7 @@ jobs: report-cobertura: name: Cobertura Coverage Report runs-on: ubuntu-latest + timeout-minutes: 10 if: inputs.format == 'cobertura' steps: - name: Checkout code @@ -194,6 +201,7 @@ jobs: report-lcov: name: LCOV Coverage Report runs-on: ubuntu-latest + timeout-minutes: 10 if: inputs.format == 'lcov' steps: - name: Checkout code diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 0c3e3d4b..9414b478 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -194,6 +194,7 @@ jobs: with: name: devcontainer-info path: devcontainer-info.txt + retention-days: 7 - name: Create Release if: steps.release.outputs.skip_release != 'true' && (github.event_name != 'workflow_dispatch' || inputs.release_mode == 'auto') diff --git a/.github/workflows/manual-release.yml b/.github/workflows/manual-release.yml index ccf0746c..7b0abdfd 100644 --- a/.github/workflows/manual-release.yml +++ b/.github/workflows/manual-release.yml @@ -16,11 +16,16 @@ on: description: 'Custom version (optional, overrides version type)' required: false +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false + permissions: {} jobs: release: runs-on: ubuntu-latest + timeout-minutes: 30 permissions: contents: write packages: write diff --git a/AGENTS.md b/AGENTS.md index 80c78be8..f26bc998 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -39,6 +39,7 @@ Development infrastructure template repository providing DevContainer images, CI | Directory | Purpose | | -------------------- | ------------------------------------------------ | +| `.agents/` | AI agent skills and configurations | | `.claude/commands/` | Claude Code slash commands | | `.claude/hooks/` | Pre/post hook scripts for quality enforcement | | `.claude/rules/` | Claude Code rules for development standards | @@ -51,10 +52,12 @@ Development infrastructure template repository providing DevContainer images, CI | `.vscode/` | VS Code workspace settings | | `brew/` | Homebrew package management (Linux only) | | `credentials/` | Credential templates and filtering documentation | +| `dist/` | dist | | `docs/` | Documentation and ADRs | | `dot/` | Dotfiles (DevContainer .zshrc, peco) | | `eslint/` | ESLint configuration and plugins | | `git/` | Git hooks and configuration | +| `next/` | Next.js project templates | | `nix/` | nix-darwin + home-manager (macOS environment) | | `npm/` | npm global configuration and library management | | `script/` | Utility shell scripts | @@ -136,6 +139,7 @@ Additional test commands: `test:integration` (BATS), `test:coverage` (Jest + cov | `block_config_edit.py` | Pre edit | Protect configuration files | | `block_dangerous_commands.py` | Pre Bash | Block destructive commands | | `block_git_no_verify.py` | Pre git commit/push | Block `--no-verify` and `HUSKY=0` | +| `common.py` | Unknown | common | | `post_commit_adr_reminder.py` | Post git commit | Remind ADR for architectural changes | | `post_edit_auto_lint.py` | Post edit | Auto-format and lint | | `post_git_push_ci.py` | Post git push | Monitor CI status | diff --git a/templates/workflows/dependabot-auto-merge.yml b/templates/workflows/dependabot-auto-merge.yml index 3db62c48..d0581662 100644 --- a/templates/workflows/dependabot-auto-merge.yml +++ b/templates/workflows/dependabot-auto-merge.yml @@ -37,7 +37,7 @@ jobs: - name: Fetch Dependabot metadata if: github.actor == 'dependabot[bot]' id: metadata - uses: dependabot/fetch-metadata@v2 + uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/templates/workflows/label-sync.yml b/templates/workflows/label-sync.yml index e3b252df..328e680e 100644 --- a/templates/workflows/label-sync.yml +++ b/templates/workflows/label-sync.yml @@ -30,10 +30,10 @@ jobs: timeout-minutes: 5 steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Sync labels - uses: EndBug/label-sync@v2 + uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2 with: config-file: .github/labels.yml # 既存ラベルを保持(false = labels.yml にないラベルを削除しない) From 12b1d4bad07d1bfcb5c5450149552feea3c20277 Mon Sep 17 00:00:00 2001 From: keito4 Date: Thu, 2 Apr 2026 21:52:57 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20PR=20=E3=83=86=E3=83=B3=E3=83=97?= =?UTF-8?q?=E3=83=AC=E3=83=BC=E3=83=88=E3=82=92=20Why/What/How=20=E5=BD=A2?= =?UTF-8?q?=E5=BC=8F=E3=81=AB=E7=B0=A1=E7=B4=A0=E5=8C=96=E3=81=97=E9=87=8D?= =?UTF-8?q?=E8=A4=87=E3=82=A8=E3=83=B3=E3=83=88=E3=83=AA=E3=82=92=E8=A7=A3?= =?UTF-8?q?=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit macOS の case-insensitive FS により PULL_REQUEST_TEMPLATE.md と pull_request_template.md の2エントリが存在していた問題を修正。 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/PULL_REQUEST_TEMPLATE.md | 55 +++++++++----------------------- .github/pull_request_template.md | 32 ------------------- 2 files changed, 15 insertions(+), 72 deletions(-) delete mode 100644 .github/pull_request_template.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 48625d69..546135c3 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,57 +1,32 @@ ## Summary - + -## Type of Change +## Why - + -- [ ] Bug fix (non-breaking change which fixes an issue) -- [ ] New feature (non-breaking change which adds functionality) -- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) -- [ ] Documentation update -- [ ] Refactoring (no functional changes) -- [ ] CI/CD changes -- [ ] Dependencies update +## What -## Related Issues + - - -## Changes Made - - - -- -- - -## Testing +## How to test - + -- [ ] Unit tests pass (`npm test`) -- [ ] Integration tests pass (`npm run test:integration`) -- [ ] Linting passes (`npm run lint`) -- [ ] Format check passes (`npm run format:check`) +- [ ] ## Checklist - - -- [ ] My code follows the project's style guidelines -- [ ] I have performed a self-review of my code -- [ ] I have commented my code where necessary -- [ ] I have updated the documentation accordingly -- [ ] My changes generate no new warnings -- [ ] I have added tests that prove my fix/feature works -- [ ] All existing tests still pass -- [ ] This PR has a clear, descriptive title - -## Screenshots (if applicable) +- [ ] セルフレビュー済み +- [ ] テストを追加・更新した(該当する場合) +- [ ] ドキュメントを更新した(該当する場合) +- [ ] 破壊的変更がない(ある場合は詳細を記述) - +## Related -## Additional Notes + - +Closes # diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index 546135c3..00000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,32 +0,0 @@ -## Summary - - - -## Why - - - -## What - - - -- - -## How to test - - - -- [ ] - -## Checklist - -- [ ] セルフレビュー済み -- [ ] テストを追加・更新した(該当する場合) -- [ ] ドキュメントを更新した(該当する場合) -- [ ] 破壊的変更がない(ある場合は詳細を記述) - -## Related - - - -Closes #