Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CherryPicker ¶
CherryPicker handles Git CLI cherry-pick operations
func NewCherryPicker ¶
func NewCherryPicker(logger *logrus.Logger, repoURL, token, owner, repo string, prID int) *CherryPicker
NewCherryPicker creates a new CherryPicker instance
func NewCherryPickerForPlatform ¶
func NewCherryPickerForPlatform(logger *logrus.Logger, platform Platform, token, owner, repo, baseURL string, prID int) (*CherryPicker, error)
NewCherryPickerForPlatform creates a CherryPicker instance for the specified platform
func (*CherryPicker) CherryPickCommit ¶
func (cp *CherryPicker) CherryPickCommit(commitSHA, targetBranch string) error
CherryPickCommit performs a cherry-pick operation using Git CLI
func (*CherryPicker) CherryPickCommits ¶
func (cp *CherryPicker) CherryPickCommits(commits []git.Commit, targetBranch string) error
CherryPickCommits performs cherry-pick operations for multiple commits using Git CLI
func (*CherryPicker) GetCherryPickBranchName ¶
func (cp *CherryPicker) GetCherryPickBranchName(commitSHA, targetBranch string) string
GetCherryPickBranchName returns the name of the branch that was created for cherry-pick Format: cherry-pick-{PR_ID}-to-{target_branch}-{short_sha}
Click to show internal directories.
Click to hide internal directories.