Skip to content

Commit

Permalink
Fix "Error: No issue number specified" when pushing (#1393)
Browse files Browse the repository at this point in the history
* Fix "Error: No issue number specified"  when pushing

* update pr
  • Loading branch information
agrn authored and lunny committed Apr 1, 2017
1 parent 095e1f5 commit 88112a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 88112a5

Please sign in to comment.