ImportIssueCommit imports csv file into the table `issue_commits`
(boardId string, file io.ReadCloser)
| 198 | |
| 199 | // ImportIssueCommit imports csv file into the table `issue_commits` |
| 200 | func (s *Service) ImportIssueCommit(boardId string, file io.ReadCloser) errors.Error { |
| 201 | err := s.dal.Delete( |
| 202 | &crossdomain.IssueCommit{}, |
| 203 | dal.Where("issue_id IN (SELECT issue_id FROM board_issues WHERE board_id=? AND issue_id NOT IN (SELECT issue_id FROM board_issues WHERE board_id!=?))", boardId, boardId), |
| 204 | ) |
| 205 | if err != nil { |
| 206 | return err |
| 207 | } |
| 208 | return s.importCSV(file, boardId, s.issueCommitHandler) |
| 209 | } |
| 210 | |
| 211 | // ImportIssueRepoCommit imports data to the table `issue_repo_commits` and `issue_commits` |
| 212 | func (s *Service) ImportIssueRepoCommit(boardId string, file io.ReadCloser, incremental bool) errors.Error { |