(b *cache.BugCache, out chan<- core.ImportResult)
| 162 | } |
| 163 | |
| 164 | func (gi *githubImporter) commit(b *cache.BugCache, out chan<- core.ImportResult) error { |
| 165 | if b == nil { |
| 166 | return nil |
| 167 | } |
| 168 | if !b.NeedCommit() { |
| 169 | out <- core.NewImportNothing(b.Id(), "no imported operation") |
| 170 | return nil |
| 171 | } else if err := b.Commit(); err != nil { |
| 172 | // commit bug state |
| 173 | return fmt.Errorf("bug commit: %v", err) |
| 174 | } |
| 175 | return nil |
| 176 | } |
| 177 | |
| 178 | func (gi *githubImporter) ensureIssue(ctx context.Context, repo *cache.RepoCache, issue *issue, issueEdit *userContentEdit) (*cache.BugCache, error) { |
| 179 | author, err := gi.ensurePerson(ctx, repo, issue.Author) |
no test coverage detected