func (vc *VersionController) GetPullRequests(ctx context.Context, branchName string) ([]scm.PullRequest, error) {
	ret := make([]scm.PullRequest, 0, len(vc.PullRequests))
	for _, pr := range vc.PullRequests {
		if pr.NewPullRequest.Head == branchName {
			ret = append(ret, pr)
		}
	}
	return ret, nil
}
GetPullRequests gets mock pull request statuses
package vcmock
import (
	"context"
	"errors"
	"fmt"
	"os"
	"path/filepath"
	git "github.com/go-git/go-git/v5"
	"github.com/lindell/multi-gitter/internal/scm"
)
type VersionController struct {
	PRNumber     int
	Repositories []Repository
	PullRequests []PullRequest
}
func (vc *VersionController) GetRepositories(ctx context.Context) ([]scm.Repository, error) {
	ret := make([]scm.Repository, len(vc.Repositories))
	for i := range vc.Repositories {
		ret[i] = vc.Repositories[i]
	}
	return ret, nil
}
func (vc *VersionController) CreatePullRequest(ctx context.Context, repo scm.Repository, prRepo scm.Repository, newPR scm.NewPullRequest) (scm.PullRequest, error) {
	repository := repo.(Repository)
	vc.PRNumber++
	pr := PullRequest{
		PRStatus:       scm.PullRequestStatusPending,
		PRNumber:       vc.PRNumber,
		Repository:     repository,
		NewPullRequest: newPR,
	}
	vc.PullRequests = append(vc.PullRequests, pr)
	return pr, nil
}