Documentation ¶
Index ¶
Constants ¶
View Source
const TracebackLimit = 100
View Source
const (
// Version represents a version of ghsync package.
Version = "0.0.8"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentRepository ¶
type ContentRepositoryFactory ¶
type ContentRepositoryFactory interface {
Create(ctx context.Context, slug, base, head string, md *OriginMetadata) (ContentRepository, error)
}
func NewGithubContentRepositoryFactory ¶
func NewGithubContentRepositoryFactory( cli *github.Client, ) ContentRepositoryFactory
type GithubContentSubmodule ¶
type GithubContentSubmodule struct {
// contains filtered or unexported fields
}
func (*GithubContentSubmodule) GetPath ¶
func (c *GithubContentSubmodule) GetPath() string
func (*GithubContentSubmodule) GetSHA ¶
func (c *GithubContentSubmodule) GetSHA() string
type LocalSubmodule ¶
type LocalSubmodule struct {
SHA string
}
func (*LocalSubmodule) GetPath ¶
func (c *LocalSubmodule) GetPath() string
func (*LocalSubmodule) GetSHA ¶
func (c *LocalSubmodule) GetSHA() string
type OriginMetadata ¶
type OriginMetadata struct { Owner string Repo string Branch string SHA string URL string PR int // contains filtered or unexported fields }
OriginMetadata contains the current repository metadata.
func BuildMetadata ¶
func BuildMetadata(ctx context.Context) (*OriginMetadata, error)
BuildMetadata collects data from a current environment.
func (*OriginMetadata) GetCommitURL ¶
func (m *OriginMetadata) GetCommitURL() string
func (*OriginMetadata) GetPRURL ¶
func (m *OriginMetadata) GetPRURL() string
func (*OriginMetadata) GetSlug ¶
func (m *OriginMetadata) GetSlug() string
func (*OriginMetadata) IsPR ¶
func (m *OriginMetadata) IsPR() bool
Click to show internal directories.
Click to hide internal directories.