Skip to content

Commit d545e22

Browse files
wxiaoguangbrechtvl
andauthored
Update services/pull/check.go
Co-authored-by: Brecht Van Lommel <[email protected]>
1 parent 384a28e commit d545e22

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

services/pull/check.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,12 @@ func StartPullRequestCheckImmediately(ctx context.Context, pr *issues_model.Pull
7777
AddPullRequestToCheckQueue(pr.ID)
7878
}
7979

80-
// StartPullRequestCheckDelayable will delay the check if the pull request is not update recently.
81-
// The case is when the "base" branch gets updated, all PRs targeting that "base" branch needs to re-check whether they are mergeable.
80+
// StartPullRequestCheckDelayable will delay the check if the pull request was not updated recently.
81+
// When the "base" branch gets updated, all PRs targeting that "base" branch need to re-check whether
82+
// they are mergeable.
8283
// When there are too many stale PRs, each "base" branch update will consume a lot of system resources.
83-
// So we could delay the checks for PRs that are not updated recently, only mark their status as "checking",
84-
// then next time when these PRs are update or viewed, the real checks will run.
84+
// So we can delay the checks for PRs that were not updated recently, only mark their status as
85+
// "checking", and then next time when these PRs are updated or viewed, the real checks will run.
8586
func StartPullRequestCheckDelayable(ctx context.Context, pr *issues_model.PullRequest) {
8687
if !markPullRequestStatusAsChecking(ctx, pr) {
8788
return

0 commit comments

Comments
 (0)