Documentation ¶
Index ¶
- func CompareVersionNumbers(version1, version2 Version) int
- func ExecCmd(dir string, name string, arg ...string) ([]byte, error)
- func GetBranchesForCommit(repoDir, sha string) (branches []string, err error)
- func GetCommitHash(repoDir string) (hash string, err error)
- func GetPlannerVersions() []macrobench.PlannerVersion
- func ShortenSHA(sha string) string
- type PRInfo
- type Release
- func GetAllVitessReleaseBranchCommitHash(repoDir string) ([]*Release, error)
- func GetAllVitessReleaseCommitHash(repoDir string) ([]*Release, error)
- func GetLastPatchReleaseAndCommitHash(repoDir string, version Version) (*Release, error)
- func GetLastReleaseAndCommitHash(repoDir string) (*Release, error)
- func GetLatestVitessReleaseBranchCommitHash(repoDir string) ([]*Release, error)
- func GetLatestVitessReleaseCommitHash(repoDir string) ([]*Release, error)
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVersionNumbers ¶
CompareVersionNumbers compares the two version numbers provided as input the result is as follows - 0, if version1 == version2 1, if version1 > version2 -1, if version1 < version2
func GetBranchesForCommit ¶
GetBranchesForCommit gets the branches where the commit belong
func GetCommitHash ¶
GetCommitHash gets the commit hash of the current branch
func GetPlannerVersions ¶
func GetPlannerVersions() []macrobench.PlannerVersion
func ShortenSHA ¶
ShortenSHA will return the first 7 characters of a SHA. If the given SHA is too short, it will be returned untouched.
Types ¶
type PRInfo ¶
func GetPullRequestsFromGitHub ¶
GetPullRequestsFromGitHub fetches every pull requests in the provided repo that have the given set of labels. It then returns each pull request's head SHA. The format for repo is: "{USERNAME}/{REPO_NAME}", i.e "vitessio/vitess".
type Release ¶
func GetAllVitessReleaseBranchCommitHash ¶
GetAllVitessReleaseBranchCommitHash gets all the vitess release branches and the commit hashes given the directory of the clone of vitess
func GetAllVitessReleaseCommitHash ¶
GetAllVitessReleaseCommitHash gets all the vitess releases and the commit hashes given the directory of the clone of vitess
func GetLastPatchReleaseAndCommitHash ¶
GetLastPatchReleaseAndCommitHash gets the last release number given the major and minor release number along with the commit hash given the directory of the clone of vitess
func GetLastReleaseAndCommitHash ¶
GetLastReleaseAndCommitHash gets the last release number along with the commit hash given the directory of the clone of vitess
func GetLatestVitessReleaseBranchCommitHash ¶
GetLatestVitessReleaseBranchCommitHash gets the latest vitess release branches and the commit hashes given the directory of the clone of vitess
func GetLatestVitessReleaseCommitHash ¶
GetLatestVitessReleaseCommitHash gets the lastest major vitess releases and the commit hashes given the directory of the clone of vitess