Skip to content

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

Merged
chhavi-mandowara-cstk merged 23 commits into
mainfrom
staging
Aug 5, 2026

Conversation

@chhavi-mandowara-cstk

@chhavi-mandowara-cstk chhavi-mandowara-cstk commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

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

Aravind-Kumar-cstk and others added 10 commits July 10, 2026 16:25
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
@chhavi-mandowara-cstk
chhavi-mandowara-cstk requested review from a team as code owners July 23, 2026 09:13
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 4 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

ron766-CS
ron766-CS previously approved these changes Jul 23, 2026
Harshi-Shah-CS
Harshi-Shah-CS previously approved these changes Jul 23, 2026
chhavi-mandowara-cstk and others added 6 commits July 23, 2026 15:09
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
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 4 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 4 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@chhavi-mandowara-cstk chhavi-mandowara-cstk changed the title 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 and server logs query Jul 24, 2026
chhavi-mandowara-cstk and others added 2 commits August 5, 2026 12:28
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>
rohan-agrawal-cs and others added 4 commits August 5, 2026 12:28
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
Copilot AI lite review requested due to automatic review settings August 5, 2026 07:04
@snyk-io

snyk-io Bot commented Aug 5, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 23 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-auth flow and propagate isContentstackAuthenticationEnabled into project creation for both GitHub and FileUpload adapters.
  • Support selecting a GitHub connection when multiple connections exist, including a --namespace flag and namespace-scoped repository/framework/branch queries.
  • Update serverless logs GraphQL query to GetServerlessLogsV2 and 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 catch block 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.

Comment thread src/commands/launch/index.ts
Comment thread src/adapters/github.test.ts
Comment thread .talismanrc
@chhavi-mandowara-cstk
chhavi-mandowara-cstk merged commit 5620e5f into main Aug 5, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants