Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into tommy/reduce-context-pr-review-comments
  • Loading branch information
tommaso-moro committed Feb 23, 2026
commit 2fe70775d306b17482341969e15aa14d22bb53ff
16 changes: 16 additions & 0 deletions pkg/github/minimal_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,22 @@ type MinimalReviewThreadsResponse struct {
PageInfo MinimalPageInfo `json:"page_info"`
}
Comment thread
tommaso-moro marked this conversation as resolved.

func convertToMinimalPRFiles(files []*github.CommitFile) []MinimalPRFile {
result := make([]MinimalPRFile, 0, len(files))
for _, f := range files {
result = append(result, MinimalPRFile{
Filename: f.GetFilename(),
Status: f.GetStatus(),
Additions: f.GetAdditions(),
Deletions: f.GetDeletions(),
Changes: f.GetChanges(),
Patch: f.GetPatch(),
PreviousFilename: f.GetPreviousFilename(),
})
}
return result
}

// convertToMinimalBranch converts a GitHub API Branch to MinimalBranch
func convertToMinimalBranch(branch *github.Branch) MinimalBranch {
return MinimalBranch{
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.