From f03e350e48dbe704a03e8d0982269df123503d24 Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Wed, 3 Sep 2025 08:30:19 +0200 Subject: [PATCH] refs #2508. Force push git option --- src/Controller/UpdateGitImageAction.php | 1 + src/Dto/Input/UpdateGitImageInput.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Controller/UpdateGitImageAction.php b/src/Controller/UpdateGitImageAction.php index b8a8e87..46169f8 100644 --- a/src/Controller/UpdateGitImageAction.php +++ b/src/Controller/UpdateGitImageAction.php @@ -84,6 +84,7 @@ class UpdateGitImageAction extends AbstractController 'diskNumber' => $partition->getDiskNumber(), 'partitionNumber' => $partition->getPartitionNumber(), 'repositoryName' => $input->gitRepository, + 'options' => $input->options ? 'force push' : null, ]; } } \ No newline at end of file diff --git a/src/Dto/Input/UpdateGitImageInput.php b/src/Dto/Input/UpdateGitImageInput.php index 7641cf4..8cc841d 100644 --- a/src/Dto/Input/UpdateGitImageInput.php +++ b/src/Dto/Input/UpdateGitImageInput.php @@ -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; } \ No newline at end of file