Implemented not closing an issue via commit message if it has blocking dependencies
Signed-off-by: Konrad <konrad@kola-entertainments.de>
This commit is contained in:
parent
c3a0581243
commit
21f36f99c6
|
|
@ -472,8 +472,13 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err
|
|||
continue
|
||||
}
|
||||
|
||||
if err = issue.ChangeStatus(doer, repo, true); err != nil {
|
||||
return err
|
||||
// Check for dependencies, if there aren't any, close it
|
||||
canbeClosed := IssueNoDependenciesLeft(issue.ID)
|
||||
|
||||
if canbeClosed {
|
||||
if err = issue.ChangeStatus(doer, repo, true); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user