diff options
Diffstat (limited to 'bridge/github')
-rw-r--r-- | bridge/github/config.go | 5 | ||||
-rw-r--r-- | bridge/github/import.go | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/bridge/github/config.go b/bridge/github/config.go index 0093ec38..a7af3c02 100644 --- a/bridge/github/config.go +++ b/bridge/github/config.go @@ -289,10 +289,7 @@ func promptToken() (*auth.Token, error) { fmt.Println(" - 'repo' : to be able to read private repositories") fmt.Println() - re, err := regexp.Compile(`^[a-zA-Z0-9]{40}$`) - if err != nil { - panic("regexp compile:" + err.Error()) - } + re := regexp.MustCompile(`^[a-zA-Z0-9]{40}$`) var login string diff --git a/bridge/github/import.go b/bridge/github/import.go index 58fec98c..7aec809f 100644 --- a/bridge/github/import.go +++ b/bridge/github/import.go @@ -165,7 +165,7 @@ func (gi *githubImporter) ensureIssue(repo *cache.RepoCache, issue issueTimeline b, _, err = repo.NewBugRaw( author, issue.CreatedAt.Unix(), - issue.Title, + issue.Title, // TODO: this is the *current* title, not the original one cleanText, nil, map[string]string{ |