PR: only consider open PR when creating new PRs

This commit is contained in:
2025-09-21 23:21:40 +02:00
parent 58022c6edc
commit d2973f4792

View File

@@ -658,7 +658,7 @@ func (gitea *GiteaTransport) CreatePullRequestIfNotExist(repo *models.Repository
WithBase(targetId).
WithHead(srcId),
gitea.transport.DefaultAuthentication,
); err == nil {
); err == nil && pr.Payload.State == "open" {
return pr.Payload, nil
}