@@ -500,7 +500,7 @@ func getIssueFromRef(repo *Repository, ref string) (*Issue, error) {
500500 return nil , nil
501501 }
502502
503- issue , err := GetIssueByIndex (refRepo .ID , int64 ( issueIndex ) )
503+ issue , err := GetIssueByIndex (refRepo .ID , issueIndex )
504504 if err != nil {
505505 if IsErrIssueNotExist (err ) {
506506 return nil , nil
@@ -565,7 +565,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit, bra
565565
566566 // issue is from another repo
567567 if len (m [1 ]) > 0 && len (m [2 ]) > 0 {
568- refRepo , err = GetRepositoryFromMatch (string ( m [1 ]), string ( m [2 ]) )
568+ refRepo , err = GetRepositoryFromMatch (m [1 ], m [2 ])
569569 if err != nil {
570570 continue
571571 }
@@ -602,7 +602,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit, bra
602602
603603 // issue is from another repo
604604 if len (m [1 ]) > 0 && len (m [2 ]) > 0 {
605- refRepo , err = GetRepositoryFromMatch (string ( m [1 ]), string ( m [2 ]) )
605+ refRepo , err = GetRepositoryFromMatch (m [1 ], m [2 ])
606606 if err != nil {
607607 continue
608608 }
@@ -631,7 +631,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit, bra
631631
632632 // issue is from another repo
633633 if len (m [1 ]) > 0 && len (m [2 ]) > 0 {
634- refRepo , err = GetRepositoryFromMatch (string ( m [1 ]), string ( m [2 ]) )
634+ refRepo , err = GetRepositoryFromMatch (m [1 ], m [2 ])
635635 if err != nil {
636636 continue
637637 }
0 commit comments