LoginSignup
22
4

More than 3 years have passed since last update.

dependabotからのPRがconflictした時の対処法

Last updated at Posted at 2020-11-01

dependabotからのPRが溜まってると

  • 各dependabot PRをmergeしていくと
  • 後半のPRで、dependabot同士の変更がconflictしてしまう...
  • 自分で一個ずつconflictを解消していくのも手だが
  • dependabotのPR同士が引き起こしたconflictであれば、簡単に直せる

解決法2種類

1. closeして、reopen

  • closeして
  • reopenするだけで自動で直せる!

conflictしたPRをClose

  • closeすると、こんなコメントが

image.png

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

  • PRを再度オープンにすることで、dependabotがconflictを解決してくれるとのこと

Reopen

image.png

  • force-pushされてconflictが修正されていることが分かります

2. @dependabot rebase をコメントする

もっと簡単な方法もある

image.png

ここに書いてある通り、 @dependabot rebase をコメントするだけ

参考

22
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
22
4