Documentation
¶
Index ¶
- func CleanColorCodes(input string) string
- func CompareKeys(vars1, vars2 *OrderedMap) ([]string, []string)
- func CompareValues(vars1, vars2 *OrderedMap) map[string][2]interface{}
- func CompareYAMLFilesLineByLine(file1Path, file2Path string) (string, error)
- func CreateBranch(client *gitlab.Client, projectID int, newBranch, baseBranch string) error
- func CreateGitLabClient(gitlabURL, gitlabToken string) (*gitlab.Client, error)
- func CreateMergeRequest(client *gitlab.Client, projectID int, ...) error
- func CreateOrUpdateFile(client *gitlab.Client, projectID int, ...) error
- func FileExists(client *gitlab.Client, projectID int, filePath, branch string) (bool, string, error)
- func GenerateKeysComparisonYAML(onlyInFile1, onlyInFile2 []string) (string, error)
- func GenerateUpdatedYAML(vars1, vars2 *OrderedMap) (string, error)
- func GenerateValuesComparisonYAML(differences map[string][2]interface{}) (string, error)
- func HandleGitLabMergeRequest(...) error
- func MergeRequestExists(client *gitlab.Client, projectID int, sourceBranch, targetBranch string) (bool, error)
- func ReadFileContent(filePath string) (string, error)
- type OrderedMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanColorCodes ¶
func CompareKeys ¶
func CompareKeys(vars1, vars2 *OrderedMap) ([]string, []string)
func CompareValues ¶
func CompareValues(vars1, vars2 *OrderedMap) map[string][2]interface{}
func CreateBranch ¶
CreateBranch создает новую ветку в GitLab
func CreateGitLabClient ¶
CreateGitLabClient создает клиент GitLab
func CreateMergeRequest ¶
func CreateMergeRequest(client *gitlab.Client, projectID int, sourceBranch, targetBranch, title, description string, squash, removeSourceBranch bool) error
CreateMergeRequest создает merge request в GitLab
func CreateOrUpdateFile ¶
func CreateOrUpdateFile(client *gitlab.Client, projectID int, filePath, content, branch, commitMessage string) error
CreateOrUpdateFile создает или обновляет файл в GitLab
func FileExists ¶
func FileExists(client *gitlab.Client, projectID int, filePath, branch string) (bool, string, error)
FileExists проверяет, существует ли файл в GitLab
func GenerateUpdatedYAML ¶
func GenerateUpdatedYAML(vars1, vars2 *OrderedMap) (string, error)
func HandleGitLabMergeRequest ¶
func HandleGitLabMergeRequest(gitlabURL, gitlabToken, srcFilePath, filePath, baseBranch, newBranch, targetBranch, projectID, mrTitle, mrDescription string, mrSquash, mrRemoveSourceBranch bool) error
HandleGitLabMergeRequest выполняет все действия для создания merge request в GitLab
func MergeRequestExists ¶
func MergeRequestExists(client *gitlab.Client, projectID int, sourceBranch, targetBranch string) (bool, error)
MergeRequestExists проверяет, существует ли merge request для данной ветки
func ReadFileContent ¶
ReadFileContent читает содержимое файла
Types ¶
type OrderedMap ¶
func LoadVariablesFromYAMLWithOrder ¶
func LoadVariablesFromYAMLWithOrder(filePath string) (*OrderedMap, error)
Click to show internal directories.
Click to hide internal directories.