File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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.
8586func StartPullRequestCheckDelayable (ctx context.Context , pr * issues_model.PullRequest ) {
8687 if ! markPullRequestStatusAsChecking (ctx , pr ) {
8788 return
You can’t perform that action at this time.
0 commit comments