|
|
@ -2654,6 +2654,13 @@ func UpdateIssueStatus(ctx *context.Context) { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
for _, issue := range issues { |
|
|
|
for _, issue := range issues { |
|
|
|
|
|
|
|
if err := issue.LoadPullRequest(ctx); err != nil { |
|
|
|
|
|
|
|
ctx.ServerError("LoadPullRequests", err) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if issue.IsPull && issue.PullRequest.HasMerged { |
|
|
|
|
|
|
|
continue |
|
|
|
|
|
|
|
} |
|
|
|
if issue.IsClosed != isClosed { |
|
|
|
if issue.IsClosed != isClosed { |
|
|
|
if err := issue_service.ChangeStatus(issue, ctx.Doer, "", isClosed); err != nil { |
|
|
|
if err := issue_service.ChangeStatus(issue, ctx.Doer, "", isClosed); err != nil { |
|
|
|
if issues_model.IsErrDependenciesLeft(err) { |
|
|
|
if issues_model.IsErrDependenciesLeft(err) { |
|
|
|