Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestRepository ¶
func TestRepository(t *testing.T, steps ...Step) *git.Repository
TestRepository creates
Types ¶
type Change ¶
type Change struct {
Repository *git.Repository
// PR source branch ref
SourceBranch plumbing.ReferenceName
// PR target branch ref
TargetBranch plumbing.ReferenceName
// PR source branch last commit
SourceLastCommit *object.Commit
// PR target branch last commit
TargetLastCommit *object.Commit
// Source and target latest common commit
CommonCommit *object.Commit
}
func InitLast ¶
func InitLast(rep *git.Repository, lastCommitsCount int) (history Change, err error)
InitLast - last N commits
func InitPR ¶
func InitPR(repository *git.Repository, target plumbing.ReferenceName) (history Change, err error)
InitPR - PR
Click to show internal directories.
Click to hide internal directories.