Skip to content

Feature Request: Allow configuration of commit branch #1399

@JohnniDi

Description

@JohnniDi

Is your feature request related to a problem?

Currently opencli will push a new branch with changes that is named opencli_<some long hash>
This will not work with our internal processes and especially not with our remaining jenkins automation.

Solution you'd like

It would be great if the scm definitions allow a configuration to give the working branch a specific name.

Alternatives you've considered

No response

Anything else?

This seems to be already somewhat prepared:
git

func (g *Git) GetBranches() (sourceBranch, workingBranch, targetBranch string) {
	sourceBranch = g.spec.Branch
	workingBranch = g.spec.Branch
	targetBranch = g.spec.Branch

stash

func (s *Stash) GetBranches() (sourceBranch, workingBranch, targetBranch string) {
	sourceBranch = s.Spec.Branch
	workingBranch = s.nativeGitHandler.SanitizeBranchName(fmt.Sprintf("updatecli_%v", s.pipelineID))
	targetBranch = s.Spec.Branch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions