Dependabotがpre-commitフックをサポート
本文の状態
日本語全文を表示中
詳細モードで約2分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
GitHub Changelog
GitHub Dependabotがpre-commitフックの自動依存関係更新をネイティブサポート。ユーザーは設定ファイルにpre-commitを追加することで、Dependabotが.pre-commit-config.yamlを解析し、フックの更新をプルリクエストで提案する。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
GitHub Dependabotが、pre-commitフックの依存関係を自動更新する機能をネイティブにサポートするようになりました。dependabot.yml設定ファイルでpre-commitをパッケージエコシステムとして追加するだけで、Dependabotは.pre-commit-config.yamlを解析し、各フックのリポジトリに新しいタグやリリースがないか確認して、revフィールドを更新するプルリクエストを作成します。この機能は既存のDependabotワークフローに完全に統合されています。
主なサポート機能は以下の通りです:
- タグおよびSHAベースのリビジョン: Gitタグ(例:v4.5.0)やコミットSHAに固定されたフックに対応しています。
- グループ化更新: Dependabotの既存のグループ化設定を利用し、複数のフック更新を1つのプルリクエストにまとめられます。
- 変更ログとリリースノート: プルリクエストにはフックのリポジトリから取得した変更ログやリリースノートが含まれるため、マージ前に変更内容を確認できます。
- YAMLフォーマットの維持: revフィールドの値やインラインのバージョンコメント(例:# frozen:)を新しいバージョンに更新する際、既存のYAML構造はそのまま保持されます。
- ローカル/メタリポジトリの適切な処理: バージョン更新が不要なローカルリポジトリやメタリポジトリのフック定義は、自動的にスキップされます。
- マルチホストサポート: GitHub、GitLab、Bitbucketをはじめ、さまざまなGitホスティングプロバイダーでホストされているフックに対応しています。
利用を開始するには、Dependabotのバージョン更新設定でpre-commitサポートを有効にし、dependabot-coreでのディスカッションにご参加ください。
この投稿「Dependabot now supports pre-commit hooks」は、The GitHub Blogで最初に公開されました。
原文を表示
GitHub Dependabot now natively supports automatic dependency updates for pre-commit hooks. By adding pre-commit as a package ecosystem in your dependabot.yml configuration, Dependabot will parse your .pre-commit-config.yaml, check each hook’s repository for new tags or releases, and open pull requests to update the rev field. This is all fully integrated into your existing Dependabot workflow.
Supported features include:
Tag and SHA-based revisions: Works with hooks pinned to Git tags (e.g., v4.5.0) or commit SHAs.
Grouped updates: Combine multiple hook updates into a single pull request using Dependabot’s existing grouped updates configuration.
Changelog and release notes: Pull requests include changelogs and release notes from hook repositories so you can review what’s changed before merging.
YAML formatting preservation: Updates modify the rev value and any inline version comments (e.g., # frozen:) to reflect the new version, all while keeping your existing structure intact.
Graceful handling of local and meta repos: Dependabot automatically skips local and meta hook definitions that don’t require version updates.
Multi-host support: Works with hooks hosted on GitHub, GitLab, Bitbucket, and other Git hosting providers.
To get started, configure pre-commit support in Dependabot version updates and join the conversation in dependabot-core.
The post Dependabot now supports pre-commit hooks appeared first on The GitHub Blog.
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み