From 88112a53249077adf26e5200f723faa1570641e6 Mon Sep 17 00:00:00 2001 From: agrn Date: Sat, 1 Apr 2017 03:05:39 +0200 Subject: [PATCH] Fix "Error: No issue number specified" when pushing (#1393) * Fix "Error: No issue number specified" when pushing * update pr --- models/action.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/action.go b/models/action.go index 9897a879b71..6f76cbc4e3e 100644 --- a/models/action.go +++ b/models/action.go @@ -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