Dependabotが複数ディレクトリ間で依存関係名による更新をグループ化可能に
本文の状態
日本語全文を表示中
詳細モードで約1分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
GitHub Changelog
Dependabotが複数ディレクトリ間で依存関係名による更新をグループ化する機能を追加。複数パッケージやサービスを含むリポジトリでの依存関係アップグレード管理が容易に。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
変更履歴に戻る Dependabotは現在、複数のディレクトリにわたって依存関係名による更新のグループ化をサポートしており、複数のパッケージやサービスを含むリポジトリでの依存関係アップグレードの管理を容易にします。
以前は、Dependabotは依存関係の更新が必要な各ディレクトリに対して個別のプルリクエストを生成していました。もしリポジトリに複数のディレクトリが含まれている場合、単一の依存関係バージョンアップに対して複数のプルリクエストが発生することを意味しました。例えば、requestsのアップグレードでは
chore(deps): /service-a 内の requests をバンプ
chore(deps): /service-b 内の requests をバンプ
chore(deps): /service-c 内の requests をバンプ
このリリースにより、影響を受けるディレクトリの数に関係なく、同じ依存関係に対する更新を単一のプルリクエストに統合するようにDependabotを設定できるようになります。これによりプルリクエストの数を減らし、アップグレードのワークフローを簡素化することができます。この設定は、単一の依存関係バージョンアップが数十のディレクトリに影響するモノレポにおいて特に価値があります。
この機能を利用できるユーザー
この機能はすべてのgithub.comユーザーが利用可能で、GHES 3.21に同梱されます。
dependabot.ymlでディレクトリグループを設定する
Dependabotコミュニティ内での議論に参加する
原文を表示
Back to changelog Dependabot now supports grouping updates by dependency name across multiple directories, making it easier to manage dependency upgrades in repositories with more than one package or service.
Previously, Dependabot generated a separate pull request for each directory where a dependency needed updating. If your repository contained multiple directories, this meant several pull requests for a single dependency bump. For example, upgrading requests
chore(deps): bump requests in /service-a
chore(deps): bump requests in /service-b
chore(deps): bump requests in /service-c
With this release, you can configure Dependabot to consolidate updates for the same dependency into a single pull request, regardless of how many directories are affected. This’ll help reduce the number of pull requests and simplify your upgrade workflow. This configuration is especially valuable for monorepos where a single dependency bump can touch dozens of directories.
Who can use this feature
This feature is available for all github.com users and will ship in GHES 3.21.
Configure your directory groups in the dependabot.yml
Join the discussion within the Dependabot Community.
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み