fix: refresh pull request merge box when the commit status is pending (#38410) (#38411)

Backport #38410

Before: the merge box is only refreshed when the PR is being
conflict-checked.

After: also refresh the merge box when the commit status is pending
(e.g.: Action task is running)

By the way, slightly increase the refresh interval to 5s

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Giteabot
2026-07-11 16:15:25 -07:00
committed by GitHub
parent 8ba4d4ebec
commit 6815d1646c
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ func TestPullStatusDelayCheck(t *testing.T) {
})
assert.Equal(t, issues.PullRequestStatusChecking, issue3.PullRequest.Status)
assert.Zero(t, checkedPrID)
assertReloadingInterval(t, "2000") // the PR status is "checking", so try to reload the merge box
assertReloadingInterval(t, "5000") // the PR status is "checking", so try to reload the merge box
// view a PR with status=checking, it starts the real check
issue3, checkedPrID = run(t, func(t *testing.T) {