mirror of
https://github.com/gogs/gogs.git
synced 2025-12-17 12:03:16 +01:00
gitutil: refactor the way to mock (#6032)
* Refactor the mock module store * Only test on 1.14.x
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user