Skip to content

Commit

Permalink
processor: add another condition to waitForRepoMigration
Browse files Browse the repository at this point in the history
- The repo gets cloned before initializing the value for
  `default_branch` this can cause the jobs to get created without
  `default_branch`.
  • Loading branch information
AbdulrhmnGhanem committed Sep 28, 2022
1 parent 165e418 commit 5c27d0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion processor/src/giteatDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export const giteaDB: GiteaDB = {
row =>
row.repo_id === repoId &&
row.type === TaskType.Migration &&
row.status === MigrationStatus.Done,
row.status === MigrationStatus.Done &&
row.default_branch !== ''
)
},

Expand Down

0 comments on commit 5c27d0c

Please sign in to comment.