Add Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versions and server logs query - #203
Conversation
Set the isContentstackAuthenticationEnabled environment field when creating a new Launch project, for both the GitHub and FileUpload flows. Contentstack Authentication is enabled by default; users can opt out with the new --disable-cs-auth flag or by answering "no" at the interactive prompt (which defaults to enabled). #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
feat: Add Contentstack Authentication toggle to project creation.
…onnections. - Added functionality to scope queries to the selected GitHub connection namespace in BaseClass methods detectFramework and selectBranch. - Updated GitHub adapter to handle multiple user connections, allowing users to select a namespace or use a --namespace flag. - Enhanced tests to cover new namespace selection logic and ensure proper handling of GitHub connections. - Updated GraphQL queries and types to include namespace information for user connections. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Tejas Talekar <tejas.talekar@contentstack.com> Co-Authored-By: Claude <noreply@anthropic.com>
feat: add support for choosing namespace in case of multiple github connections.
fix: update GitHub connection URL to direct users to connected accounts settings
chore: bump cli-command to 1.8.4 and cli-utilities to 1.18.5
Add Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versions
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
Set the isContentstackAuthenticationEnabled environment field when creating a new Launch project, for both the GitHub and FileUpload flows. Contentstack Authentication is enabled by default; users can opt out with the new --disable-cs-auth flag or by answering "no" at the interactive prompt (which defaults to enabled). #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…onnections. - Added functionality to scope queries to the selected GitHub connection namespace in BaseClass methods detectFramework and selectBranch. - Updated GitHub adapter to handle multiple user connections, allowing users to select a namespace or use a --namespace flag. - Enhanced tests to cover new namespace selection logic and ensure proper handling of GitHub connections. - Updated GraphQL queries and types to include namespace information for user connections. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Tejas Talekar <tejas.talekar@contentstack.com> Co-Authored-By: Claude <noreply@anthropic.com>
Add Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versions
Add Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versions
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
… updated windowed server logs query
49bd7c3
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
Set the isContentstackAuthenticationEnabled environment field when creating a new Launch project, for both the GitHub and FileUpload flows. Contentstack Authentication is enabled by default; users can opt out with the new --disable-cs-auth flag or by answering "no" at the interactive prompt (which defaults to enabled). #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…onnections. - Added functionality to scope queries to the selected GitHub connection namespace in BaseClass methods detectFramework and selectBranch. - Updated GitHub adapter to handle multiple user connections, allowing users to select a namespace or use a --namespace flag. - Enhanced tests to cover new namespace selection logic and ensure proper handling of GitHub connections. - Updated GraphQL queries and types to include namespace information for user connections. #claude_code# 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Tejas Talekar <tejas.talekar@contentstack.com> Co-Authored-By: Claude <noreply@anthropic.com>
… updated windowed server logs query
Add Contentstack Authentication toggle to project creation, Add support for choosing namespace in case of multiple github connections and Update package versions and server logs query
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
There was a problem hiding this comment.
Pull request overview
This PR enhances the Launch CLI project creation and GitHub integration flow by introducing a Contentstack Authentication toggle, supporting selection/scoping for multiple GitHub connections via namespace, and aligning server logs polling with an updated GraphQL query version. It also bumps several package versions.
Changes:
- Add
--enable-cs-auth/--disable-cs-authflow and propagateisContentstackAuthenticationEnabledinto project creation for both GitHub and FileUpload adapters. - Support selecting a GitHub connection when multiple connections exist, including a
--namespaceflag and namespace-scoped repository/framework/branch queries. - Update serverless logs GraphQL query to
GetServerlessLogsV2and adjust polling/tests accordingly; bump dependency versions.
Reviewed changes
Copilot reviewed 14 out of 15 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/unit/util/logs-polling-utilities.test.ts | Updates mocked server logs payload to getServerlessLogsV2. |
| src/util/logs-polling-utilities.ts | Reads server logs from data.getServerlessLogsV2.logs. |
| src/types/launch.ts | Adds isContentstackAuthenticationEnabled and a typed userConnection (incl. namespace). |
| src/graphql/queries.ts | Adds namespace to user connections; updates serverless logs query to V2; removes connectionUid from projects query. |
| src/commands/launch/logs.ts | Fixes environment selection to use the chosen environment’s deployments instead of the first environment. |
| src/commands/launch/index.ts | Adds namespace, --enable-cs-auth, --disable-cs-auth flags and an example. |
| src/adapters/github.ts | Adds CS auth prompt/flags handling; supports namespace selection; scopes repository query and improves related error messaging. |
| src/adapters/github.test.ts | Adds tests for namespace selection/scoping and CS auth toggle behavior. |
| src/adapters/file-upload.ts | Adds CS auth prompt/flags handling and passes the value into project creation mutation. |
| src/adapters/file-upload.test.ts | Adds tests for CS auth prompt/flags behavior. |
| src/adapters/base-class.ts | Scopes framework detection and branch queries by selected connection namespace; updates GitHub connect URL. |
| src/adapters/base-class.test.ts | Adds tests verifying namespace is included in framework and branch queries. |
| package.json | Bumps package version and updates dependency versions. |
| package-lock.json | Updates lockfile to reflect bumped deps and transitive changes. |
| .talismanrc | Updates checksums and adds ignores for adapter test files. |
Suppressed comments (1)
src/adapters/github.test.ts:636
- New inline comment inside the empty
catchblock violates the repo guideline of not adding code comments, and it can be replaced with an assertion on the thrown error instead.
try {
await githubAdapterInstance.checkGitRemoteAvailableAndValid();
} catch {
// exitMock throws to halt the flow under test, same as sibling tests in this file
}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
feat: Add Contentstack Authentication toggle to project creation
feat: add support for choosing namespace in case of multiple github connections
fix: update GitHub connection URL to direct users to connected accounts settings
chore: bump cli-command to 1.8.4 and cli-utilities to 1.18.5
fix: Update get Server logs query to GetServerlessLogsV2 to match the updated windowed server logs query