aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/action.go6
-rw-r--r--models/action_test.go2
-rw-r--r--models/issue.go3
3 files changed, 6 insertions, 5 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
diff --git a/models/action_test.go b/models/action_test.go
index 96ee9a5f73..431469e732 100644
--- a/models/action_test.go
+++ b/models/action_test.go
@@ -161,7 +161,7 @@ func TestUpdateIssuesCommit(t *testing.T) {
CommitterName: "User Two",
AuthorEmail: "user4@example.com",
AuthorName: "User Four",
- Message: "start working on #1",
+ Message: "start working on #FST-1, #1",
},
{
Sha1: "abcdef2",
diff --git a/models/issue.go b/models/issue.go
index db05a7d45c..a8dfb3233f 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -24,6 +24,7 @@ import (
var (
errMissingIssueNumber = errors.New("No issue number specified")
+ errInvalidIssueNumber = errors.New("Invalid issue number")
)
// Issue represents an issue or pull request of repository.
@@ -961,7 +962,7 @@ func GetIssueByRef(ref string) (*Issue, error) {
index, err := com.StrTo(ref[n+1:]).Int64()
if err != nil {
- return nil, err
+ return nil, errInvalidIssueNumber
}
repo, err := GetRepositoryByRef(ref[:n])
rt/40394/stable30 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/l10n/de.js
blob: 12d9a3ac9201196d36d306cfb768193b478b7e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48