PR: only consider open PR when creating new PRs
This commit is contained in:
@@ -658,7 +658,7 @@ func (gitea *GiteaTransport) CreatePullRequestIfNotExist(repo *models.Repository
|
|||||||
WithBase(targetId).
|
WithBase(targetId).
|
||||||
WithHead(srcId),
|
WithHead(srcId),
|
||||||
gitea.transport.DefaultAuthentication,
|
gitea.transport.DefaultAuthentication,
|
||||||
); err == nil {
|
); err == nil && pr.Payload.State == "open" {
|
||||||
return pr.Payload, nil
|
return pr.Payload, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user