Documentation
¶
Index ¶
- Constants
- func AiderCommand(contextFile string, step settings.Step, config settings.Aider) string
- func GetAllPossiblePaths(projectConfig settings.Project, projectRepo redminemodels.Repository, ...) ([]string, error)
- func IsAiderInstalled() bool
- func IsGitInstalled() bool
- func IsTreeInstalled() bool
- type Git
- func (g *Git) Add(path string) error
- func (g *Git) BranchExists(branchName string) (bool, error)
- func (g *Git) BranchName(issueID int) string
- func (g *Git) CheckoutBranch(branchName string) error
- func (g *Git) Commit(message string) (string, error)
- func (g *Git) DeleteBranch(branchName string) error
- func (g *Git) ExecCheckoutBranch(branchName string) error
- func (g *Git) GetAffectedFiles(sha string) ([]string, error)
- func (g *Git) GetCurrentBranchName() (string, error)
- func (g *Git) GetLastCommitHash() (string, error)
- func (g *Git) GetLastCommits(count int) ([]string, error)
- func (g *Git) GetPath() string
- func (g *Git) Open() error
- func (g *Git) Reload()
- func (g *Git) SetPath(path string)
- type GitInterface
- type Output
- type Workbench
- func (i *Workbench) CheckoutBranch(branchName string) error
- func (i *Workbench) DeleteBranch(branch string) error
- func (i *Workbench) GetAffectedFiles(sha string) ([]string, error)
- func (i *Workbench) GetBranchCommits(count int) ([]string, error)
- func (i *Workbench) GetCommitsSinceInReverseOrder(sinceSha string) ([]string, error)
- func (i *Workbench) GetIssueBranchName(issue redmine.Issue) string
- func (i *Workbench) GetIssueBranchNameOverride(issue redmine.Issue) string
- func (i *Workbench) GetIssueSkipMergeOverride(issue redmine.Issue) bool
- func (i *Workbench) GetLastCommit() (string, error)
- func (i *Workbench) GoToRepo() error
- func (i *Workbench) PrepareWorkplace(targetBranches ...string) error
Constants ¶
View Source
const BranchPrefix = "AI"
BranchPrefix is the prefix for the branch name
Variables ¶
This section is empty.
Functions ¶
func AiderCommand ¶
func GetAllPossiblePaths ¶
func GetAllPossiblePaths(projectConfig settings.Project, projectRepo redminemodels.Repository, forGit bool) ([]string, error)
func IsAiderInstalled ¶ added in v0.9.1
func IsAiderInstalled() bool
func IsGitInstalled ¶ added in v0.9.1
func IsGitInstalled() bool
func IsTreeInstalled ¶ added in v1.0.1
func IsTreeInstalled() bool
Types ¶
type Git ¶
type Git struct {
Opened bool
// contains filtered or unexported fields
}
func FindProjectGit ¶
func FindProjectGit(projectConfig settings.Project, projectRepo redminemodels.Repository) (*Git, error)
func (*Git) BranchExists ¶ added in v0.9.1
func (*Git) BranchName ¶
func (*Git) CheckoutBranch ¶
CheckoutBranch checks out a branch or creates if missing. go-git can fail if there are files that are not in gitignore.
func (*Git) DeleteBranch ¶
func (*Git) ExecCheckoutBranch ¶ added in v0.9.1
func (*Git) GetCurrentBranchName ¶
GetCurrentBranchName returns the current branch name
func (*Git) GetLastCommitHash ¶
func (*Git) GetLastCommits ¶
GetLastCommits returns the last n commit hashes. First commit is the most recent one.
type GitInterface ¶
type GitInterface interface {
GetAffectedFiles(sha string) ([]string, error)
GetLastCommits(count int) ([]string, error)
GetLastCommitHash() (string, error)
BranchName(issueID int) string
CheckoutBranch(name string) error
ExecCheckoutBranch(name string) error
GetPath() string
SetPath(path string)
Reload()
DeleteBranch(string) error
}
type Output ¶
func WithContext ¶
WithContext executes command with context for cancellation and timeout.
type Workbench ¶
type Workbench struct {
Git GitInterface
Issue redmine.Issue
WorkingDir string
}
func (*Workbench) CheckoutBranch ¶ added in v0.9.1
func (*Workbench) DeleteBranch ¶
func (*Workbench) GetAffectedFiles ¶
func (*Workbench) GetBranchCommits ¶
GetBranchCommits last is newest. First commit is the newest one.
func (*Workbench) GetCommitsSinceInReverseOrder ¶
func (*Workbench) GetIssueBranchName ¶
func (*Workbench) GetIssueBranchNameOverride ¶
GetIssueBranchNameOverride in UI user can set branch name override. Use it if set.
func (*Workbench) GetIssueSkipMergeOverride ¶ added in v0.9.1
GetIssueSkipMergeOverride in UI user can set flag to not merge into parent. Use it if set.
func (*Workbench) GetLastCommit ¶
GetLastCommit returns the last commit hash
func (*Workbench) PrepareWorkplace ¶
Click to show internal directories.
Click to hide internal directories.