allow forked repo from forked repo

This commit is contained in:
yp05327 2023-07-11 04:25:41 +00:00
parent 2b0abf9331
commit 4c116821fa
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ func FindRecentlyPushedNewBranches(ctx context.Context, baseRepo *repo_model.Rep
// search all related repos
repoCond := builder.Select("id").From("repository").
Where(builder.Or(
builder.Eq{"id": baseRepo.ID, "is_fork": false},
builder.Eq{"id": baseRepo.ID},
builder.Eq{"is_fork": true, "fork_id": baseRepo.ID},
))
// avoid check branches which have already created PRs