gitutil: refactor the way to mock (#6032)

* Refactor the mock module store

* Only test on 1.14.x
This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-03-29 19:37:28 +08:00
committed by GitHub
parent 9356231e64
commit 933206f1fe
7 changed files with 146 additions and 126 deletions

View File

@@ -24,7 +24,7 @@ type PullRequestMeta struct {
NumFiles int
}
func (moduler) PullRequestMeta(headPath, basePath, headBranch, baseBranch string) (*PullRequestMeta, error) {
func (module) PullRequestMeta(headPath, basePath, headBranch, baseBranch string) (*PullRequestMeta, error) {
tmpRemoteBranch := baseBranch
// We need to create a temporary remote when the pull request is sent from a forked repository.