-
Notifications
You must be signed in to change notification settings - Fork 0
feat: 一括更新コマンド npm run update:all を追加 #479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
7d4ceb4
feat: 一括更新コマンド `npm run update:all` を追加
github-actions[bot] acf935f
docs: /update-actions コマンド追加と関連ドキュメント更新
github-actions[bot] 9b3ae8b
docs: README.md の Updates セクションを独立化
github-actions[bot] e79f5cd
fix: テンプレートの GitHub Actions バージョンを最新に更新
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # Update GitHub Actions | ||
|
|
||
| GitHub Actions のバージョンを最新に自動更新します。 | ||
|
|
||
| ## 実行内容 | ||
|
|
||
| 1. `.github/workflows/` 配下の全ワークフローファイル(テンプレート含む)をスキャン | ||
| 2. `uses:` 行から action/ref ペアを抽出 | ||
| 3. SemVer タグのアクションのみ更新対象(メジャータグ固定・SHA ピンニング・ブランチ固定はスキップ) | ||
| 4. `gh api` で最新リリースタグを取得 | ||
| 5. `sed` で一括置換 | ||
| 6. 変更サマリを表示 | ||
|
|
||
| ## 使用方法 | ||
|
|
||
| ```bash | ||
| /update-actions | ||
| ``` | ||
|
|
||
| または npm script として: | ||
|
|
||
| ```bash | ||
| npm run update:actions | ||
| ``` | ||
|
|
||
| ## 更新対象の判定 | ||
|
|
||
| | パターン | 例 | 対応 | | ||
| | ------------------ | -------------------------- | -------- | | ||
| | SemVer タグ | `@v6.0.2`, `@0.34.0` | 更新対象 | | ||
| | メジャータグ固定 | `@v1`, `@v3` | スキップ | | ||
| | ブランチ固定 | `@master`, `@main` | スキップ | | ||
| | SHA ピンニング | `@e58ee9d1...` (40文字hex) | スキップ | | ||
| | ローカルアクション | `./` | スキップ | | ||
| | Docker アクション | `docker://` | スキップ | | ||
|
|
||
| ## 必須コマンド | ||
|
|
||
| - `gh` (GitHub CLI) — リリース/タグ情報の取得に使用 | ||
|
|
||
| ## 一括更新 | ||
|
|
||
| 全依存関係(npm + Claude Code + Actions)を一括更新する場合: | ||
|
|
||
| ```bash | ||
| npm run update:all | ||
| npm run update:all -- --skip-libs # Actions + Claude のみ | ||
| npm run update:all -- --skip-claude # Actions + libs のみ | ||
| npm run update:all -- --skip-actions # libs + Claude のみ | ||
| ``` | ||
|
|
||
| ## 参考リンク | ||
|
|
||
| - [GitHub Actions バージョニング](https://docs.github.com/en/actions/creating-actions/about-custom-actions#using-tags-for-release-management) |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add language specifiers to fenced code blocks (markdownlint MD040).
The code blocks at lines 485 and 500 are missing language identifiers, which is flagged by markdownlint. Other code blocks in this file consistently use
bash— these should match.♻️ Proposed fix
In @.claude/commands/README.md around lines 483 - 503, The two fenced code
blocks showing the commands "/update-claude-code" and the block containing
"/update-actions\nnpm run update:actions" are missing language specifiers;
update those three backticks to use "bash" (i.e., change
tobash) so theymatch other examples and satisfy markdownlint MD040, making sure to update both
the single-line "/update-claude-code" block and the two-line "/update-actions"
block.