Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 1 addition & 36 deletions .claude/commands/repo-maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -1497,40 +1497,7 @@ echo "🔧 SECURITY.md を追加しました"
- ✅ SECURITY.md 設定済み
- 🔧 SECURITY.md を追加しました

### 3.17 Release Drafter チェック

リリースノート自動生成が設定されているか確認:

**確認ロジック:**

```bash
HAS_RELEASE_DRAFTER=false
[ -f ".github/workflows/release-drafter.yml" ] && HAS_RELEASE_DRAFTER=true
```

**MODE が `full` かつ未設定の場合:**

```bash
TEMPLATE_WF="/usr/local/share/config-templates/workflows/release-drafter.yml"
TEMPLATE_CFG="/usr/local/share/config-templates/github/release-drafter.yml"

mkdir -p .github/workflows
if [ -f "$TEMPLATE_WF" ]; then
cp "$TEMPLATE_WF" .github/workflows/release-drafter.yml
cp "$TEMPLATE_CFG" .github/release-drafter.yml
else
curl -fsSL "https://raw.githubusercontent.com/keito4/config/main/templates/workflows/release-drafter.yml" -o .github/workflows/release-drafter.yml
curl -fsSL "https://raw.githubusercontent.com/keito4/config/main/templates/github/release-drafter.yml" -o .github/release-drafter.yml
fi
echo "🔧 Release Drafter を追加しました"
```

**結果:**

- ✅ Release Drafter 設定済み
- 🔧 Release Drafter を追加しました

### 3.18 package.json scripts 標準チェック
### 3.17 package.json scripts 標準チェック

Quality Gates で必要なスクリプトが揃っているか確認:

Expand Down Expand Up @@ -2281,7 +2248,6 @@ fi
├── Issue Template: ✅ Configured (or 🔧 Added)
├── CODEOWNERS: ✅ Configured (or ⚠️ Not configured)
├── SECURITY.md: ✅ Configured (or 🔧 Added)
├── Release Drafter: ✅ Configured (or 🔧 Added)
├── commitlint: ✅ Configured with commit-msg hook (or ⚠️ Hook missing / ⚠️ Not configured)
├── .editorconfig: ✅ Configured (or 🔧 Generated)
├── scripts: ✅ All standard scripts defined (or ⚠️ Missing: test, lint)
Expand Down Expand Up @@ -2546,7 +2512,6 @@ Run this command regularly to maintain repository health:
| Setup | (Issue Template check) | Issue テンプレート設定 |
| Setup | (CODEOWNERS check) | コードオーナー設定 |
| Setup | (SECURITY.md check) | セキュリティポリシー設定 |
| Setup | (Release Drafter check) | リリースノート自動生成設定 |
| Setup | (scripts standard check) | package.json scripts 標準確認 |
| Setup | (Push Protection check) | Secret scanning push 防止 |
| Setup | (Dependency Review check) | PR 依存関係脆弱性チェック |
Expand Down
92 changes: 0 additions & 92 deletions .github/release-drafter.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/release-drafter.yml

This file was deleted.

14 changes: 6 additions & 8 deletions templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@

### ワークフロー(`workflows/`)

| テンプレート | 対象 | 自動適用条件 |
| --------------------------- | -------------------------------- | -------------------------------- |
| `dependabot-auto-merge.yml` | Dependabot を使う全プロジェクト | dependabot.yml が存在する場合 |
| `label-sync.yml` | 全プロジェクト | 常に推奨 |
| `release-drafter.yml` | リリース管理が必要なプロジェクト | 常に推奨 |
| `stale.yml` | Issue/PR が多いプロジェクト | 常に推奨 |
| `terraform-drift.yml` | Terraform プロジェクト | Terraform ファイルが存在する場合 |
| テンプレート | 対象 | 自動適用条件 |
| --------------------------- | ------------------------------- | -------------------------------- |
| `dependabot-auto-merge.yml` | Dependabot を使う全プロジェクト | dependabot.yml が存在する場合 |
| `label-sync.yml` | 全プロジェクト | 常に推奨 |
| `stale.yml` | Issue/PR が多いプロジェクト | 常に推奨 |
| `terraform-drift.yml` | Terraform プロジェクト | Terraform ファイルが存在する場合 |

### pre-commit(`pre-commit-config-*.yaml`)

Expand All @@ -34,7 +33,6 @@
| `CODEOWNERS` | チーム開発でのレビュー自動アサイン | 中 |
| `SECURITY.md` | セキュリティポリシー | 中 |
| `CONTRIBUTING.md` | コントリビューションガイド | 低 |
| `release-drafter.yml` | Release Drafter の設定 | 中 |

### その他

Expand Down
92 changes: 0 additions & 92 deletions templates/github/release-drafter.yml

This file was deleted.

35 changes: 0 additions & 35 deletions templates/workflows/release-drafter.yml

This file was deleted.

2 changes: 1 addition & 1 deletion test/integration/workflows.bats
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ load ../test_helper/test_helper
@test "all workflows use checkout action" {
local workflows_dir="${REPO_ROOT}/.github/workflows"
# Workflows that don't need checkout (no source code access required)
local skip_patterns="dependabot-auto-merge|release-drafter"
local skip_patterns="dependabot-auto-merge"

for workflow in "$workflows_dir"/*.yml; do
local basename
Expand Down
Loading