Fix breaking change with dry run input (#21356)

- fix dry-run input parameter breaking change
- remove duplicated log
This commit is contained in:
martmull
2026-06-09 11:06:27 +02:00
committed by GitHub
parent 441fe73be5
commit 1d81bdbb22
3 changed files with 13 additions and 57 deletions
@@ -269,16 +269,27 @@ export class ApplicationApi {
>
> {
try {
const mutation = `
const isDryRun = options?.dryRun ?? false;
const mutation = isDryRun
? `
mutation SyncApplication($manifest: JSON!, $dryRun: Boolean) {
syncApplication(manifest: $manifest, dryRun: $dryRun) {
applicationUniversalIdentifier
actions
}
}
`
: `
mutation SyncApplication($manifest: JSON!) {
syncApplication(manifest: $manifest) {
applicationUniversalIdentifier
actions
}
}
`;
const variables = { manifest, dryRun: options?.dryRun ?? false };
const variables = isDryRun ? { manifest, dryRun: true } : { manifest };
const response = await this.client.post(
'/metadata',