# 【解決】Hang in there while we check the branch's statusエラー

> GithubプルリクマージでChecking for the ability to merge automatically...Hang in there while we check the branch's status.のエラーが出て動かなくなった解決方法です。

- 公開日: 2025-08-06
- 更新日: 2025-08-07
- 著者: Matsu
- タグ: Github
- URL: https://tech.anycloud.co.jp/articles/github-pr-hang

---

## エラー内容：Checking for the ability to merge automatically...Hang in there while we check the branch's status.

Githubでプルリクをマージしようとボタンを押したら、以下のような表示になり、何十分経っても変わらず・・・

Checking for the ability to merge automatically... Hang in there while we check the branch's status.

<figure><img src="./image-001.webp" alt="Checking for the ability to merge automatically...Hang in there while we check the branch's status." width="984" height="180"></figure>

Githubのサーバーの問題の可能性を考え、以下サイトからステータスチェックするも問題なし・・・

<div class="link-card-wrap"><a class="link-card" href="https://www.githubstatus.com" target="_blank" rel="noopener noreferrer"><span class="link-card-body"><span class="link-card-title">GitHub Status</span><span class="link-card-description">Welcome to GitHub's home for real-time and historical data on system performance.</span><span class="link-card-meta"><img class="link-card-favicon" src="./linkcard-01-favicon.ico" alt=""><span class="link-card-domain">www.githubstatus.com</span></span></span></a></div>

<figure><img src="./image-002.webp" alt="Github Status" width="3022" height="1528"></figure>

## 解決方法

原因に関しては、何もわからないままなのですが、取り急ぎの解決方法として空のコミットを作成してプッシュするとマージできるようになりました！

```plaintext
% git commit --allow-empty -m "Empty commit"
% git push
```

## 参考サイト

以下のサイトを参考にさせていただきました。

<div class="link-card-wrap"><a class="link-card" href="https://stackoverflow.com/questions/63315676/github-how-to-solve-hanging-pull-request" target="_blank" rel="noopener noreferrer"><span class="link-card-body"><span class="link-card-title">Github: How to solve hanging pull request?</span><span class="link-card-description">My repo is a fork from upstream repo 2amigos/yii2-usuario. My repo is behind some commits. I want to re-sync all commit and created a pull request by switching the base, so that the upstream repo g...</span><span class="link-card-meta"><img class="link-card-favicon" src="./linkcard-02-favicon.ico" alt=""><span class="link-card-domain">stackoverflow.com</span></span></span><img class="link-card-image" src="./linkcard-02-image.webp" alt=""></a></div>

> 私の場合、GitHub の障害後にこの問題に遭遇しました。プルリクエストの 1 つが停止してしまいました。 ・キャッシュの問題ではありませんでした。これまでGitHubにログインしたことのない新しいブラウザで試してみました。 ・新しい実際のコミットをプッシュしても問題は解決しませんでした。 ・新しいブランチ（既存のブランチから）と新しい PR を作成しても問題は解決しませんでした。 *空の*コミットを作成してプッシュすると、*問題は解決しました。* `git commit --allow-empty -m "Empty commit"` `git push`
