diff options
author | Lauris BH <lauris@nix.lv> | 2017-07-13 06:35:47 +0300 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-07-12 22:35:47 -0500 |
commit | b639fa16481cdd32f491a8267fc83a5a472f9093 (patch) | |
tree | 4fcbc9187df281600b815e1b3e61b420e131aab4 /models/action.go | |
parent | 7d61834dc983d799acf9aea795b78c6285f363c3 (diff) | |
download | gitea-b639fa16481cdd32f491a8267fc83a5a472f9093.tar.gz gitea-b639fa16481cdd32f491a8267fc83a5a472f9093.zip |
Ignore invalid issue numbers in commit messages. Fixes #2022 (#2150)
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/action.go b/models/action.go index 9a12e9229b..852bb66d28 100644 --- a/models/action.go +++ b/models/action.go @@ -424,7 +424,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err issue, err := GetIssueByRef(ref) if err != nil { - if IsErrIssueNotExist(err) || err == errMissingIssueNumber { + if IsErrIssueNotExist(err) || err == errMissingIssueNumber || err == errInvalidIssueNumber { continue } return err @@ -462,7 +462,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err issue, err := GetIssueByRef(ref) if err != nil { - if IsErrIssueNotExist(err) || err == errMissingIssueNumber { + if IsErrIssueNotExist(err) || err == errMissingIssueNumber || err == errInvalidIssueNumber { continue } return err @@ -502,7 +502,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err issue, err := GetIssueByRef(ref) if err != nil { - if IsErrIssueNotExist(err) || err == errMissingIssueNumber { + if IsErrIssueNotExist(err) || err == errMissingIssueNumber || err == errInvalidIssueNumber { continue } return err |