diff --git a/models/action.go b/models/action.go index c736fabf3..6f76cbc4e 100644 --- a/models/action.go +++ b/models/action.go @@ -360,7 +360,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err issue, err := GetIssueByRef(ref) if err != nil { - if IsErrIssueNotExist(err) { + if IsErrIssueNotExist(err) || err == errMissingIssueNumber { continue } return err @@ -398,7 +398,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err issue, err := GetIssueByRef(ref) if err != nil { - if IsErrIssueNotExist(err) { + if IsErrIssueNotExist(err) || err == errMissingIssueNumber { continue } return err @@ -438,7 +438,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err issue, err := GetIssueByRef(ref) if err != nil { - if IsErrIssueNotExist(err) { + if IsErrIssueNotExist(err) || err == errMissingIssueNumber { continue } return err