mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
github: warning when the comment to be edited is missing instead of failing
fix #286
This commit is contained in:
parent
a785bcdad6
commit
ee48aef489
@ -201,6 +201,11 @@ func (gi *githubImporter) ensureIssue(repo *cache.RepoCache, issue issueTimeline
|
||||
|
||||
// other edits will be added as CommentEdit operations
|
||||
target, err := b.ResolveOperationWithMetadata(metaKeyGithubId, parseId(issue.Id))
|
||||
if err == cache.ErrNoMatchingOp {
|
||||
// original comment is missing somehow, issuing a warning
|
||||
gi.out <- core.NewImportWarning(fmt.Errorf("comment ID %s to edit is missing", parseId(issue.Id)), b.Id())
|
||||
continue
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user