You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--release-notes-file`|`sync`, `complete`, `update`| Same as `--release-notes` but reads from a file. Use `-` for stdin. |
164
164
|`--base-ref`|`sync`| Override the scan base. Exclusive: scans `<base-ref>..HEAD`. |
165
165
|`--json`|`sync`, `complete`, `update`| Output result as JSON on stdout. Logs are emitted as JSON Lines (one object per line) on stderr. |
166
+
|`--dry-run`|`sync`, `complete`, `update`| Scan commits and call read-only Linear APIs (e.g. recent releases, pipeline settings), but skip the create/update mutations. Logs the action that would have been taken. No release is created or modified. |
166
167
|`--quiet`|`sync`, `complete`, `update`| Suppress info-level output. Warnings and errors are still printed. |
167
168
|`--verbose`|`sync`, `complete`, `update`| Print detailed progress including debug diagnostics |
168
169
|`--timeout`|`sync`, `complete`, `update`| Max duration in seconds before aborting (default: 60) |
constscanned=parts.length>0 ? parts.join(", ") : "no new issues or pull requests";
376
388
info(
377
389
`Synced to release ${release.name} (${formatVersion(release)}): ${scanned}${formatLinkSummary(links)}${formatDocumentsSummary(documents)}${formatReleaseNotesSummary(releaseNotes)}`,
378
390
);
@@ -398,6 +410,15 @@ async function completeCommand(): Promise<{
398
410
constcurrentCommit=awaitgetCurrentGitInfo();
399
411
constcommitSha=currentCommit.commit;
400
412
413
+
if(dryRun){
414
+
consttargetName=releaseName??"(current release)";
415
+
constversionPart=releaseVersion ? `version: ${releaseVersion}` : "no version set";
416
+
info(
417
+
`[dry-run] Would complete release ${targetName} (${versionPart})${formatLinkSummary(links)}${formatDocumentsSummary(documents)}${formatReleaseNotesSummary(releaseNotes)}`,
418
+
);
419
+
returnnull;
420
+
}
421
+
401
422
constresult=awaitcompleteRelease({
402
423
name: releaseName,
403
424
version: releaseVersion,
@@ -435,6 +456,15 @@ async function updateCommand(): Promise<{
435
456
thrownewError("--stage=<stage-name> is required for the update command");
436
457
}
437
458
459
+
if(dryRun){
460
+
consttargetName=releaseName??"(current release)";
461
+
constversionPart=releaseVersion ? `version: ${releaseVersion}` : "no version set";
462
+
info(
463
+
`[dry-run] Would update release ${targetName} (${versionPart}) to stage ${stageName}${formatLinkSummary(links)}${formatDocumentsSummary(documents)}${formatReleaseNotesSummary(releaseNotes)}`,
0 commit comments