* Fix "Error: No issue number specified" when pushing * fix wrong log when push to a new branch (#1220) * Removing empty file modules/github/issues.go
This commit is contained in:
parent
daaabaa1d9
commit
4fd55d8796
1 changed files with 3 additions and 3 deletions
|
@ -360,7 +360,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err
|
||||||
|
|
||||||
issue, err := GetIssueByRef(ref)
|
issue, err := GetIssueByRef(ref)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if IsErrIssueNotExist(err) {
|
if IsErrIssueNotExist(err) || err == errMissingIssueNumber {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
@ -398,7 +398,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err
|
||||||
|
|
||||||
issue, err := GetIssueByRef(ref)
|
issue, err := GetIssueByRef(ref)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if IsErrIssueNotExist(err) {
|
if IsErrIssueNotExist(err) || err == errMissingIssueNumber {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
@ -438,7 +438,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err
|
||||||
|
|
||||||
issue, err := GetIssueByRef(ref)
|
issue, err := GetIssueByRef(ref)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if IsErrIssueNotExist(err) {
|
if IsErrIssueNotExist(err) || err == errMissingIssueNumber {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
|
Reference in a new issue