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
5927e13e53
commit
875cd3ca58
|
|
@ -477,8 +477,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