Documentation ¶
Index ¶
- func AddCommit(repo SDKRepository, newVersion string) error
- func ContainsPackage(root, readme, tag string) (autorest.GenerationMetadata, bool)
- func GetForkRemote(repo WorkTree) (forkRemote *git.Remote, err error)
- func GetLatestVersion(wt SDKRepository) (*semver.Version, error)
- func GetPackagesReportFromContent(lhs RepoContent, targetRoot string) (*report.PkgsReport, error)
- func GetPkgsReport(lhs, rhs RepoContent, option *report.GenerationOption) report.PkgsReport
- func GetRemoteUserName(remote *git.Remote) string
- func GetVersion(content string) (*semver.Version, error)
- func IsNothingToCommit(err error) bool
- func ModifyVersionFile(absSDK, lastVersion, newVersion string) error
- func ReleaseTitle(branchName string) string
- func TempDir() string
- type Branch
- type CheckoutOptions
- type CommandContext
- type NothingToCommit
- type RepoContent
- type RepositoryWithChangelog
- type SDKRepository
- type SpecRepository
- type WorkTree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommit ¶
func AddCommit(repo SDKRepository, newVersion string) error
func ContainsPackage ¶
func ContainsPackage(root, readme, tag string) (autorest.GenerationMetadata, bool)
func GetForkRemote ¶
func GetLatestVersion ¶
func GetLatestVersion(wt SDKRepository) (*semver.Version, error)
func GetPackagesReportFromContent ¶
func GetPackagesReportFromContent(lhs RepoContent, targetRoot string) (*report.PkgsReport, error)
func GetPkgsReport ¶
func GetPkgsReport(lhs, rhs RepoContent, option *report.GenerationOption) report.PkgsReport
GetPkgsReport generates a PkgsReport based on the delta between lhs and rhs
func GetRemoteUserName ¶
func GetRemoteUserName(remote *git.Remote) string
GetRemoteUserName https://github.com/githubName/azure-sdk-for-go.git
func IsNothingToCommit ¶
func ModifyVersionFile ¶
func ReleaseTitle ¶
Types ¶
type CheckoutOptions ¶
type CheckoutOptions git.CheckoutOptions
type CommandContext ¶
type CommandContext interface { SDK() SDKRepository Spec() SpecRepository CreateReleaseBranch(version string) (string, error) CheckExternalChanges() }
func NewCommandContext ¶
func NewCommandContext(sdkPath, specPath string, panicWhenDetectExternalChanges bool) (CommandContext, error)
type NothingToCommit ¶
type NothingToCommit struct {
// contains filtered or unexported fields
}
func (*NothingToCommit) Error ¶
func (n *NothingToCommit) Error() string
type RepoContent ¶
func GetRepoContent ¶
func GetRepoContent(sdkRoot string) (RepoContent, error)
type RepositoryWithChangelog ¶
type RepositoryWithChangelog interface {
ReportForCommit(commit string) (RepoContent, error)
}
type SDKRepository ¶
type SDKRepository interface { WorkTree RepositoryWithChangelog CreateReleaseBranch(releaseBranchName string) error AddReleaseCommit(rpName, namespaceName, specHash, version string) error }
func CloneSDKRepository ¶
func CloneSDKRepository(repoUrl, commitID string) (SDKRepository, error)
func OpenSDKRepository ¶
func OpenSDKRepository(path string) (SDKRepository, error)
type SpecRepository ¶
func CloneSpecRepository ¶
func CloneSpecRepository(repoUrl, commitID string) (SpecRepository, error)
func OpenSpecRepository ¶
func OpenSpecRepository(path string) (SpecRepository, error)
type WorkTree ¶
type WorkTree interface { Root() string Add(path string) error Commit(message string) error Checkout(opt *CheckoutOptions) error CheckoutTag(tag string) error CreateBranch(branch *Branch) error DeleteBranch(name string) error CherryPick(commit string) error Stash() error StashPop() error Head() (*plumbing.Reference, error) Tags() (storer.ReferenceIter, error) Remotes() ([]*git.Remote, error) DeleteRemote(name string) error CreateRemote(c *config.RemoteConfig) (*git.Remote, error) Fetch(o *git.FetchOptions) error }
func CloneWorkTree ¶
func NewWorkTree ¶
Click to show internal directories.
Click to hide internal directories.