Placeholder text
This commit is contained in:
@@ -220,17 +220,12 @@ func (m *Manager) reviewPrompt(ctx context.Context, task api.Task, project api.P
|
||||
return "", err
|
||||
}
|
||||
previous = prev.CommitSha
|
||||
} else {
|
||||
parent, err := git.Parent(project.RepoPath, snap.CommitSha)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
previous = parent
|
||||
}
|
||||
changes, err := git.Compare(project.RepoPath, project.DefaultBranch, snap.CommitSha, snap.TreeSha, previous)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
previous = changes.Base
|
||||
if len(changes.Files) == 0 {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user