Skip to content

Commit

Permalink
Update pullRequest.go
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-hura authored Dec 6, 2024
1 parent 291c33c commit ced57af
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pullRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ func createPullRequest(client *github.Client, ctx *context.Context, repositoryNa
&github.NewPullRequest{Title: &title, Body: &body, Head: &sourceBranch, Base: &targetBranch})
if err != nil {
ghErr, _ := err.(*github.ErrorResponse)
fmt.Println(err)
if strings.HasPrefix(ghErr.Errors[0].Message, "A pull request already exists") {
fmt.Println("Pull Request with requested head and base already exists. Getting it's Number.")
options := &github.PullRequestListOptions{
Expand Down

0 comments on commit ced57af

Please sign in to comment.