Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Feb 7, 2025
1 parent 461b8b2 commit 9cc9716
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,6 @@ func (g *Git) GetChangedFilesForPRorBranch() ([]string, error) {
return nil, fmt.Errorf("failed to read workflow event payload: %w", err)
}

fmt.Println(string(data))

var payload struct {
Number int `json:"number"`
Repository struct {
Expand Down Expand Up @@ -958,7 +956,6 @@ func (g *Git) GetChangedFilesForPRorBranch() ([]string, error) {
// Get the feature branch reference
branchRef, err := g.repo.Reference(plumbing.ReferenceName(environment.GetRef()), true)
if err != nil {
fmt.Println("REFERENCE", environment.GetRef())
return nil, fmt.Errorf("failed to get feature branch reference: %w", err)
}

Expand Down Expand Up @@ -999,10 +996,7 @@ func (g *Git) GetChangedFilesForPRorBranch() ([]string, error) {
pageCount++
}

// Log total pages fetched (useful for debugging)
logging.Info("Total API pages fetched: %d", pageCount)
logging.Info("Changed files: %v", files)

logging.Info("Found %d files", len(files))
return files, nil

} else {
Expand All @@ -1026,6 +1020,8 @@ func (g *Git) GetChangedFilesForPRorBranch() ([]string, error) {
opts.Page = resp.NextPage
}

logging.Info("Found %d files", len(allFiles))

return allFiles, nil
}
}
Expand Down

0 comments on commit 9cc9716

Please sign in to comment.