MergeBase returns the computed merge-base commit hash for range mode.
(ctx context.Context)
| 196 | |
| 197 | // MergeBase returns the computed merge-base commit hash for range mode. |
| 198 | func (p *Provider) MergeBase(ctx context.Context) string { |
| 199 | if p.mode != ModeRange || p.mergeBase != "" { |
| 200 | return p.mergeBase |
| 201 | } |
| 202 | p.mergeBase = p.computeMergeBase(ctx, p.from, p.to) |
| 203 | return p.mergeBase |
| 204 | } |
| 205 | |
| 206 | // GetDiff returns the changes available to a review as parsed model.Diff structs. |
| 207 | func (p *Provider) GetDiff(ctx context.Context) ([]model.Diff, error) { |
no test coverage detected