refs #2508. Force push git option
testing/ogcore-api/pipeline/head This commit looks good Details

pull/50/head
Manuel Aranda Rosales 2025-09-03 08:30:19 +02:00
parent aff9419e1c
commit f03e350e48
2 changed files with 6 additions and 1 deletions

View File

@ -84,6 +84,7 @@ class UpdateGitImageAction extends AbstractController
'diskNumber' => $partition->getDiskNumber(),
'partitionNumber' => $partition->getPartitionNumber(),
'repositoryName' => $input->gitRepository,
'options' => $input->options ? 'force push' : null,
];
}
}

View File

@ -32,6 +32,10 @@ class UpdateGitImageInput
public ?string $destinationBranch = null;
#[Groups(['git-repository:write'])]
#[ApiProperty(description: 'Whether to queue the update', example: false)]
#[ApiProperty(description: 'Whether to push the image to the Git repository', example: false)]
public ?bool $options = null;
#[Groups(['git-repository:write'])]
#[ApiProperty(description: 'Whether to queue the update for later', example: false)]
public bool $queue = false;
}