Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/fix-ci-flag-namespace-prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"flatfile": patch
---

Fix CLI deploy command namespace prompt in CI mode

The deploy command's namespace prompt was not respecting the --ci flag, causing CI pipelines to hang when no namespace was provided via options or environment variables. Now the prompt is skipped in CI mode.
2 changes: 1 addition & 1 deletion packages/cli/src/x/actions/deploy.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export async function deployAction(

const namespacePrefixes = ['space:', 'workbook:', 'sheet:']
let namespace = options?.namespace
if (!selectedAgent && !namespace && !process.env.FLATFILE_AGENT_NAMESPACE) {
if (!selectedAgent && !namespace && !process.env.FLATFILE_AGENT_NAMESPACE && !options?.ci) {
const input = await prompts(
{
type: 'text',
Expand Down