Skip to content

Commit

Permalink
remove old code
Browse files Browse the repository at this point in the history
Signed-off-by: AvivGuiser <[email protected]>
  • Loading branch information
KyriosGN0 committed Oct 2, 2024
1 parent bd0e151 commit ad876a3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/vcs/github_client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"io"
"net/http"
"net/url"
"regexp"
"strconv"
"strings"
Expand Down Expand Up @@ -193,10 +192,6 @@ func (c *Client) buildRepoFromComment(context context.Context, comment *github.I
owner := comment.GetIssue().GetRepository().GetOwner().GetName()
repo := comment.GetIssue().GetRepository().GetName()
prNumber := comment.GetIssue().GetNumber()
if err != nil {
log.Error().Msgf("failed to convert prNumber: %s", err)
return nilPr
}
pr, ghStatus, err := c.googleClient.PullRequests.Get(context, owner, repo, prNumber)
if err != nil || ghStatus.StatusCode < 200 || ghStatus.StatusCode >= 300 {
log.Error().Msgf("failed to get pull request: %s", err)
Expand Down

0 comments on commit ad876a3

Please sign in to comment.