Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): add git param with prefix for children #4189

Merged
merged 2 commits into from
Apr 15, 2019
Merged

Conversation

sguiheux
Copy link
Collaborator

  1. Description
  2. Related issues
  3. About tests
  4. Mentions

@ovh/cds

@@ -177,15 +177,17 @@ func getParentParameters(w *sdk.WorkflowRun, nodeRuns []*sdk.WorkflowNodeRun) ([
// We inherite git variables is there is more than one repositories in the whole workflow
if strings.HasPrefix(param.Name, "git.") {
parentParams = append(parentParams, param)

// Create parent param
param.Name = strings.Replace(param.Name, "git.", prefix+"git.", 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vs param.Name = prefix + param.Name ?

@richardlt richardlt merged commit 43798f0 into master Apr 15, 2019
@yesnault yesnault deleted the fixGitParam branch April 30, 2019 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants