mirror of
https://github.com/harness/drone.git
synced 2025-05-12 23:20:10 +08:00
[fix] Pull Req creation for existing PR (#292)
This commit is contained in:
parent
9dfad8b5e1
commit
f7099d5923
@ -168,6 +168,7 @@ func (c *Controller) checkIfAlreadyExists(ctx context.Context,
|
||||
map[string]any{
|
||||
"type": "pr already exists",
|
||||
"number": existing[0].Number,
|
||||
"title": existing[0].Title,
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ func (c *Controller) Create(
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err = c.checkIfAlreadyExists(ctx, targetRepo.ID, sourceRepo.ID, in.SourceBranch, in.TargetBranch); err != nil {
|
||||
if err = c.checkIfAlreadyExists(ctx, targetRepo.ID, sourceRepo.ID, in.TargetBranch, in.SourceBranch); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user