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