Skip to content

Commit

Permalink
Passthrough directory and directories config verbatim, don't transfor…
Browse files Browse the repository at this point in the history
…m it
  • Loading branch information
rhyskoedijk committed Oct 12, 2024
1 parent 2358a14 commit 977dc3a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ function buildUpdateJobConfig(
updateDependencyNames: string[] | undefined,
existingPullRequests: any[],
) {
const hasMultipleDirectories = update.directories?.length > 1;
return {
config: update,
job: {
Expand All @@ -110,8 +109,8 @@ function buildUpdateJobConfig(
'repo': `${taskInputs.organization}/${taskInputs.project}/_git/${taskInputs.repository}`,
'branch': update['target-branch'],
'commit': undefined, // use latest commit of target branch
'directory': hasMultipleDirectories ? undefined : update.directory || '/',
'directories': hasMultipleDirectories ? update.directories : undefined,
'directory': update.directory,
'directories': update.directories,
},
'existing-pull-requests': existingPullRequests.filter((pr) => !pr['dependency-group-name']),
'existing-group-pull-requests': existingPullRequests.filter((pr) => pr['dependency-group-name']),
Expand Down

0 comments on commit 977dc3a

Please sign in to comment.