master
Jonas Franz 6 years ago
parent e0e67f98c6
commit d872c424b5
  1. 3
      migrations/github.go
  2. 6
      migrations/job_test.go

@ -99,8 +99,9 @@ func (fm *FetchMigratory) MigrateFromGitHub() error {
"repo": fmt.Sprintf("%s/%s", fm.RepoOwner, fm.RepoName),
}).Errorf("migration failed: %v", fm.Status.FatalError)
return err
} else {
comments = *cmts
}
comments = *cmts
if err != nil {
fm.Status.Stage = Failed
fm.Status.FatalError = err

@ -10,9 +10,11 @@ import (
func TestJob_StatusReport(t *testing.T) {
jobWithStatus := func(status *MigratoryStatus) *Job {
return &Job{
migratories: map[string]*Migratory{
migratories: map[string]*FetchMigratory{
"test/test": {
Status: status,
Migratory: Migratory{
Status: status,
},
},
},
Repositories: []string{

Loading…
Cancel
Save