Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReviewContext ¶
type ReviewContext struct {
Platform Platform
RemoteName string
RemoteURL string
Review domain.ReviewRef
}
func ResolveReviewContext ¶
func ResolveReviewContext(ctx context.Context, dir string) (ReviewContext, error)
func ResolveReviewContextWithBranch ¶
func ResolveReviewContextWithBranch(ctx context.Context, dir string, headBranch string) (ReviewContext, error)
ResolveReviewContextWithBranch resolves remotes and platform from dir, using the provided headBranch instead of running git branch --show-current. This is necessary for bare repos where --show-current always fails.
Click to show internal directories.
Click to hide internal directories.